[gtk+/native-layout: 1/40] gtknotebook: Avoid drawing artifacts with action widgets and long tab labels (bgo#603245)



commit a8ec02c93029e0ee71922fee493a5c5582d32557
Author: Johannes Schmid <jhs gnome org>
Date:   Tue Dec 1 20:05:09 2009 +0100

    gtknotebook: Avoid drawing artifacts with action widgets and long tab labels (bgo#603245)

 gtk/gtknotebook.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index b51388c..466ff20 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -5276,7 +5276,7 @@ gtk_notebook_calculate_shown_tabs (GtkNotebook *notebook,
 				  remaining_space, STEP_NEXT);
 	}
 
-      if (tab_space <= 0 || *remaining_space < 0)
+      if (tab_space <= 0 || *remaining_space <= 0)
 	{
 	  /* show 1 tab */
 	  notebook->first_tab = notebook->focus_tab;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]