Allow adding separators to the navigationbar
This commit is contained in:
parent
1dc1744f7d
commit
88c7fbbb98
2 changed files with 8 additions and 1 deletions
|
@ -4146,6 +4146,13 @@ _midori_browser_set_toolbar_items (MidoriBrowser* browser,
|
||||||
gtk_toolbar_insert (GTK_TOOLBAR (browser->navigationbar),
|
gtk_toolbar_insert (GTK_TOOLBAR (browser->navigationbar),
|
||||||
GTK_TOOL_ITEM (toolitem), -1);
|
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++;
|
name++;
|
||||||
}
|
}
|
||||||
g_strfreev (names);
|
g_strfreev (names);
|
||||||
|
|
|
@ -486,7 +486,7 @@ midori_preferences_set_settings (MidoriPreferences* preferences,
|
||||||
button = gtk_label_new (NULL);
|
button = gtk_label_new (NULL);
|
||||||
gtk_label_set_markup (GTK_LABEL (button),
|
gtk_label_set_markup (GTK_LABEL (button),
|
||||||
"<span size='smaller'>"
|
"<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"
|
"ReloadStop, ZoomIn, ZoomOut, Back, Forward, Homepage, Search, Trash"
|
||||||
"</span>");
|
"</span>");
|
||||||
FILLED_ADD (button, 0, 2, 2, 3);
|
FILLED_ADD (button, 0, 2, 2, 3);
|
||||||
|
|
Loading…
Reference in a new issue