aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-accounts-dialog.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2009-09-01 19:04:55 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2009-09-06 20:51:34 +0800
commit36809360e48fef7729b43ccc4416ed2b118fa459 (patch)
tree823116bd166c9c5931140f4bb09adb847bc3ff93 /src/empathy-accounts-dialog.c
parent3f5b50c88c4e87fcf6a2b340655179764fe07848 (diff)
downloadgsoc2013-empathy-36809360e48fef7729b43ccc4416ed2b118fa459.tar
gsoc2013-empathy-36809360e48fef7729b43ccc4416ed2b118fa459.tar.gz
gsoc2013-empathy-36809360e48fef7729b43ccc4416ed2b118fa459.tar.bz2
gsoc2013-empathy-36809360e48fef7729b43ccc4416ed2b118fa459.tar.lz
gsoc2013-empathy-36809360e48fef7729b43ccc4416ed2b118fa459.tar.xz
gsoc2013-empathy-36809360e48fef7729b43ccc4416ed2b118fa459.tar.zst
gsoc2013-empathy-36809360e48fef7729b43ccc4416ed2b118fa459.zip
Manually handle delete events.
Diffstat (limited to 'src/empathy-accounts-dialog.c')
-rw-r--r--src/empathy-accounts-dialog.c13
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,