[gtk+/wip/unfocused-fixes: 15/27] entry: Stop setting state flags on the style context for drawing



commit 5e030835137093d8a68ea68d8298dd0eaa7b4578
Author: Rui Matos <tiagomatos gmail com>
Date:   Sat Dec 17 19:27:58 2011 +0000

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

 gtk/gtkentry.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index ef23f3e..d0c2372 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -3564,15 +3564,10 @@ gtk_entry_draw (GtkWidget *widget,
 {
   GtkEntry *entry = GTK_ENTRY (widget);
   GtkStyleContext *context;
-  GtkStateFlags state;
   GtkEntryPrivate *priv = entry->priv;
   int i;
 
   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);
 
   /* Draw entry_bg, shadow, progress and focus */
   gtk_entry_draw_frame (widget, context, cr);
@@ -3604,8 +3599,6 @@ gtk_entry_draw (GtkWidget *widget,
         draw_icon (widget, cr, i);
     }
 
-  gtk_style_context_restore (context);
-
   return FALSE;
 }
 



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