Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mattdangerw/7e4435faacdcca2b7b25 to your computer and use it in GitHub Desktop.
Save mattdangerw/7e4435faacdcca2b7b25 to your computer and use it in GitHub Desktop.
From 61ce96242b70a24bb6d58b3f6fd576b0009af9bb Mon Sep 17 00:00:00 2001
From: Matt Watson <mattdangerw@gmail.com>
Date: Thu, 10 Dec 2015 15:50:25 -0800
Subject: [PATCH] gtkstack: remove needless queue_resize
In gtk_stack_set_transition_position we should only need to
queue_resize if we are non-homogeneous, which is already done
earlier in the function.
---
gtk/gtkstack.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index 09ee656..c832179 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -906,8 +906,6 @@ gtk_stack_set_transition_position (GtkStack *stack,
gtk_widget_set_child_visible (priv->last_visible_child->widget, FALSE);
priv->last_visible_child = NULL;
}
-
- gtk_widget_queue_resize (GTK_WIDGET (stack));
}
return done;
--
2.1.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment