aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2006-06-19 12:25:30 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2006-06-19 12:25:30 +0800
commitc6539d7b4b51ecbaee9adc9cd5be320d30b57f61 (patch)
tree09aa64127f0ea61186d9a91e01efb78e9de95fab /widgets
parente190315d3a9ce2a29c5fab501def1801badae41c (diff)
downloadgsoc2013-evolution-c6539d7b4b51ecbaee9adc9cd5be320d30b57f61.tar
gsoc2013-evolution-c6539d7b4b51ecbaee9adc9cd5be320d30b57f61.tar.gz
gsoc2013-evolution-c6539d7b4b51ecbaee9adc9cd5be320d30b57f61.tar.bz2
gsoc2013-evolution-c6539d7b4b51ecbaee9adc9cd5be320d30b57f61.tar.lz
gsoc2013-evolution-c6539d7b4b51ecbaee9adc9cd5be320d30b57f61.tar.xz
gsoc2013-evolution-c6539d7b4b51ecbaee9adc9cd5be320d30b57f61.tar.zst
gsoc2013-evolution-c6539d7b4b51ecbaee9adc9cd5be320d30b57f61.zip
Fix for bug #262210
svn path=/trunk/; revision=32165
Diffstat (limited to 'widgets')
-rw-r--r--widgets/misc/ChangeLog4
-rw-r--r--widgets/misc/e-combo-button.c20
2 files changed, 17 insertions, 7 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index 114ce73c8f..3655f14352 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,7 @@
+2006-06-19 Chpe <chpe@gnome.org>
+
+ * e-combo-button.c: (paint): Fix for bug #262210
+
2006-06-09 Johnny Jacob <johnnyjacob@gmail.com>
* e-dateedit.c (): Removing aggressive time check when entering a
diff --git a/widgets/misc/e-combo-button.c b/widgets/misc/e-combo-button.c
index e116644e49..53dded883a 100644
--- a/widgets/misc/e-combo-button.c
+++ b/widgets/misc/e-combo-button.c
@@ -94,6 +94,7 @@ paint (EComboButton *combo_button,
{
EComboButtonPrivate *priv = combo_button->priv;
GtkWidget *widget = GTK_WIDGET (combo_button);
+ GtkButton *button = GTK_BUTTON (combo_button);
GtkShadowType shadow_type;
gboolean interior_focus;
int separator_x;
@@ -142,17 +143,22 @@ paint (EComboButton *combo_button,
height -= 2 * (focus_width + focus_pad);
}
- gtk_paint_box (widget->style, widget->window,
- GTK_WIDGET_STATE (widget), shadow_type,
- area, widget, "button",
- x, y, separator_x, height);
+ if (button->relief != GTK_RELIEF_NONE || button->depressed ||
+ priv->menu_popped_up ||
+ GTK_WIDGET_STATE (widget) == GTK_STATE_PRELIGHT) {
- 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);
-
+ x, y, 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) {
x += widget->style->xthickness + focus_pad;