summaryrefslogtreecommitdiff
path: root/demos/gtk-demo/sliding_puzzle.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/gtk-demo/sliding_puzzle.c')
-rw-r--r--demos/gtk-demo/sliding_puzzle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/gtk-demo/sliding_puzzle.c b/demos/gtk-demo/sliding_puzzle.c
index b273946956..09e8c4bdbd 100644
--- a/demos/gtk-demo/sliding_puzzle.c
+++ b/demos/gtk-demo/sliding_puzzle.c
@@ -471,7 +471,7 @@ do_sliding_puzzle (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;
}