From 680ec087ab22c300a6b938a20f8a9f95caf88c70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 4 Feb 2016 19:03:37 +0100 Subject: [PATCH] switch: Don't queue draws after setting state flags --- gtk/gtkswitch.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c index 249753b457..f2c220af53 100644 --- a/gtk/gtkswitch.c +++ b/gtk/gtkswitch.c @@ -322,7 +322,6 @@ gtk_switch_enter (GtkWidget *widget, { priv->in_switch = TRUE; gtk_widget_set_state_flags (widget, GTK_STATE_FLAG_PRELIGHT, FALSE); - gtk_widget_queue_draw (widget); } return FALSE; @@ -338,7 +337,6 @@ gtk_switch_leave (GtkWidget *widget, { priv->in_switch = FALSE; gtk_widget_unset_state_flags (widget, GTK_STATE_FLAG_PRELIGHT); - gtk_widget_queue_draw (widget); } return FALSE; @@ -1204,8 +1202,6 @@ gtk_switch_set_state (GtkSwitch *sw, gtk_widget_unset_state_flags (GTK_WIDGET (sw), GTK_STATE_FLAG_ACTIVE); g_object_notify (G_OBJECT (sw), "state"); - - gtk_widget_queue_draw (GTK_WIDGET (sw)); } /**