[MISC]Fix for bug 333235
jeff cai <[email protected]>
| Newsgroups | gmane.comp.gnome.evolution.patches |
|---|---|
| Message-ID | <1141392076.29487.6.camel@commissionaire> |
Hi If width of a widget is 0, it should be drawn. Please review the patch. _______________________________________________ Evolution-patches mailing list [email protected] http://mail.gnome.org/mailman/listinfo/evolution-patches
patch333235
(text/x-patch, 1.5 KB)
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 <[email protected]> + + ** 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 <[email protected]> * 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) {