summaryrefslogtreecommitdiff
path: root/plugins/gtkui/ddbseekbar.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-18 16:56:16 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-18 16:56:16 +0200
commit60fc6f6512f98af10228d055e88e61b7204a427c (patch)
tree2066939dfb4dd3a6530acb2f684202c17eb60b5c /plugins/gtkui/ddbseekbar.c
parentad3af05b3b56f78f5446727e568c874b54ec4d40 (diff)
some tweaks to custom widget colors handling
Diffstat (limited to 'plugins/gtkui/ddbseekbar.c')
-rw-r--r--plugins/gtkui/ddbseekbar.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/gtkui/ddbseekbar.c b/plugins/gtkui/ddbseekbar.c
index e53ba83f..1d173c3f 100644
--- a/plugins/gtkui/ddbseekbar.c
+++ b/plugins/gtkui/ddbseekbar.c
@@ -61,6 +61,7 @@ static gboolean ddb_seekbar_real_expose_event (GtkWidget* base, GdkEventExpose*
static gboolean ddb_seekbar_real_button_press_event (GtkWidget* base, GdkEventButton* event);
static gboolean ddb_seekbar_real_button_release_event (GtkWidget* base, GdkEventButton* event);
static gboolean ddb_seekbar_real_motion_notify_event (GtkWidget* base, GdkEventMotion* event);
+static gboolean ddb_seekbar_real_configure_event (GtkWidget* base, GdkEventConfigure* event);
DdbSeekbar* ddb_seekbar_new (void);
DdbSeekbar* ddb_seekbar_construct (GType object_type);
static GObject * ddb_seekbar_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
@@ -125,6 +126,16 @@ static gboolean ddb_seekbar_real_motion_notify_event (GtkWidget* base, GdkEventM
}
+static gboolean ddb_seekbar_real_configure_event (GtkWidget* base, GdkEventConfigure* event) {
+ DdbSeekbar * self;
+ gboolean result = FALSE;
+ self = (DdbSeekbar*) base;
+ gtkui_init_theme_colors ();
+ result = FALSE;
+ return result;
+}
+
+
DdbSeekbar* ddb_seekbar_construct (GType object_type) {
DdbSeekbar * self;
self = g_object_newv (object_type, 0, NULL);
@@ -159,6 +170,7 @@ static void ddb_seekbar_class_init (DdbSeekbarClass * klass) {
GTK_WIDGET_CLASS (klass)->button_press_event = ddb_seekbar_real_button_press_event;
GTK_WIDGET_CLASS (klass)->button_release_event = ddb_seekbar_real_button_release_event;
GTK_WIDGET_CLASS (klass)->motion_notify_event = ddb_seekbar_real_motion_notify_event;
+ GTK_WIDGET_CLASS (klass)->configure_event = ddb_seekbar_real_configure_event;
G_OBJECT_CLASS (klass)->constructor = ddb_seekbar_constructor;
}