From dae267544127a84ed4edac611ba835000f8ff866 Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Thu, 15 Dec 2011 02:39:49 +0000 Subject: checkbutton: Stop setting state flags on the style context for drawing --- gtk/gtkcheckbutton.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'gtk/gtkcheckbutton.c') 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)) { -- cgit v1.2.1