[gtk+] menubar: Stop setting state flags on the style context for drawing
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] menubar: Stop setting state flags on the style context for drawing
- Date: Mon, 19 Dec 2011 19:24:53 +0000 (UTC)
commit 6b624a5a18a5bc642f3ffdb43fa0e6b443308f32
Author: Rui Matos <tiagomatos gmail com>
Date: Mon Dec 19 15:43:10 2011 +0000
menubar: Stop setting state flags on the style context for drawing
gtk/gtkmenubar.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkmenubar.c b/gtk/gtkmenubar.c
index 428cf51..fde1406 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]