summaryrefslogtreecommitdiff
path: root/demos/gtk-demo/headerbar.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/gtk-demo/headerbar.c')
-rw-r--r--demos/gtk-demo/headerbar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/gtk-demo/headerbar.c b/demos/gtk-demo/headerbar.c
index 3a20d14ab3..7f1acfa652 100644
--- a/demos/gtk-demo/headerbar.c
+++ b/demos/gtk-demo/headerbar.c
@@ -58,7 +58,7 @@ do_headerbar (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;
}