aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-07-19 02:32:22 +0800
committerIain Holmes <iain@src.gnome.org>2001-07-19 02:32:22 +0800
commit31f8acef9677db5592169c45fac6e353bef072e5 (patch)
tree699ebc9f349685095f5499f1c7ed164db7e829c3 /composer
parent8a32e17fd04928de631bc45b78ba173f12fa8f1d (diff)
downloadgsoc2013-evolution-31f8acef9677db5592169c45fac6e353bef072e5.tar
gsoc2013-evolution-31f8acef9677db5592169c45fac6e353bef072e5.tar.gz
gsoc2013-evolution-31f8acef9677db5592169c45fac6e353bef072e5.tar.bz2
gsoc2013-evolution-31f8acef9677db5592169c45fac6e353bef072e5.tar.lz
gsoc2013-evolution-31f8acef9677db5592169c45fac6e353bef072e5.tar.xz
gsoc2013-evolution-31f8acef9677db5592169c45fac6e353bef072e5.tar.zst
gsoc2013-evolution-31f8acef9677db5592169c45fac6e353bef072e5.zip
USe a message box to look nicer.
svn path=/trunk/; revision=11204
Diffstat (limited to 'composer')
-rw-r--r--composer/ChangeLog4
-rw-r--r--composer/e-msg-composer.c18
2 files changed, 12 insertions, 10 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index 4a2cf3b2a4..0af11d69eb 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,7 @@
+2001-07-18 Iain Holmes <iain@ximian.com>
+
+ * e-msg-composer.c (do_exit): Use a messagebox.
+
2001-07-17 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (drag_data_received): Correctly handle
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 4ae4256881..5ba7a5c838 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -1311,19 +1311,17 @@ static void
do_exit (EMsgComposer *composer)
{
GtkWidget *dialog;
- GtkWidget *label;
gint button;
if (composer->has_changed) {
- dialog = gnome_dialog_new (_("Evolution"),
- GNOME_STOCK_BUTTON_YES, /* Save */
- GNOME_STOCK_BUTTON_NO, /* Don't save */
- GNOME_STOCK_BUTTON_CANCEL, /* Cancel */
- NULL);
-
- label = gtk_label_new (_("This message has not been sent.\n\nDo you wish to save your changes?"));
- gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (dialog)->vbox), label, TRUE, TRUE, 0);
- gtk_widget_show (label);
+ dialog = gnome_message_box_new (_("This message has not been sent.\n\nDo you wish to save your changes?"),
+ GNOME_MESSAGE_BOX_QUESTION,
+ GNOME_STOCK_BUTTON_YES, /* Save */
+ GNOME_STOCK_BUTTON_NO, /* Don't save */
+ GNOME_STOCK_BUTTON_CANCEL, /* Cancel */
+ NULL);
+
+ gtk_window_set_title (GTK_WINDOW (dialog), _("Evolution"));
gnome_dialog_set_parent (GNOME_DIALOG (dialog), GTK_WINDOW (composer));
gnome_dialog_set_default (GNOME_DIALOG (dialog), 0);
button = gnome_dialog_run_and_close (GNOME_DIALOG (dialog));