summaryrefslogtreecommitdiff
path: root/plugins/xrandr/msd-xrandr-manager.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-05-01 21:25:16 +0200
committerraveit65 <[email protected]>2017-05-01 21:25:16 +0200
commit2f1b581c28d96eec24a97e8a35f3b26024c554a2 (patch)
tree540cc542c0a3f84943425e3f3bc5f0947a44c696 /plugins/xrandr/msd-xrandr-manager.c
parentd828fa74ba1e859f2e1e9f4d470708b74b26c4f9 (diff)
downloadmate-settings-daemon-2f1b581c28d96eec24a97e8a35f3b26024c554a2.tar.bz2
mate-settings-daemon-2f1b581c28d96eec24a97e8a35f3b26024c554a2.tar.xz
msd-xrandr-manager: avoid deprecated gtk_misc_set_padding
Diffstat (limited to 'plugins/xrandr/msd-xrandr-manager.c')
-rw-r--r--plugins/xrandr/msd-xrandr-manager.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/xrandr/msd-xrandr-manager.c b/plugins/xrandr/msd-xrandr-manager.c
index 3fd9413..c2572de 100644
--- a/plugins/xrandr/msd-xrandr-manager.c
+++ b/plugins/xrandr/msd-xrandr-manager.c
@@ -1812,9 +1812,10 @@ make_menu_item_for_output_title (MsdXrandrManager *manager, MateRROutputInfo *ou
#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);
+ gtk_widget_set_margin_start (label, OUTPUT_TITLE_ITEM_BORDER + OUTPUT_TITLE_ITEM_PADDING);
+ gtk_widget_set_margin_end (label, OUTPUT_TITLE_ITEM_BORDER + OUTPUT_TITLE_ITEM_PADDING);
+ gtk_widget_set_margin_top (label, OUTPUT_TITLE_ITEM_BORDER + OUTPUT_TITLE_ITEM_PADDING);
+ gtk_widget_set_margin_bottom (label, OUTPUT_TITLE_ITEM_BORDER + OUTPUT_TITLE_ITEM_PADDING);
gtk_container_add (GTK_CONTAINER (item), label);