summaryrefslogtreecommitdiff
path: root/src/ui/theme-viewer.c
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-01-25 21:26:11 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-25 21:26:11 +0100
commitd01ea186be7abed6593d95dc234c6d0ea88916ca (patch)
treea6df6b281fd911280713d0d3691c84b43f00a048 /src/ui/theme-viewer.c
parente40b7891762f54214fbd6b308e1a2291893444ed (diff)
downloadmarco-d01ea186be7abed6593d95dc234c6d0ea88916ca.tar.bz2
marco-d01ea186be7abed6593d95dc234c6d0ea88916ca.tar.xz
fix dprecated GtkMisc
Diffstat (limited to 'src/ui/theme-viewer.c')
-rw-r--r--src/ui/theme-viewer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/theme-viewer.c b/src/ui/theme-viewer.c
index fa981fab..fc4ba3e9 100644
--- a/src/ui/theme-viewer.c
+++ b/src/ui/theme-viewer.c
@@ -350,7 +350,12 @@ menu_contents (void)
{
char *str = g_strdup_printf (_("Fake menu item %d\n"), i + 1);
mi = gtk_label_new (str);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_widget_set_halign (image, GTK_ALIGN_START);
+ gtk_widget_set_valign (image, GTK_ALIGN_CENTER);
+#else
gtk_misc_set_alignment (GTK_MISC (mi), 0.0, 0.5);
+#endif
g_free (str);
gtk_box_pack_start (GTK_BOX (vbox), mi, FALSE, FALSE, 0);