summaryrefslogtreecommitdiff
path: root/gtk/gtkfontbutton.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/gtkfontbutton.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/gtkfontbutton.c')
-rw-r--r--gtk/gtkfontbutton.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkfontbutton.c b/gtk/gtkfontbutton.c
index 01fa0bf0c7..a0a9e0162f 100644
--- a/gtk/gtkfontbutton.c
+++ b/gtk/gtkfontbutton.c
@@ -586,8 +586,8 @@ gtk_font_button_finalize (GObject *object)
{
GtkFontButton *font_button = GTK_FONT_BUTTON (object);
- if (font_button->font_dialog != NULL)
- gtk_widget_destroy (font_button->font_dialog);
+ if (font_button->font_dialog != NULL)
+ gtk_window_destroy (GTK_WINDOW (font_button->font_dialog));
g_free (font_button->title);