summaryrefslogtreecommitdiff
path: root/gtk/gtkmenuitem.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-10-11 11:48:32 +0200
committerBenjamin Otte <otte@redhat.com>2012-10-31 11:09:10 +0100
commit73fe9a2acf33d06e5979ebf7cfc57d214dc87d9a (patch)
tree20f5b023797dbba9391dccfeb752440e6de5656d /gtk/gtkmenuitem.c
parentb1ad5c8abc2ca054bbf19ffddfb0a0af7195e50c (diff)
downloadgtk+-73fe9a2acf33d06e5979ebf7cfc57d214dc87d9a.tar.gz
menuitem: Draw background unconditionally
Diffstat (limited to 'gtk/gtkmenuitem.c')
-rw-r--r--gtk/gtkmenuitem.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c
index 576a64a15c..bf2d3bb640 100644
--- a/gtk/gtkmenuitem.c
+++ b/gtk/gtkmenuitem.c
@@ -1719,11 +1719,8 @@ gtk_menu_item_draw (GtkWidget *widget,
gtk_style_context_get_padding (context, state, &padding);
- if (child && (state & GTK_STATE_FLAG_PRELIGHT))
- {
- gtk_render_background (context, cr, x, y, w, h);
- gtk_render_frame (context, cr, x, y, w, h);
- }
+ gtk_render_background (context, cr, x, y, w, h);
+ gtk_render_frame (context, cr, x, y, w, h);
if (priv->submenu && !GTK_IS_MENU_BAR (parent))
{