summaryrefslogtreecommitdiff
path: root/gtk/gtkstack.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-12-23 08:23:03 +0100
committerTimm Bäder <mail@baedert.org>2019-01-03 08:52:35 +0100
commit0530637fef4d30c917d2b604d6b55bcdade44698 (patch)
treed09dc188431f6396cf0eac96eb19d042810d39a9 /gtk/gtkstack.c
parent3d6bdb9af3f5333faf41a6a6dd1d01e0d8bfb98f (diff)
downloadgtk+-0530637fef4d30c917d2b604d6b55bcdade44698.tar.gz
stack: Don't queue an unnecessary redraw
Both queue_allocate and queue_resize already queue a draw.
Diffstat (limited to 'gtk/gtkstack.c')
-rw-r--r--gtk/gtkstack.c4
1 files 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)
{