changeset 2970:92d67946e974 trunk

revise padding logic.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Mon, 02 Jul 2007 21:43:30 +0900
parents 9fe0d8b6d1b5
children 1db413cb4437 8463de0cf728
files src/audacious/ui_skinned_textbox.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_skinned_textbox.c	Mon Jul 02 21:31:56 2007 +0900
+++ b/src/audacious/ui_skinned_textbox.c	Mon Jul 02 21:43:30 2007 +0900
@@ -725,10 +725,10 @@
         g_free(padchars);
         length += pad;
     } else {
-        if(cfg.twoway_scroll)
+        if(!cfg.twoway_scroll && priv->is_scrollable)
+            pixmaptext = g_strdup_printf("%s *** ", priv->pixmap_text);
+        else
             pixmaptext = g_strdup(priv->pixmap_text);
-        else
-            pixmaptext = g_strdup_printf("%s *** ", priv->pixmap_text);
     }
 
     if (priv->is_scrollable) {