From c8998da860a2e05f2173fab2ef86cf4e41fb6e2b Mon Sep 17 00:00:00 2001 From: Ernestas Kulik Date: Mon, 21 May 2018 13:54:29 +0300 Subject: mime-actions: Stop handling delete-event Docs say that a response signal is emitted automagically when such an event is received. --- src/nautilus-mime-actions.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/nautilus-mime-actions.c b/src/nautilus-mime-actions.c index 55b5df82f..1d00fa1a9 100644 --- a/src/nautilus-mime-actions.c +++ b/src/nautilus-mime-actions.c @@ -1260,13 +1260,6 @@ application_unhandled_file_install (GtkDialog *dialog, } } -static gboolean -delete_cb (GtkDialog *dialog) -{ - gtk_dialog_response (dialog, GTK_RESPONSE_DELETE_EVENT); - return TRUE; -} - static void pk_proxy_appeared_cb (GObject *source, GAsyncResult *res, @@ -1316,8 +1309,6 @@ pk_proxy_appeared_cb (GObject *source, g_signal_connect (dialog, "response", G_CALLBACK (application_unhandled_file_install), parameters_install); - g_signal_connect (dialog, "delete-event", - G_CALLBACK (delete_cb), NULL); gtk_widget_show_all (dialog); g_free (mime_type); } -- cgit v1.2.1