diff options
author | monsta <[email protected]> | 2016-01-21 15:35:49 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-01-21 15:52:37 +0300 |
commit | edd22f8fbd84efd0310554c235fde137010faab1 (patch) | |
tree | d9dc126b3a47805b3fe595771b43c2457723a540 /plugins/xrandr | |
parent | b5182fc63f8d928249d6f4cda8efb0cb316ed6f9 (diff) | |
download | mate-settings-daemon-edd22f8fbd84efd0310554c235fde137010faab1.tar.bz2 mate-settings-daemon-edd22f8fbd84efd0310554c235fde137010faab1.tar.xz |
[GTK+3] use x/y alignment functions for GtkLabel
Diffstat (limited to 'plugins/xrandr')
-rw-r--r-- | plugins/xrandr/msd-xrandr-manager.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/xrandr/msd-xrandr-manager.c b/plugins/xrandr/msd-xrandr-manager.c index 1341a75..c8eafce 100644 --- a/plugins/xrandr/msd-xrandr-manager.c +++ b/plugins/xrandr/msd-xrandr-manager.c @@ -1825,8 +1825,9 @@ 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); +#if GTK_CHECK_VERSION (3, 16, 0) + gtk_label_set_xalign (GTK_LABEL (label), 0.0); + gtk_label_set_yalign (GTK_LABEL (label), 0.5); #else gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); #endif |