aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
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
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')
-rw-r--r--widgets/misc/ChangeLog6
-rw-r--r--widgets/misc/e-combo-button.c10
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) {