[Xfce4-commits] <midori:master> Don't resize empty thumbnail tab labels
Christian Dywan
noreply at xfce.org
Wed Mar 23 22:50:01 CET 2011
Updating branch refs/heads/master
to e222a12c68ba9c1ee9c9d8245f7e89fa5bc6b112 (commit)
from e13bebf4debd209a9fd9893f06fbbb3bdedd2adc (commit)
commit e222a12c68ba9c1ee9c9d8245f7e89fa5bc6b112
Author: Christian Dywan <christian at twotoasts.de>
Date: Wed Mar 23 22:48:53 2011 +0100
Don't resize empty thumbnail tab labels
midori/midori-browser.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index e74ebcf..7f3933b 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);
}
}
More information about the Xfce4-commits
mailing list