diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-04-18 16:56:16 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-04-18 16:56:16 +0200 |
commit | 60fc6f6512f98af10228d055e88e61b7204a427c (patch) | |
tree | 2066939dfb4dd3a6530acb2f684202c17eb60b5c /plugins/gtkui/ddbvolumebar.c | |
parent | ad3af05b3b56f78f5446727e568c874b54ec4d40 (diff) |
some tweaks to custom widget colors handling
Diffstat (limited to 'plugins/gtkui/ddbvolumebar.c')
-rw-r--r-- | plugins/gtkui/ddbvolumebar.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/gtkui/ddbvolumebar.c b/plugins/gtkui/ddbvolumebar.c index 3495f69a..d39d9e9b 100644 --- a/plugins/gtkui/ddbvolumebar.c +++ b/plugins/gtkui/ddbvolumebar.c @@ -129,6 +129,9 @@ gboolean on_volumebar_scroll_event (GtkWidget *widget, GdkEventScroll *event); +gboolean +on_volumebar_configure_event (GtkWidget *widget, GdkEventConfigure *event); + static void ddb_volumebar_class_init(DdbVolumeBarClass *class) { @@ -140,6 +143,7 @@ ddb_volumebar_class_init(DdbVolumeBarClass *class) widget_class->button_release_event = on_volumebar_button_release_event; widget_class->motion_notify_event = on_volumebar_motion_notify_event; widget_class->scroll_event = on_volumebar_scroll_event; + widget_class->configure_event = on_volumebar_configure_event; } GtkWidget * ddb_volumebar_new() { @@ -291,4 +295,8 @@ on_volumebar_scroll_event (GtkWidget *widget, return FALSE; } - +gboolean +on_volumebar_configure_event (GtkWidget *widget, GdkEventConfigure *event) { + gtkui_init_theme_colors (); + return FALSE; +} |