Don't resize empty thumbnail tab labels

This commit is contained in:
Christian Dywan 2011-03-23 22:48:53 +01:00
parent e13bebf4de
commit e222a12c68

View file

@ -1483,7 +1483,9 @@ _midori_browser_update_notebook (MidoriBrowser* browser)
GtkWidget* label; GtkWidget* label;
view = gtk_notebook_get_nth_page (GTK_NOTEBOOK(browser->notebook), i); view = gtk_notebook_get_nth_page (GTK_NOTEBOOK(browser->notebook), i);
label = gtk_notebook_get_tab_label (GTK_NOTEBOOK(browser->notebook), view); 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);
} }
} }