[gtk+/wip/unfocused-fixes: 10/17] toolbar: Stop setting state flags on the style context for drawing



commit 29188ee1dc132eabdaf8e9fdb83c1ea4134d4bb1
Author: Rui Matos <tiagomatos gmail com>
Date:   Thu Dec 22 00:12:37 2011 +0000

    toolbar: Stop setting state flags on the style context for drawing

 gtk/gtktoolbar.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c
index 981c1f0..cbe8bd6 100644
--- a/gtk/gtktoolbar.c
+++ b/gtk/gtktoolbar.c
@@ -858,16 +858,11 @@ gtk_toolbar_draw (GtkWidget *widget,
   GtkToolbar *toolbar = GTK_TOOLBAR (widget);
   GtkToolbarPrivate *priv = toolbar->priv;
   GtkStyleContext *context;
-  GtkStateFlags state;
   GList *list;
   guint border_width;
 
   border_width = 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_save (context);
-  gtk_style_context_set_state (context, state);
 
   gtk_render_background (context, cr, border_width, border_width,
                          gtk_widget_get_allocated_width (widget) - 2 * border_width,
@@ -887,8 +882,6 @@ gtk_toolbar_draw (GtkWidget *widget,
 				priv->arrow_button,
 				cr);
 
-  gtk_style_context_restore (context);
-
   return FALSE;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]