[gtk+] menuitem: Draw background unconditionally
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] menuitem: Draw background unconditionally
- Date: Wed, 31 Oct 2012 10:57:22 +0000 (UTC)
commit 73fe9a2acf33d06e5979ebf7cfc57d214dc87d9a
Author: Benjamin Otte <otte redhat com>
Date: Thu Oct 11 11:48:32 2012 +0200
menuitem: Draw background unconditionally
gtk/gtkmenuitem.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c
index 576a64a..bf2d3bb 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))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]