From: Christian Dywan Date: Wed, 23 Mar 2011 21:48:53 +0000 (+0100) Subject: Don't resize empty thumbnail tab labels X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e222a12c68ba9c1ee9c9d8245f7e89fa5bc6b112;p=midori Don't resize empty thumbnail tab labels --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index e74ebcff..7f3933b4 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -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); } }