summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-10-24 20:54:55 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-10-24 20:54:55 -0400
commit434b145ee0199989c1772706ef1dec0722fc75f2 (patch)
tree18536ca5aed2880f18f45b2b5109131a5b1eb0e0
parent2546b8866102951493a765cb4a8bdef266f8f4db (diff)
downloadgtk+-434b145ee0199989c1772706ef1dec0722fc75f2.tar.gz
stack: Don't transition when the visible child is remove
This is a corner-case, and it is causing crashes in the shortcuts window, after a11ab6c995a38fde0eba.
-rw-r--r--gtk/gtkstack.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index e1a24b7763..b06bc3629d 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -1474,12 +1474,7 @@ stack_remove (GtkStack *stack,
was_visible = gtk_widget_get_visible (child);
if (priv->visible_child == child_info)
- {
- if (in_dispose)
- priv->visible_child = NULL;
- else
- set_visible_child (stack, NULL, priv->transition_type, priv->transition_duration);
- }
+ priv->visible_child = NULL;
if (priv->last_visible_child == child_info)
priv->last_visible_child = NULL;