]> spindle.queued.net Git - midori/commitdiff
Don't resize empty thumbnail tab labels
authorChristian Dywan <christian@twotoasts.de>
Wed, 23 Mar 2011 21:48:53 +0000 (22:48 +0100)
committerChristian Dywan <christian@twotoasts.de>
Wed, 23 Mar 2011 21:48:53 +0000 (22:48 +0100)
midori/midori-browser.c

index e74ebcff76f34eece855e6585c2d440943cf5f91..7f3933b4244e6ac8cf5753c0aad6421cd6e57367 100644 (file)
@@ -1483,7 +1483,9 @@ _midori_browser_update_notebook (MidoriBrowser* browser)
         GtkWidget* label;
         view = gtk_notebook_get_nth_page (GTK_NOTEBOOK(browser->notebook), i);
         label = gtk_notebook_get_tab_label (GTK_NOTEBOOK(browser->notebook), view);
-        gtk_widget_set_size_request (label, new_size, -1);
+        /* Don't resize empty bin, which is used for thumbnail tabs */
+        if (GTK_IS_BIN (label) && gtk_bin_get_child (GTK_BIN (label)))
+            gtk_widget_set_size_request (label, new_size, -1);
     }
 }