aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-mt.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-09-28 08:03:51 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-09-28 08:03:51 +0800
commit905bc4ef20410f9649cd13f68a7ec1063e0e8b15 (patch)
tree90cc0583903cb48576e984fcda999bbf0cce0fcb /mail/mail-mt.c
parent7fcdd7c9749e4ce45dea5be5f68a1a89214ca0a6 (diff)
downloadgsoc2013-evolution-905bc4ef20410f9649cd13f68a7ec1063e0e8b15.tar.gz
gsoc2013-evolution-905bc4ef20410f9649cd13f68a7ec1063e0e8b15.tar.zst
gsoc2013-evolution-905bc4ef20410f9649cd13f68a7ec1063e0e8b15.zip
Always make the Cancel button the last one.
* mail-mt.c (do_user_message): Always make the Cancel button the last one. svn path=/trunk/; revision=13207
Diffstat (limited to 'mail/mail-mt.c')
-rw-r--r--mail/mail-mt.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/mail/mail-mt.c b/mail/mail-mt.c
index 972a89787f..c9be99a772 100644
--- a/mail/mail-mt.c
+++ b/mail/mail-mt.c
@@ -653,18 +653,24 @@ static void
do_user_message (struct _mail_msg *mm)
{
struct _user_message_msg *m = (struct _user_message_msg *)mm;
+ int dialog_result;
GtkWidget *dialog;
dialog = gnome_message_box_new (m->prompt, m->type,
- m->allow_cancel ? GNOME_STOCK_BUTTON_CANCEL : GNOME_STOCK_BUTTON_OK,
- m->allow_cancel ? GNOME_STOCK_BUTTON_OK: NULL,
+ GNOME_STOCK_BUTTON_OK,
+ m->allow_cancel ? GNOME_STOCK_BUTTON_CANCEL : NULL,
NULL);
gnome_dialog_set_default (GNOME_DIALOG (dialog), 1);
gtk_window_set_policy (GTK_WINDOW (dialog), TRUE, TRUE, TRUE);
/* hrm, we can't run this async since the gui_port from which we're called
will reply to our message for us */
- m->result = gnome_dialog_run_and_close (GNOME_DIALOG (dialog)) != 0;
+ dialog_result = gnome_dialog_run_and_close (GNOME_DIALOG (dialog));
+
+ if (dialog_result == -1 || dialog_result == 1)
+ m->result = FALSE;
+ else
+ m->result = TRUE;
}
struct _mail_msg_op user_message_op = {