summaryrefslogtreecommitdiff
path: root/src/themes/coco
diff options
context:
space:
mode:
authorinfirit <[email protected]>2015-07-25 23:10:04 +0200
committerinfirit <[email protected]>2015-07-28 12:44:04 +0200
commite7d2688990388a99baaccb01c61889ca479340a6 (patch)
tree4a7d006b8f26222cf8e3287cee248dfd44661cf7 /src/themes/coco
parent04ade8f56fc851c20fa6f8c5cb84a57b3c92322a (diff)
downloadmate-notification-daemon-e7d2688990388a99baaccb01c61889ca479340a6.tar.bz2
mate-notification-daemon-e7d2688990388a99baaccb01c61889ca479340a6.tar.xz
coco: Add handle configure event
Diffstat (limited to 'src/themes/coco')
-rw-r--r--src/themes/coco/coco-theme.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/themes/coco/coco-theme.c b/src/themes/coco/coco-theme.c
index 171588d..5d374ea 100644
--- a/src/themes/coco/coco-theme.c
+++ b/src/themes/coco/coco-theme.c
@@ -276,6 +276,16 @@ countdown_expose_cb(GtkWidget *pie,
return TRUE;
}
+static gboolean on_configure_event (GtkWidget* widget, GdkEventConfigure* event, WindowData* windata)
+{
+ windata->width = event->width;
+ windata->height = event->height;
+
+ gtk_widget_queue_draw (widget);
+
+ return FALSE;
+}
+
static void
action_clicked_cb(GtkWidget *w, GdkEventButton *event,
ActionInvokedCb action_cb)
@@ -396,6 +406,8 @@ create_notification(UrlClickedCb url_clicked)
G_CALLBACK(paint_window), windata);
#endif
+ g_signal_connect (G_OBJECT (win), "configure-event", G_CALLBACK (on_configure_event), windata);
+
padding = gtk_alignment_new(0, 0, 0, 0);
gtk_widget_show(padding);
gtk_box_pack_start(GTK_BOX(main_vbox), padding, FALSE, FALSE, 0);