Preserve action visibility when adding menu items to the compact menu
This commit is contained in:
parent
f688bbabb0
commit
f320e0fc5f
1 changed files with 5 additions and 2 deletions
|
@ -2936,9 +2936,10 @@ _action_compact_menu_populate_popup (GtkAction* action,
|
||||||
{ "Homepage" },
|
{ "Homepage" },
|
||||||
{ "SourceView" },
|
{ "SourceView" },
|
||||||
#else
|
#else
|
||||||
{ "ManageSearchEngines" },
|
|
||||||
{ "Print" },
|
{ "Print" },
|
||||||
|
{ "About" },
|
||||||
{ "PrivateBrowsing" },
|
{ "PrivateBrowsing" },
|
||||||
|
{ "ManageSearchEngines" },
|
||||||
{ NULL },
|
{ NULL },
|
||||||
{ "Bookmarkbar" },
|
{ "Bookmarkbar" },
|
||||||
{ "Panel" },
|
{ "Panel" },
|
||||||
|
@ -2999,9 +3000,11 @@ _action_compact_menu_populate_popup (GtkAction* action,
|
||||||
_action_by_name (browser, actions[i].name));
|
_action_by_name (browser, actions[i].name));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
menuitem = gtk_separator_menu_item_new ();
|
menuitem = gtk_separator_menu_item_new ();
|
||||||
|
gtk_widget_show (menuitem);
|
||||||
|
}
|
||||||
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
|
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
|
||||||
gtk_widget_show (menuitem);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue