Commit 88c3456d authored by Matthias Clasen's avatar Matthias Clasen

assistant: Avoid tripping template tests

We need to unset the titlebar manually before chaining up
in destroy, otherwise we trigger the template invariant
checking - GtkWindow would eventually unset it, but too late
for the invariants checking code in gtk_widget_destroy.
parent 0d109867
......@@ -303,7 +303,7 @@ apply_use_header_bar (GtkAssistant *assistant)
gtk_widget_set_visible (priv->headerbar, priv->use_header_bar);
if (!priv->use_header_bar)
gtk_window_set_titlebar (GTK_WINDOW (assistant), NULL);
if (priv->use_header_bar)
g_signal_connect (priv->action_area, "add", G_CALLBACK (add_cb), assistant);
......@@ -1365,6 +1365,7 @@ gtk_assistant_destroy (GtkWidget *widget)
priv->visited_pages = NULL;
gtk_window_set_titlebar (GTK_WINDOW (widget), NULL);
GTK_WIDGET_CLASS (gtk_assistant_parent_class)->destroy (widget);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment