summaryrefslogtreecommitdiff
path: root/demos/gtk-demo/rotated_text.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/gtk-demo/rotated_text.c')
-rw-r--r--demos/gtk-demo/rotated_text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/gtk-demo/rotated_text.c b/demos/gtk-demo/rotated_text.c
index 8a5a6c91e5..a387a6cf7f 100644
--- a/demos/gtk-demo/rotated_text.c
+++ b/demos/gtk-demo/rotated_text.c
@@ -212,7 +212,7 @@ do_rotated_text (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;
}