aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-combo-button.c
diff options
context:
space:
mode:
authorJeff Cai <jeff.cai@sun.com>2006-03-06 18:18:52 +0800
committerSimon Zheng <simonz@src.gnome.org>2006-03-06 18:18:52 +0800
commit24021a64a5ca0c90b85ba28295790162f4cbc1c8 (patch)
tree717d05fbfc5450e0641373e78a4ed182352e8e76 /widgets/misc/e-combo-button.c
parent4608ce31aea6c4ed83dfe4337d72ed2659ec85a6 (diff)
downloadgsoc2013-evolution-24021a64a5ca0c90b85ba28295790162f4cbc1c8.tar.gz
gsoc2013-evolution-24021a64a5ca0c90b85ba28295790162f4cbc1c8.tar.zst
gsoc2013-evolution-24021a64a5ca0c90b85ba28295790162f4cbc1c8.zip
** Fixes for 333235 If width of a widget is 0, don't draw it.
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. svn path=/trunk/; revision=31658
Diffstat (limited to 'widgets/misc/e-combo-button.c')
-rw-r--r--widgets/misc/e-combo-button.c10
1 files changed, 6 insertions, 4 deletions
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) {