From e222a12c68ba9c1ee9c9d8245f7e89fa5bc6b112 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 23 Mar 2011 22:48:53 +0100 Subject: [PATCH] Don't resize empty thumbnail tab labels --- midori/midori-browser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } }