summaryrefslogtreecommitdiff
path: root/plugins/xrandr
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-11-16 13:52:32 +0100
committerWolfgang Ulbrich <[email protected]>2015-12-02 12:49:34 +0100
commit6016147ccdf1335dc6d285d50938446c42e1ce95 (patch)
tree4628a38006774b66c1ec368a1ce391156a0efac2 /plugins/xrandr
parenteccf1e91de9543e3f062802aaae663dbbb5176ae (diff)
downloadmate-settings-daemon-6016147ccdf1335dc6d285d50938446c42e1ce95.tar.bz2
mate-settings-daemon-6016147ccdf1335dc6d285d50938446c42e1ce95.tar.xz
Gtk-+3.14: don't use deprecated GtkMisc
Diffstat (limited to 'plugins/xrandr')
-rw-r--r--plugins/xrandr/msd-xrandr-manager.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/xrandr/msd-xrandr-manager.c b/plugins/xrandr/msd-xrandr-manager.c
index b79e666..45b243f 100644
--- a/plugins/xrandr/msd-xrandr-manager.c
+++ b/plugins/xrandr/msd-xrandr-manager.c
@@ -1830,7 +1830,11 @@ make_menu_item_for_output_title (MsdXrandrManager *manager, MateRROutputInfo *ou
gtk_widget_modify_fg (label, gtk_widget_get_state (label), &black);
/* Add padding around the label to fit the box that we'll draw for color-coding */
+#if GTK_CHECK_VERSION (3, 14, 0)
+ gtk_widget_set_halign (label, GTK_ALIGN_START);
+#else
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+#endif
gtk_misc_set_padding (GTK_MISC (label),
OUTPUT_TITLE_ITEM_BORDER + OUTPUT_TITLE_ITEM_PADDING,
OUTPUT_TITLE_ITEM_BORDER + OUTPUT_TITLE_ITEM_PADDING);