From: Enrico Tröger Date: Wed, 17 Dec 2008 21:17:36 +0000 (+0100) Subject: Allow adding separators to the navigationbar X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88c7fbbb98a051d4e9490d43d91bfb63c7dd8988;p=midori Allow adding separators to the navigationbar --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 23d3d5ff..52fdb748 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -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); diff --git a/midori/midori-preferences.c b/midori/midori-preferences.c index adde258e..1c0e99c6 100644 --- a/midori/midori-preferences.c +++ b/midori/midori-preferences.c @@ -486,7 +486,7 @@ midori_preferences_set_settings (MidoriPreferences* preferences, button = gtk_label_new (NULL); gtk_label_set_markup (GTK_LABEL (button), "" - "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" ""); FILLED_ADD (button, 0, 2, 2, 3);