gtk-demo: Fix a crash

Using the assistant demo repeatedly was crashing.
This commit is contained in:
Matthias Clasen 2020-04-04 15:35:18 -04:00
parent b636df7784
commit 33928a52c3

View File

@ -179,7 +179,7 @@ do_assistant (GtkWidget *do_widget)
gtk_window_set_display (GTK_WINDOW (assistant),
gtk_widget_get_display (do_widget));
g_signal_connect (assistant, "destroy",
G_CALLBACK (gtk_widget_destroyed), &window);
G_CALLBACK (gtk_widget_destroyed), &assistant);
create_page1 (assistant);
create_page2 (assistant);