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



commit 50c6251707dde120be92c3cb46c0d260918355df
Author: Rui Matos <tiagomatos gmail com>
Date:   Thu Dec 15 02:39:49 2011 +0000

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

 gtk/gtkcheckbutton.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c
index ac19714..7f9f19e 100644
--- a/gtk/gtkcheckbutton.c
+++ b/gtk/gtkcheckbutton.c
@@ -179,7 +179,6 @@ gtk_check_button_paint (GtkWidget    *widget,
     {
       GtkWidget *child = gtk_bin_get_child (GTK_BIN (widget));
       GtkStyleContext *context;
-      GtkStateFlags state;
       GtkAllocation allocation;
       gint border_width;
       gint interior_focus;
@@ -196,9 +195,6 @@ gtk_check_button_paint (GtkWidget    *widget,
 
       gtk_widget_get_allocation (widget, &allocation);
       context = gtk_widget_get_style_context (widget);
-      state = gtk_widget_get_state_flags (widget);
-
-      gtk_style_context_set_state (context, state);
 
       if (interior_focus && child && gtk_widget_get_visible (child))
         {



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