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 /gtk/gtkappchooserbutton.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 'gtk/gtkappchooserbutton.c')
-rw-r--r-- | gtk/gtkappchooserbutton.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkappchooserbutton.c b/gtk/gtkappchooserbutton.c index d8a8e66e3c..2622b3bb72 100644 --- a/gtk/gtkappchooserbutton.c +++ b/gtk/gtkappchooserbutton.c @@ -249,13 +249,13 @@ other_application_dialog_response_cb (GtkDialog *dialog, * 'Other application…' */ gtk_combo_box_set_active (GTK_COMBO_BOX (self->combobox), self->last_active); - gtk_widget_destroy (GTK_WIDGET (dialog)); + gtk_window_destroy (GTK_WINDOW (dialog)); return; } info = gtk_app_chooser_get_app_info (GTK_APP_CHOOSER (dialog)); - gtk_widget_destroy (GTK_WIDGET (dialog)); + gtk_window_destroy (GTK_WINDOW (dialog)); /* refresh the combobox to get the new application */ gtk_app_chooser_refresh (GTK_APP_CHOOSER (self)); |