summaryrefslogtreecommitdiff
path: root/gtk/gtkmenubar.c
diff options
context:
space:
mode:
authorRui Matos <tiagomatos@gmail.com>2011-12-19 15:43:10 +0000
committerRui Matos <tiagomatos@gmail.com>2011-12-19 19:21:16 +0000
commit6b624a5a18a5bc642f3ffdb43fa0e6b443308f32 (patch)
treed825f2b196ab3b65d72aae11476ca80efb16d4b0 /gtk/gtkmenubar.c
parent5b4cc2f0b62947be8cbfeeac81e84e8ce7a2d651 (diff)
downloadgtk+-6b624a5a18a5bc642f3ffdb43fa0e6b443308f32.tar.gz
menubar: Stop setting state flags on the style context for drawing
Diffstat (limited to 'gtk/gtkmenubar.c')
-rw-r--r--gtk/gtkmenubar.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gtk/gtkmenubar.c b/gtk/gtkmenubar.c
index 428cf51fb7..fde1406646 100644
--- a/gtk/gtkmenubar.c
+++ b/gtk/gtkmenubar.c
@@ -636,15 +636,11 @@ gtk_menu_bar_draw (GtkWidget *widget,
cairo_t *cr)
{
GtkStyleContext *context;
- GtkStateFlags state;
int border;
border = gtk_container_get_border_width (GTK_CONTAINER (widget));
context = gtk_widget_get_style_context (widget);
- state = gtk_widget_get_state_flags (widget);
- gtk_style_context_set_state (context, state);
-
if (get_shadow_type (GTK_MENU_BAR (widget)) != GTK_SHADOW_NONE)
gtk_render_background (context, cr,
border, border,