diff options
author | Wolfgang Ulbrich <[email protected]> | 2015-12-17 15:50:54 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2015-12-17 15:50:54 +0100 |
commit | 3bc9389f9247e4e5d3428a150c4173bb241d67cc (patch) | |
tree | 24817947bdc3d92e5c3f8486f1a8a42d07d4b1a8 /geyes/themes.c | |
parent | 41ce41bb5ef1117206c4be3b4a57f514372f4106 (diff) | |
download | mate-applets-3bc9389f9247e4e5d3428a150c4173bb241d67cc.tar.bz2 mate-applets-3bc9389f9247e4e5d3428a150c4173bb241d67cc.tar.xz |
GTK3 geyes: don't use deprecated GtkMisc
Diffstat (limited to 'geyes/themes.c')
-rw-r--r-- | geyes/themes.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/geyes/themes.c b/geyes/themes.c index 325a14af..e562bf8a 100644 --- a/geyes/themes.c +++ b/geyes/themes.c @@ -320,7 +320,11 @@ properties_cb (GtkAction *action, label = gtk_label_new (_(title)); gtk_label_set_use_markup (GTK_LABEL (label), TRUE); gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT); +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_widget_set_halign (label, GTK_ALIGN_START); +#else gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); +#endif gtk_box_pack_start (GTK_BOX (category_vbox), label, FALSE, FALSE, 0); g_free (title); @@ -338,7 +342,11 @@ properties_cb (GtkAction *action, gtk_widget_show (control_vbox); label = gtk_label_new_with_mnemonic (_("_Select a theme:")); +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_widget_set_halign (label, GTK_ALIGN_START); +#else gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); +#endif gtk_box_pack_start (GTK_BOX (control_vbox), label, FALSE, FALSE, 0); scrolled = gtk_scrolled_window_new (NULL, NULL); |