]> spindle.queued.net Git - midori/commitdiff
Allow adding separators to the navigationbar
authorEnrico Tröger <enrico.troeger@uvena.de>
Wed, 17 Dec 2008 21:17:36 +0000 (22:17 +0100)
committerChristian Dywan <christian@twotoasts.de>
Wed, 17 Dec 2008 21:17:36 +0000 (22:17 +0100)
midori/midori-browser.c
midori/midori-preferences.c

index 23d3d5ff1a9d7dd787d1c6465f02c4e1f6085d80..52fdb7486ca39f82c4dda5f4f1831add41ff98d6 100644 (file)
@@ -4146,6 +4146,13 @@ _midori_browser_set_toolbar_items (MidoriBrowser* browser,
             gtk_toolbar_insert (GTK_TOOLBAR (browser->navigationbar),
                                 GTK_TOOL_ITEM (toolitem), -1);
         }
+        else if (!strcmp (*name, "Separator"))
+        {
+            toolitem = GTK_WIDGET (gtk_separator_tool_item_new ());
+            gtk_widget_show (toolitem);
+            gtk_toolbar_insert (GTK_TOOLBAR (browser->navigationbar),
+                                GTK_TOOL_ITEM (toolitem), -1);
+        }
         name++;
     }
     g_strfreev (names);
index adde258ee70066ac4f118569abb4d844c00c3aef..1c0e99c65a3c8503ff5f2cde18f82d97419f83cf 100644 (file)
@@ -486,7 +486,7 @@ midori_preferences_set_settings (MidoriPreferences* preferences,
     button = gtk_label_new (NULL);
     gtk_label_set_markup (GTK_LABEL (button),
         "<span size='smaller'>"
-        "TabNew, Open, Print, Find, Location, Preferences, Window, Bookmarks\n"
+        "Separator, TabNew, Open, Print, Find, Location, Preferences, Window, Bookmarks\n"
         "ReloadStop, ZoomIn, ZoomOut, Back, Forward, Homepage, Search, Trash"
         "</span>");
     FILLED_ADD (button, 0, 2, 2, 3);