USe a message box to look nicer.

svn path=/trunk/; revision=11204
This commit is contained in:
Iain Holmes
2001-07-18 18:32:22 +00:00
parent 8a32e17fd0
commit 31f8acef96
2 changed files with 12 additions and 10 deletions

View File

@ -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

View File

@ -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));