Remove empty button from the Extensions panel
This commit is contained in:
parent
9db458ba9c
commit
a8d3d0955f
1 changed files with 0 additions and 4 deletions
|
@ -103,14 +103,10 @@ midori_extensions_get_toolbar (MidoriViewable* extensions)
|
||||||
if (!MIDORI_EXTENSIONS (extensions)->toolbar)
|
if (!MIDORI_EXTENSIONS (extensions)->toolbar)
|
||||||
{
|
{
|
||||||
GtkWidget* toolbar;
|
GtkWidget* toolbar;
|
||||||
GtkToolItem* toolitem;
|
|
||||||
|
|
||||||
toolbar = gtk_toolbar_new ();
|
toolbar = gtk_toolbar_new ();
|
||||||
gtk_toolbar_set_style (GTK_TOOLBAR (toolbar), GTK_TOOLBAR_BOTH_HORIZ);
|
gtk_toolbar_set_style (GTK_TOOLBAR (toolbar), GTK_TOOLBAR_BOTH_HORIZ);
|
||||||
gtk_toolbar_set_icon_size (GTK_TOOLBAR (toolbar), GTK_ICON_SIZE_BUTTON);
|
gtk_toolbar_set_icon_size (GTK_TOOLBAR (toolbar), GTK_ICON_SIZE_BUTTON);
|
||||||
toolitem = gtk_tool_item_new ();
|
|
||||||
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), toolitem, -1);
|
|
||||||
gtk_widget_show (GTK_WIDGET (toolitem));
|
|
||||||
|
|
||||||
MIDORI_EXTENSIONS (extensions)->toolbar = toolbar;
|
MIDORI_EXTENSIONS (extensions)->toolbar = toolbar;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue