Don't resize empty thumbnail tab labels
This commit is contained in:
parent
e13bebf4de
commit
e222a12c68
1 changed files with 3 additions and 1 deletions
|
@ -1483,6 +1483,8 @@ _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);
|
||||||
|
/* 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);
|
gtk_widget_set_size_request (label, new_size, -1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue