summaryrefslogtreecommitdiff
path: root/gtk/gtkapplicationwindow.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 /gtk/gtkapplicationwindow.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 'gtk/gtkapplicationwindow.c')
-rw-r--r--gtk/gtkapplicationwindow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c
index 76172684b2..9f13ef1799 100644
--- a/gtk/gtkapplicationwindow.c
+++ b/gtk/gtkapplicationwindow.c
@@ -724,7 +724,7 @@ gtk_application_window_dispose (GObject *object)
if (priv->help_overlay)
{
- gtk_widget_destroy (GTK_WIDGET (priv->help_overlay));
+ gtk_window_destroy (GTK_WINDOW (priv->help_overlay));
g_clear_object (&priv->help_overlay);
}
@@ -922,7 +922,7 @@ gtk_application_window_set_help_overlay (GtkApplicationWindow *window,
g_return_if_fail (help_overlay == NULL || GTK_IS_SHORTCUTS_WINDOW (help_overlay));
if (priv->help_overlay)
- gtk_widget_destroy (GTK_WIDGET (priv->help_overlay));
+ gtk_window_destroy (GTK_WINDOW (priv->help_overlay));
g_set_object (&priv->help_overlay, help_overlay);
if (!priv->help_overlay)