[empathy] Manually handle delete events.
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] Manually handle delete events.
- Date: Sun, 6 Sep 2009 12:52:01 +0000 (UTC)
commit 36809360e48fef7729b43ccc4416ed2b118fa459
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Sep 1 13:04:55 2009 +0200
Manually handle delete events.
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 4d4c2bc..05bdb6f 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]