aboutsummaryrefslogtreecommitdiff
path: root/src/metadata-widget.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-06-30 18:20:45 +0100
committerConor Curran <conor.curran@canonical.com>2010-06-30 18:20:45 +0100
commitf3fc28d63254fe90de5472352256e7df415ab886 (patch)
tree0f1ce71a25ee2862a59a0c530704a332982d0137 /src/metadata-widget.c
parent8dc783c9943dbb1a80579d6f7e70492769b67717 (diff)
downloadayatana-indicator-sound-f3fc28d63254fe90de5472352256e7df415ab886.tar.gz
ayatana-indicator-sound-f3fc28d63254fe90de5472352256e7df415ab886.tar.bz2
ayatana-indicator-sound-f3fc28d63254fe90de5472352256e7df415ab886.zip
highlighting sorted and a start towards the cairo stuff
Diffstat (limited to 'src/metadata-widget.c')
-rw-r--r--src/metadata-widget.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/metadata-widget.c b/src/metadata-widget.c
index ce3bcd1..28a3839 100644
--- a/src/metadata-widget.c
+++ b/src/metadata-widget.c
@@ -47,6 +47,8 @@ static void metadata_widget_class_init (MetadataWidgetClass *klass);
static void metadata_widget_init (MetadataWidget *self);
static void metadata_widget_dispose (GObject *object);
static void metadata_widget_finalize (GObject *object);
+static gboolean metadata_widget_expose_event(GtkWidget* widget, GdkEventExpose* event);
+
// keyevent consumers
static gboolean metadata_widget_button_press_event (GtkWidget *menuitem,
GdkEventButton *event);
@@ -74,7 +76,7 @@ metadata_widget_class_init (MetadataWidgetClass *klass)
widget_class->button_press_event = metadata_widget_button_press_event;
widget_class->button_release_event = metadata_widget_button_release_event;
-
+ widget_class->expose_event = metadata_widget_expose_event;
g_type_class_add_private (klass, sizeof (MetadataWidgetPrivate));
gobject_class->dispose = metadata_widget_dispose;
@@ -152,6 +154,15 @@ metadata_widget_init (MetadataWidget *self)
}
+static gboolean
+metadata_widget_expose_event(GtkWidget* widget, GdkEventExpose* event)
+{
+ MetadataWidgetPrivate * priv = METADATA_WIDGET_GET_PRIVATE(widget);
+
+ gtk_container_propagate_expose(GTK_CONTAINER(widget), priv->hbox, event);
+ return TRUE;
+}
+
static void
metadata_widget_dispose (GObject *object)
{