summaryrefslogtreecommitdiff
path: root/examples/grid-packing.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-09 10:26:22 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-11 12:20:57 -0400
commitcd0081d08ab9abccc3bddc8b597413d17f2af709 (patch)
treef0f0964fce367041d6e03cd08f43d1523f1ad1e8 /examples/grid-packing.c
parent48821a64d0a55895bcf511ea5fe50431d193acd2 (diff)
downloadgtk+-cd0081d08ab9abccc3bddc8b597413d17f2af709.tar.gz
Use gtk_window_destroy
Replace calls to gtk_widget_destroy on windows with gtk_window_destroy.
Diffstat (limited to 'examples/grid-packing.c')
-rw-r--r--examples/grid-packing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/grid-packing.c b/examples/grid-packing.c
index dcee10f712..7d98c9a1db 100644
--- a/examples/grid-packing.c
+++ b/examples/grid-packing.c
@@ -42,7 +42,7 @@ activate (GtkApplication *app,
gtk_grid_attach (GTK_GRID (grid), button, 1, 0, 1, 1);
button = gtk_button_new_with_label ("Quit");
- g_signal_connect_swapped (button, "clicked", G_CALLBACK (gtk_widget_destroy), window);
+ g_signal_connect_swapped (button, "clicked", G_CALLBACK (gtk_window_destroy), window);
/* Place the Quit button in the grid cell (0, 1), and make it
* span 2 columns.