diff options
-rw-r--r-- | widgets/misc/ChangeLog | 6 | ||||
-rw-r--r-- | widgets/misc/e-combo-button.c | 10 |
2 files changed, 12 insertions, 4 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index 416470e660..5c91fc6a1f 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -1,3 +1,9 @@ +2006-03-06 Jeff Cai <jeff.cai@sun.com> + + ** Fixes for 333235 + * e-combo-button.c: (paint): If width of a widget is 0, + don't draw it. + 2006-02-28 Devashish Sharma <sdevashish@novell.com> * e-reflow.c :(do_adjustment): Check and see if reflow->items diff --git a/widgets/misc/e-combo-button.c b/widgets/misc/e-combo-button.c index 5d5d38ea7d..e116644e49 100644 --- a/widgets/misc/e-combo-button.c +++ b/widgets/misc/e-combo-button.c @@ -146,10 +146,12 @@ paint (EComboButton *combo_button, 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) { |