[evolution-patches] [MISC]Fix for bug 333235



Hi

If width of a widget is 0, it should be drawn.

Please review the patch.


Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/widgets/ChangeLog,v
retrieving revision 1.162
diff -u -r1.162 ChangeLog
--- ChangeLog	13 Feb 2006 16:45:27 -0000	1.162
+++ ChangeLog	3 Mar 2006 13:20:40 -0000
@@ -1,3 +1,9 @@
+2006-03-03  Jeff Cai <jeff cai sun com>
+
+	** Fixes for 333235
+	* misc/e-combo-button.c: (paint):
+	If width of a widget is 0, don't draw it.
+
 2006-01-30  Kjartan Maraas  <kmaraas gnome org>
 
 	* e-timezone-dialog/e-timezone-dialog.c: (get_zone_from_point):
Index: misc/e-combo-button.c
===================================================================
RCS file: /cvs/gnome/evolution/widgets/misc/e-combo-button.c,v
retrieving revision 1.21
diff -u -r1.21 e-combo-button.c
--- misc/e-combo-button.c	21 Feb 2005 17:59:40 -0000	1.21
+++ misc/e-combo-button.c	3 Mar 2006 13:20:40 -0000
@@ -146,10 +146,12 @@
 		       GTK_WIDGET_STATE (widget), shadow_type,
 		       area, widget, "button",
 		       x, y, separator_x, height);
-	gtk_paint_box (widget->style, widget->window,
-		       GTK_WIDGET_STATE (widget), shadow_type,
-		       area, widget, "button",
-		       separator_x, y, width - separator_x, height);
+
+	if (width - separator_x > 0)
+		gtk_paint_box (widget->style, widget->window,
+			       GTK_WIDGET_STATE (widget), shadow_type,
+			       area, widget, "button",
+			       separator_x, y, width - separator_x, height);
 
 	if (GTK_WIDGET_HAS_FOCUS (widget)) {
 		if (interior_focus) {


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