Allow adding separators to the navigationbar

This commit is contained in:
Enrico Tröger 2008-12-17 22:17:36 +01:00 committed by Christian Dywan
parent 1dc1744f7d
commit 88c7fbbb98
2 changed files with 8 additions and 1 deletions

View 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);

View 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);