summaryrefslogtreecommitdiff
path: root/capplets/appearance
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-01-26 13:00:17 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-26 13:00:17 +0100
commit9c22af1831f1e150aac020c0f27d1510d0aecee9 (patch)
treefd6a0f5d90e132bdeda67c7fa066ab3c22da63ff /capplets/appearance
parent94f5031d58bc9f6cbb2911d1c6a3a5d16a69af45 (diff)
downloadmate-control-center-9c22af1831f1e150aac020c0f27d1510d0aecee9.tar.bz2
mate-control-center-9c22af1831f1e150aac020c0f27d1510d0aecee9.tar.xz
GTK3: improve GtkMisc deprecation commit
Diffstat (limited to 'capplets/appearance')
-rw-r--r--capplets/appearance/appearance-style.c6
-rw-r--r--capplets/appearance/appearance-themes.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/capplets/appearance/appearance-style.c b/capplets/appearance/appearance-style.c
index 39a5b8ab..21fe2002 100644
--- a/capplets/appearance/appearance-style.c
+++ b/capplets/appearance/appearance-style.c
@@ -234,9 +234,9 @@ static void update_message_area(AppearanceData* data)
data->style_message_label = gtk_label_new (NULL);
gtk_label_set_line_wrap (GTK_LABEL (data->style_message_label), TRUE);
-#if GTK_CHECK_VERSION (3, 0, 0)
- gtk_widget_set_halign (data->style_message_label, GTK_ALIGN_START);
- gtk_widget_set_valign (data->style_message_label, GTK_ALIGN_CENTER);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (data->style_message_label), 0.0);
+ gtk_label_set_yalign (GTK_LABEL (data->style_message_label), 0.5);
#else
gtk_misc_set_alignment (GTK_MISC (data->style_message_label), 0.0, 0.5);
#endif
diff --git a/capplets/appearance/appearance-themes.c b/capplets/appearance/appearance-themes.c
index 0fe20ef9..a9b0af30 100644
--- a/capplets/appearance/appearance-themes.c
+++ b/capplets/appearance/appearance-themes.c
@@ -664,9 +664,9 @@ theme_message_area_update (AppearanceData *data)
data->theme_message_label = gtk_label_new (NULL);
gtk_widget_show (data->theme_message_label);
gtk_label_set_line_wrap (GTK_LABEL (data->theme_message_label), TRUE);
-#if GTK_CHECK_VERSION (3, 0, 0)
- gtk_widget_set_halign (data->theme_message_label, GTK_ALIGN_START);
- gtk_widget_set_valign (data->theme_message_label, GTK_ALIGN_CENTER);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (data->theme_message_label), 0.0);
+ gtk_label_set_yalign (GTK_LABEL (data->theme_message_label), 0.5);
#else
gtk_misc_set_alignment (GTK_MISC (data->theme_message_label), 0.0, 0.5);
#endif