summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-10-30 18:46:58 +0100
committerWolfgang Ulbrich <[email protected]>2015-10-31 10:10:01 +0100
commit7f6d502b3c73f094e369307cff4353a7a601142c (patch)
tree0dba7c677b3b41c3054212c66b30dc626d482b37
parent9197308b8216362f729814ab1e1e0b953a7bad60 (diff)
downloadmate-notification-daemon-7f6d502b3c73f094e369307cff4353a7a601142c.tar.bz2
mate-notification-daemon-7f6d502b3c73f094e369307cff4353a7a601142c.tar.xz
GTK3 standard theme: fix deprecated gtk_misc_set_alignment
-rw-r--r--src/themes/standard/theme.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/themes/standard/theme.c b/src/themes/standard/theme.c
index 81196e0..2e27b0c 100644
--- a/src/themes/standard/theme.c
+++ b/src/themes/standard/theme.c
@@ -792,7 +792,11 @@ GtkWindow* create_notification(UrlClickedCb url_clicked)
windata->icon = gtk_image_new();
gtk_box_pack_start(GTK_BOX(windata->iconbox), windata->icon, TRUE, TRUE, 0);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_widget_set_valign (windata->icon, GTK_ALIGN_START);
+#else
gtk_misc_set_alignment(GTK_MISC(windata->icon), 0.5, 0.0);
+#endif
vbox = gtk_vbox_new(FALSE, 6);
gtk_widget_show(vbox);