# HG changeset patch # User Tomasz Mon # Date 1183457305 -7200 # Node ID 1db413cb44372fb437c3660c4ca58141decfbe46 # Parent 92d67946e974e8f462ee6504704e6007b1579d21 revise padding logic diff -r 92d67946e974 -r 1db413cb4437 src/audacious/ui_skinned_textbox.c --- a/src/audacious/ui_skinned_textbox.c Mon Jul 02 21:43:30 2007 +0900 +++ b/src/audacious/ui_skinned_textbox.c Tue Jul 03 12:08:25 2007 +0200 @@ -717,19 +717,22 @@ priv->is_scrollable = ui_skinned_textbox_should_scroll(textbox); - if (!priv->is_scrollable && !priv->font && length <= wl) { + if (priv->is_scrollable) { + if(!cfg.twoway_scroll) { + pixmaptext = g_strdup_printf("%s *** ", priv->pixmap_text); + length += 5; + } else + pixmaptext = g_strdup(priv->pixmap_text); + } else + if (!priv->font && length <= wl) { gint pad = wl - length; gchar *padchars = g_strnfill(pad, ' '); pixmaptext = g_strconcat(priv->pixmap_text, padchars, NULL); g_free(padchars); length += pad; - } else { - 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(priv->pixmap_text); if (priv->is_scrollable) { if (priv->scroll_enabled && !priv->scroll_timeout) {