diff options
-rw-r--r-- | src/empathy-accounts-dialog.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c index 4d4c2bcaa..05bdb6f2e 100644 --- a/src/empathy-accounts-dialog.c +++ b/src/empathy-accounts-dialog.c @@ -1480,10 +1480,20 @@ accounts_dialog_response_cb (GtkWidget *widget, g_free (question_dialog_primary_text); } - else if (response == GTK_RESPONSE_CLOSE) + else if (response == GTK_RESPONSE_CLOSE || + response == GTK_RESPONSE_DELETE_EVENT) gtk_widget_destroy (widget); } +static gboolean +accounts_dialog_delete_event_cb (GtkWidget *widget, + GdkEvent *event, + EmpathyAccountsDialog *dialog) +{ + /* we maunally handle responses to delete events */ + return TRUE; +} + static void accounts_dialog_destroy_cb (GtkObject *obj, EmpathyAccountsDialog *dialog) @@ -1557,6 +1567,7 @@ accounts_dialog_build_ui (EmpathyAccountsDialog *dialog) empathy_builder_connect (gui, dialog, "accounts_dialog", "response", accounts_dialog_response_cb, "accounts_dialog", "destroy", accounts_dialog_destroy_cb, + "accounts_dialog", "delete-event", accounts_dialog_delete_event_cb, "button_create", "clicked", accounts_dialog_button_create_clicked_cb, "button_back", "clicked", accounts_dialog_button_back_clicked_cb, "button_add", "clicked", accounts_dialog_button_add_clicked_cb, |