summaryrefslogtreecommitdiff
path: root/demos/gtk-demo/css_pixbufs.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/gtk-demo/css_pixbufs.c')
-rw-r--r--demos/gtk-demo/css_pixbufs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/gtk-demo/css_pixbufs.c b/demos/gtk-demo/css_pixbufs.c
index a12142dd47..2617c76280 100644
--- a/demos/gtk-demo/css_pixbufs.c
+++ b/demos/gtk-demo/css_pixbufs.c
@@ -119,7 +119,7 @@ do_css_pixbufs (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;
}