summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-06-24 12:48:34 +0200
committerlukefromdc <[email protected]>2018-06-25 18:48:58 -0400
commitb22dff4194ba1024ba99069057b466bf47120bab (patch)
treead94bf8468805093cef8017ad897db61225b0377
parent5ca1fb1a1b34bdbaf0c966d9cc786ecf71d0df21 (diff)
downloadmate-panel-b22dff4194ba1024ba99069057b466bf47120bab.tar.bz2
mate-panel-b22dff4194ba1024ba99069057b466bf47120bab.tar.xz
menu.c: Fix: Keep spaces in the left if "menus-have-icons" is off
Fixes https://github.com/mate-desktop/mate-panel/pull/820#issuecomment-399709389
-rw-r--r--mate-panel/menu.c2
-rw-r--r--mate-panel/panel-context-menu.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/mate-panel/menu.c b/mate-panel/menu.c
index 975eeb38..8e2a78c0 100644
--- a/mate-panel/menu.c
+++ b/mate-panel/menu.c
@@ -164,7 +164,7 @@ panel_create_menu (void)
retval = gtk_menu_new ();
- gtk_menu_set_reserve_toggle_size (GTK_MENU (retval), FALSE);
+ gtk_menu_set_reserve_toggle_size (GTK_MENU (retval), TRUE);
gtk_widget_set_name (retval, "mate-panel-main-menu");
diff --git a/mate-panel/panel-context-menu.c b/mate-panel/panel-context-menu.c
index a436e939..cd618485 100644
--- a/mate-panel/panel-context-menu.c
+++ b/mate-panel/panel-context-menu.c
@@ -230,6 +230,8 @@ panel_context_menu_build_edition (PanelWidget *panel_widget,
{
GtkWidget *menuitem;
+ gtk_menu_set_reserve_toggle_size (GTK_MENU (menu), FALSE);
+
menuitem = panel_image_menu_item_new_from_icon ("list-add", _("_Add to Panel…"));
gtk_widget_show (menuitem);