aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
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
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')
-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) {
itgraph'>* Unbreak on 4.x: Builds fine with GCC 3.4+vs2005-12-121-1/+1 * - Add SHA256pav2005-11-251-0/+1 * - Update to 0.4.0pav2005-09-0712-733/+24 * SIZEify.trevor2004-01-301-0/+1 * introduce MASTER_SITE_GNU_ALPHAijliao2003-10-311-1/+2 * Per distfile survey, remove one dead mastersite, and add the true homelinimon2003-10-282-4/+2 * unbreak build problems for math/pspp.edwin2003-10-152-7/+574 * BROKEN on 5.x: does not compilekris2003-10-151-1/+7 * De-pkg-comment.knu2003-02-212-1/+1 * fix build on -currentijliao2002-12-23