diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-05-09 10:26:22 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-05-11 12:20:57 -0400 |
commit | cd0081d08ab9abccc3bddc8b597413d17f2af709 (patch) | |
tree | f0f0964fce367041d6e03cd08f43d1523f1ad1e8 /demos/gtk-demo/headerbar.c | |
parent | 48821a64d0a55895bcf511ea5fe50431d193acd2 (diff) | |
download | gtk+-cd0081d08ab9abccc3bddc8b597413d17f2af709.tar.gz |
Use gtk_window_destroy
Replace calls to gtk_widget_destroy on windows
with gtk_window_destroy.
Diffstat (limited to 'demos/gtk-demo/headerbar.c')
-rw-r--r-- | demos/gtk-demo/headerbar.c | 2 |
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; } |