summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndy Hertzfeld <andy@src.gnome.org>2000-09-09 23:36:24 +0000
committerAndy Hertzfeld <andy@src.gnome.org>2000-09-09 23:36:24 +0000
commit890182c951a1d964d7a8265c9791d1dc57333377 (patch)
tree6f61369e1a5e4d2035236489e7404b2b9162edfd /src
parentef2bbd05ca9778201766883781d5959e04e03d00 (diff)
downloadnautilus-890182c951a1d964d7a8265c9791d1dc57333377.tar.gz
fixed bug 2910, sidebar tabs crash in arlo theme when sidebar is closed,
fixed bug 2910, sidebar tabs crash in arlo theme when sidebar is closed, by making them not draw if the sidebar is closed
Diffstat (limited to 'src')
-rw-r--r--src/nautilus-sidebar-tabs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nautilus-sidebar-tabs.c b/src/nautilus-sidebar-tabs.c
index a10c19668..c6925684a 100644
--- a/src/nautilus-sidebar-tabs.c
+++ b/src/nautilus-sidebar-tabs.c
@@ -1101,7 +1101,11 @@ nautilus_sidebar_tabs_expose (GtkWidget *widget, GdkEventExpose *event)
if (widget->window == NULL) {
return FALSE;
}
-
+
+ if (widget->parent->allocation.width <= 4) {
+ return FALSE;
+ }
+
sidebar_tabs = NAUTILUS_SIDEBAR_TABS (widget);
text_offset = get_text_offset ();