From 7865afb847c54c76adfb190cdedf11540f6614e7 Mon Sep 17 00:00:00 2001 From: monsta Date: Thu, 14 Jan 2016 17:23:35 +0300 Subject: [GTK+3] windows: fix deprecated usage of GtkMisc --- capplets/windows/mate-metacity-support.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'capplets/windows/mate-metacity-support.c') diff --git a/capplets/windows/mate-metacity-support.c b/capplets/windows/mate-metacity-support.c index 554f5860..2a30cd05 100644 --- a/capplets/windows/mate-metacity-support.c +++ b/capplets/windows/mate-metacity-support.c @@ -52,7 +52,12 @@ mate_metacity_config_tool () widget = gtk_label_new (str); g_free (str); gtk_label_set_use_markup (GTK_LABEL (widget), TRUE); - gtk_misc_set_alignment (GTK_MISC (widget), 0, 0.5); +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_widget_set_halign (widget, GTK_ALIGN_START); + gtk_widget_set_valign (widget, GTK_ALIGN_CENTER); +#else + gtk_misc_set_alignment (GTK_MISC (widget), 0.0, 0.5); +#endif gtk_box_pack_start (GTK_BOX (vbox), widget, FALSE, FALSE, 0); widget = gtk_check_button_new_with_label (_("Enable software _compositing window manager")); -- cgit v1.2.1