From 890182c951a1d964d7a8265c9791d1dc57333377 Mon Sep 17 00:00:00 2001 From: Andy Hertzfeld Date: Sat, 9 Sep 2000 23:36:24 +0000 Subject: 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 --- src/nautilus-sidebar-tabs.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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 (); -- cgit v1.2.1