diff options
author | Srinivasa Ragavan <sragavan@src.gnome.org> | 2006-06-19 12:25:30 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2006-06-19 12:25:30 +0800 |
commit | c6539d7b4b51ecbaee9adc9cd5be320d30b57f61 (patch) | |
tree | 09aa64127f0ea61186d9a91e01efb78e9de95fab /widgets/misc/e-combo-button.c | |
parent | e190315d3a9ce2a29c5fab501def1801badae41c (diff) | |
download | gsoc2013-evolution-c6539d7b4b51ecbaee9adc9cd5be320d30b57f61.tar.gz gsoc2013-evolution-c6539d7b4b51ecbaee9adc9cd5be320d30b57f61.tar.zst gsoc2013-evolution-c6539d7b4b51ecbaee9adc9cd5be320d30b57f61.zip |
Fix for bug #262210
svn path=/trunk/; revision=32165
Diffstat (limited to 'widgets/misc/e-combo-button.c')
-rw-r--r-- | widgets/misc/e-combo-button.c | 20 |
1 files changed, 13 insertions, 7 deletions
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; |