[gtk] stack: Don't queue an unnecessary redraw



commit 0530637fef4d30c917d2b604d6b55bcdade44698
Author: Timm Bäder <mail baedert org>
Date:   Sun Dec 23 08:23:03 2018 +0100

    stack: Don't queue an unnecessary redraw
    
    Both queue_allocate and queue_resize already queue a draw.

 gtk/gtkstack.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index 6017104be6..860af7f59a 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -768,12 +768,12 @@ gtk_stack_progress_updated (GtkStack *stack)
 {
   GtkStackPrivate *priv = gtk_stack_get_instance_private (stack);
 
-  gtk_widget_queue_draw (GTK_WIDGET (stack));
-
   if (!priv->vhomogeneous || !priv->hhomogeneous)
     gtk_widget_queue_resize (GTK_WIDGET (stack));
   else if (is_window_moving_transition (priv->active_transition_type))
     gtk_widget_queue_allocate (GTK_WIDGET (stack));
+  else
+    gtk_widget_queue_draw (GTK_WIDGET (stack));
 
   if (gtk_progress_tracker_get_state (&priv->tracker) == GTK_PROGRESS_STATE_AFTER)
     {


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