Mercurial > audlegacy
changeset 2969:9fe0d8b6d1b5 trunk
add padding characters to the scroller text for one-way scroll.
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Mon, 02 Jul 2007 21:31:56 +0900 |
parents | 83f03505f819 |
children | 92d67946e974 |
files | src/audacious/ui_skinned_textbox.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/ui_skinned_textbox.c Mon Jul 02 21:02:49 2007 +0900 +++ b/src/audacious/ui_skinned_textbox.c Mon Jul 02 21:31:56 2007 +0900 @@ -724,8 +724,12 @@ pixmaptext = g_strconcat(priv->pixmap_text, padchars, NULL); g_free(padchars); length += pad; - } else - pixmaptext = g_strdup(priv->pixmap_text); + } else { + if(cfg.twoway_scroll) + pixmaptext = g_strdup(priv->pixmap_text); + else + pixmaptext = g_strdup_printf("%s *** ", priv->pixmap_text); + } if (priv->is_scrollable) { if (priv->scroll_enabled && !priv->scroll_timeout) {