diff options
author | Rui Matos <tiagomatos@gmail.com> | 2011-12-15 02:39:49 +0000 |
---|---|---|
committer | Rui Matos <tiagomatos@gmail.com> | 2011-12-19 19:21:15 +0000 |
commit | dae267544127a84ed4edac611ba835000f8ff866 (patch) | |
tree | 43ec5951c7ffb22731fea3feb32c0e6d5ba228f6 | |
parent | 5f5d4db034728c11ad11525c47e9078af19db359 (diff) | |
download | gtk+-dae267544127a84ed4edac611ba835000f8ff866.tar.gz |
checkbutton: Stop setting state flags on the style context for drawing
-rw-r--r-- | gtk/gtkcheckbutton.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c index ac19714535..7f9f19eb17 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)) { |