summaryrefslogtreecommitdiff
path: root/capplets
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-02-04 14:07:54 +0300
committermonsta <[email protected]>2016-02-04 14:08:37 +0300
commita58c47065ecb0e58cc06873b8f63fdf231ea23c1 (patch)
treec52990bc08a37ec569cf4a977c7e3eb10169e44d /capplets
parent73bc9f672f869f4685076ac6cafe76988cadbbf2 (diff)
downloadmate-control-center-a58c47065ecb0e58cc06873b8f63fdf231ea23c1.tar.bz2
mate-control-center-a58c47065ecb0e58cc06873b8f63fdf231ea23c1.tar.xz
[GTK+3] use x/y align functions of GtkLabel in GTK+ >= 3.16
Diffstat (limited to 'capplets')
-rw-r--r--capplets/windows/mate-metacity-support.c5
-rw-r--r--capplets/windows/mate-window-properties.c12
2 files changed, 8 insertions, 9 deletions
diff --git a/capplets/windows/mate-metacity-support.c b/capplets/windows/mate-metacity-support.c
index 43518759..ec9ca7aa 100644
--- a/capplets/windows/mate-metacity-support.c
+++ b/capplets/windows/mate-metacity-support.c
@@ -56,9 +56,8 @@ mate_metacity_config_tool ()
widget = gtk_label_new (str);
g_free (str);
gtk_label_set_use_markup (GTK_LABEL (widget), TRUE);
-#if GTK_CHECK_VERSION (3, 0, 0)
- gtk_widget_set_halign (widget, GTK_ALIGN_START);
- gtk_widget_set_valign (widget, GTK_ALIGN_CENTER);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (widget), 0.0);
#else
gtk_misc_set_alignment (GTK_MISC (widget), 0.0, 0.5);
#endif
diff --git a/capplets/windows/mate-window-properties.c b/capplets/windows/mate-window-properties.c
index f0e0395d..7f8442f9 100644
--- a/capplets/windows/mate-window-properties.c
+++ b/capplets/windows/mate-window-properties.c
@@ -303,9 +303,9 @@ title_label_new (const char* title)
g_free (str);
gtk_label_set_use_markup (GTK_LABEL (widget), TRUE);
-#if GTK_CHECK_VERSION (3, 0, 0)
- gtk_widget_set_halign (widget, GTK_ALIGN_START);
- gtk_widget_set_valign (widget, GTK_ALIGN_START);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (widget), 0.0);
+ gtk_label_set_yalign (GTK_LABEL (widget), 0.0);
#else
gtk_misc_set_alignment (GTK_MISC (widget), 0.0, 0.0);
#endif
@@ -550,9 +550,9 @@ main (int argc, char **argv)
#endif
widget = gtk_label_new_with_mnemonic (_("To move a window, press-and-hold this key then grab the window:"));
-#if GTK_CHECK_VERSION (3, 0, 0)
- gtk_widget_set_halign (widget, GTK_ALIGN_START);
- gtk_widget_set_valign (widget, GTK_ALIGN_START);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (widget), 0.0);
+ gtk_label_set_yalign (GTK_LABEL (widget), 0.0);
#else
gtk_misc_set_alignment (GTK_MISC (widget), 0.0, 0.0);
#endif