aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-session.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-12-23 01:11:02 +0800
committerMilan Crha <mcrha@redhat.com>2011-12-23 01:11:02 +0800
commita1112c6e401a022f6222efffa5c149290d874663 (patch)
treed9ea3465b7803e787fe6c67d9b7f35f4f98e1b86 /mail/e-mail-session.c
parentf2ab123afa50e8fa0c905a04c1a2e846edbe87a4 (diff)
downloadgsoc2013-evolution-a1112c6e401a022f6222efffa5c149290d874663.tar
gsoc2013-evolution-a1112c6e401a022f6222efffa5c149290d874663.tar.gz
gsoc2013-evolution-a1112c6e401a022f6222efffa5c149290d874663.tar.bz2
gsoc2013-evolution-a1112c6e401a022f6222efffa5c149290d874663.tar.lz
gsoc2013-evolution-a1112c6e401a022f6222efffa5c149290d874663.tar.xz
gsoc2013-evolution-a1112c6e401a022f6222efffa5c149290d874663.tar.zst
gsoc2013-evolution-a1112c6e401a022f6222efffa5c149290d874663.zip
Fix a typo in a commit for a bug #666490
Diffstat (limited to 'mail/e-mail-session.c')
-rw-r--r--mail/e-mail-session.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mail/e-mail-session.c b/mail/e-mail-session.c
index 9ac0cad048..b1dea643f8 100644
--- a/mail/e-mail-session.c
+++ b/mail/e-mail-session.c
@@ -268,9 +268,14 @@ user_message_exec (struct _user_message_msg *m,
user_message_response (
user_message_dialog, response, m);
} else {
+ gpointer user_data = m;
+
+ if (g_slist_length (m->button_captions) <= 1)
+ user_data = NULL;
+
g_signal_connect (
user_message_dialog, "response",
- G_CALLBACK (user_message_response), NULL);
+ G_CALLBACK (user_message_response), user_data);
gtk_widget_show (user_message_dialog);
}
}