]> spindle.queued.net Git - midori/commitdiff
Remove empty button from the Extensions panel
authorChristian Dywan <christian@twotoasts.de>
Fri, 8 Jan 2010 00:44:48 +0000 (01:44 +0100)
committerChristian Dywan <christian@twotoasts.de>
Fri, 8 Jan 2010 00:44:48 +0000 (01:44 +0100)
panels/midori-extensions.c

index 8f2675854920bba6e79937bd1fb9d4ba2dbd0d78..6fe8fb75f395badfc3e755589cd49efce31025ef 100644 (file)
@@ -103,14 +103,10 @@ midori_extensions_get_toolbar (MidoriViewable* extensions)
     if (!MIDORI_EXTENSIONS (extensions)->toolbar)
     {
         GtkWidget* toolbar;
-        GtkToolItem* toolitem;
 
         toolbar = gtk_toolbar_new ();
         gtk_toolbar_set_style (GTK_TOOLBAR (toolbar), GTK_TOOLBAR_BOTH_HORIZ);
         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;
     }