summaryrefslogtreecommitdiff
path: root/0002-button-Remove-unnecessary-queue_redraw-calls.patch
diff options
context:
space:
mode:
Diffstat (limited to '0002-button-Remove-unnecessary-queue_redraw-calls.patch')
-rw-r--r--0002-button-Remove-unnecessary-queue_redraw-calls.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/0002-button-Remove-unnecessary-queue_redraw-calls.patch b/0002-button-Remove-unnecessary-queue_redraw-calls.patch
new file mode 100644
index 0000000..0a2742a
--- /dev/null
+++ b/0002-button-Remove-unnecessary-queue_redraw-calls.patch
@@ -0,0 +1,49 @@
+From b520d3b7fb68ae905f545ea410fe3c600b91250c Mon Sep 17 00:00:00 2001
+From: Benjamin Otte <otte@redhat.com>
+Date: Sun, 17 Aug 2014 06:47:17 +0200
+Subject: [PATCH] button: Remove unnecessary queue_redraw() calls
+
+Setting a state automatically triggers redraws via the CSS machinery.
+---
+ gtk/gtkbutton.c | 4 ----
+ 1 file changed, 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
+--
+2.1.0
+
bgstack15