]> spindle.queued.net Git - midori/commitdiff
Preserve action visibility when adding menu items to the compact menu
authorChristian Dywan <christian@twotoasts.de>
Sat, 31 Oct 2009 22:07:15 +0000 (23:07 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sat, 31 Oct 2009 22:07:15 +0000 (23:07 +0100)
midori/midori-browser.c

index b76627bfcfed307d3be205459477cdea8dc59f18..243fa49748242412fade5ba1309506ebcec55f4b 100644 (file)
@@ -2936,9 +2936,10 @@ _action_compact_menu_populate_popup (GtkAction*     action,
       { "Homepage" },
       { "SourceView" },
       #else
-      { "ManageSearchEngines" },
       { "Print" },
+      { "About" },
       { "PrivateBrowsing" },
+      { "ManageSearchEngines" },
       { NULL },
       { "Bookmarkbar" },
       { "Panel" },
@@ -2999,9 +3000,11 @@ _action_compact_menu_populate_popup (GtkAction*     action,
                 _action_by_name (browser, actions[i].name));
         }
         else
+        {
             menuitem = gtk_separator_menu_item_new ();
+            gtk_widget_show (menuitem);
+        }
         gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
-        gtk_widget_show (menuitem);
         #endif
     }
 }