[gtk+] button: Remove unnecessary queue_redraw() calls



commit b520d3b7fb68ae905f545ea410fe3c600b91250c
Author: Benjamin Otte <otte redhat com>
Date:   Sun Aug 17 06:47:17 2014 +0200

    button: Remove unnecessary queue_redraw() calls
    
    Setting a state automatically triggers redraws via the CSS machinery.

 gtk/gtkbutton.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index 63fb9cf..ebe4f15 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -1504,7 +1504,6 @@ gtk_button_set_relief (GtkButton      *button,
         gtk_style_context_remove_class (context, GTK_STYLE_CLASS_FLAT);
 
       g_object_notify_by_pspec (G_OBJECT (button), props[PROP_RELIEF]);
-      gtk_widget_queue_draw (GTK_WIDGET (button));
     }
 }
 
@@ -2034,7 +2033,6 @@ gtk_real_button_activate (GtkButton *button)
       g_source_set_name_by_id (priv->activate_timeout, "[gtk+] button_activate_timeout");
       priv->button_down = TRUE;
       gtk_button_update_state (button);
-      gtk_widget_queue_draw (GTK_WIDGET (button));
     }
 }
 
@@ -2058,7 +2056,6 @@ gtk_button_finish_activate (GtkButton *button,
   priv->button_down = FALSE;
 
   gtk_button_update_state (button);
-  gtk_widget_queue_draw (GTK_WIDGET (button));
 
   if (do_it)
     gtk_button_clicked (button);
@@ -2446,7 +2443,6 @@ static void
 gtk_button_enter_leave (GtkButton *button)
 {
   gtk_button_update_state (button);
-  gtk_widget_queue_draw (GTK_WIDGET (button));
 }
 
 static void


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