From 88c7fbbb98a051d4e9490d43d91bfb63c7dd8988 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Enrico=20Tr=C3=B6ger?= Date: Wed, 17 Dec 2008 22:17:36 +0100 Subject: [PATCH] Allow adding separators to the navigationbar --- midori/midori-browser.c | 7 +++++++ midori/midori-preferences.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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); -- 2.39.5