summaryrefslogtreecommitdiff
path: root/demos/gtk-demo/peg_solitaire.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/gtk-demo/peg_solitaire.c')
-rw-r--r--demos/gtk-demo/peg_solitaire.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/gtk-demo/peg_solitaire.c b/demos/gtk-demo/peg_solitaire.c
index a408d444bd..61fddf9874 100644
--- a/demos/gtk-demo/peg_solitaire.c
+++ b/demos/gtk-demo/peg_solitaire.c
@@ -348,7 +348,7 @@ do_peg_solitaire (GtkWidget *do_widget)
if (!gtk_widget_get_visible (window))
gtk_widget_show (window);
else
- gtk_widget_destroy (window);
+ gtk_window_destroy (GTK_WINDOW (window));
return window;
}