summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-01-06 13:13:03 +0100
committerDave Davenport <qball@gmpclient.org>2017-01-06 13:13:03 +0100
commit7e13bd86589c1f2df337fc52df5480d49a12c406 (patch)
treeb2ef55e9a9d8a84991bce0d74a84d715b7989755 /source
parentadd0e2f801ac6d695f8132ab8f0e205482c47571 (diff)
Quick 'n Dirty work around for handle color in scrollbar.
Diffstat (limited to 'source')
-rw-r--r--source/widgets/scrollbar.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/widgets/scrollbar.c b/source/widgets/scrollbar.c
index 41f18414..e58cf5f8 100644
--- a/source/widgets/scrollbar.c
+++ b/source/widgets/scrollbar.c
@@ -45,7 +45,6 @@ scrollbar *scrollbar_create ( const char *name, int width )
{
scrollbar *sb = g_malloc0 ( sizeof ( scrollbar ) );
widget_init ( WIDGET (sb), name );
- sb->widget.state = g_strdup("handle");
sb->widget.x = 0;
sb->widget.y = 0;
sb->widget.w = widget_padding_get_padding_width ( WIDGET (sb) ) +width;
@@ -119,7 +118,10 @@ static void scrollbar_draw ( widget *wid, cairo_t *draw )
// Never go out of bar.
height = MAX ( 2, height );
// Cap length;
+ // @TODO hack.
+ wid->state = "handle";
rofi_theme_get_color ( WIDGET (sb ), "foreground", draw );
+ wid->state = NULL;
cairo_rectangle ( draw,
widget_padding_get_left ( wid ),