aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2003-01-15 06:50:36 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2003-01-15 06:50:36 +0800
commitc0e8918f76c684a96fcde2cfb59e54221b484782 (patch)
tree81072493f1db3a85fd56719dc9982fce3b45d4a6 /composer
parent8c18975c231c23e348fc687f085ac24c4cdf7354 (diff)
downloadgsoc2013-evolution-c0e8918f76c684a96fcde2cfb59e54221b484782.tar
gsoc2013-evolution-c0e8918f76c684a96fcde2cfb59e54221b484782.tar.gz
gsoc2013-evolution-c0e8918f76c684a96fcde2cfb59e54221b484782.tar.bz2
gsoc2013-evolution-c0e8918f76c684a96fcde2cfb59e54221b484782.tar.lz
gsoc2013-evolution-c0e8918f76c684a96fcde2cfb59e54221b484782.tar.xz
gsoc2013-evolution-c0e8918f76c684a96fcde2cfb59e54221b484782.tar.zst
gsoc2013-evolution-c0e8918f76c684a96fcde2cfb59e54221b484782.zip
(do_exit): Make dialog HIG compliant
[Discard/Cancel/Save]. svn path=/trunk/; revision=19471
Diffstat (limited to 'composer')
-rw-r--r--composer/ChangeLog5
-rw-r--r--composer/e-msg-composer.c12
2 files changed, 14 insertions, 3 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index 4dee7c0e54..2cb7b0f989 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,8 @@
+2003-01-14 Ettore Perazzoli <ettore@ximian.com>
+
+ * e-msg-composer.c (do_exit): Make dialog HIG compliant
+ [Discard/Cancel/Save].
+
2003-01-09 Chris Toshok <toshok@ximian.com>
* e-msg-composer-hdrs.c (e_msg_composer_hdrs_set_to): don't pass
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index a6546de188..ed41aa5a8c 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -1549,13 +1549,19 @@ do_exit (EMsgComposer *composer)
gdk_window_raise (GTK_WIDGET (composer)->window);
subject = e_msg_composer_hdrs_get_subject (E_MSG_COMPOSER_HDRS (composer->hdrs));
+
dialog = gtk_message_dialog_new(GTK_WINDOW(composer),
GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT,
- GTK_MESSAGE_ERROR, GTK_BUTTONS_YES_NO,
- _("The message \"%s\" has not been sent.\n\nDo you wish to save your changes?"),
+ GTK_MESSAGE_ERROR, GTK_BUTTONS_NONE,
+ _("The message \"%s\" has not been sent.\n\n"
+ "Do you wish to save your changes?"),
subject);
g_free(subject);
- gtk_dialog_add_button (GTK_DIALOG(dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
+ gtk_dialog_add_buttons (GTK_DIALOG(dialog),
+ _("_Discard Changes"), GTK_RESPONSE_NO,
+ GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+ GTK_STOCK_SAVE, GTK_RESPONSE_YES,
+ NULL);
gtk_window_set_title (GTK_WINDOW (dialog), _("Warning: Modified Message"));
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_YES);
button = gtk_dialog_run(GTK_DIALOG(dialog));