From d54c49a59b9f56f48ab8e04856fe7134c6b1787a Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Tue, 17 Jul 2001 16:58:41 +0000 Subject: Make a nicer delete account dialog svn path=/trunk/; revision=11161 --- mail/ChangeLog | 4 ++++ mail/mail-accounts.c | 13 +++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index a4228c8784..5e5704bd25 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,7 @@ +2001-07-17 Iain Holmes + + * mail-accounts.c (mail_delete): Make a nicer dialog. + 2001-07-17 Jeffrey Stedfast * mail-local.c (init_trash): Use CAMEL_VTRASH_NAME. diff --git a/mail/mail-accounts.c b/mail/mail-accounts.c index 31718f2948..0a61be44f7 100644 --- a/mail/mail-accounts.c +++ b/mail/mail-accounts.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include @@ -256,14 +257,14 @@ mail_delete (GtkButton *button, gpointer data) if (dialog->accounts_row < 0) return; - confirm = GNOME_DIALOG (gnome_dialog_new (_("Are you sure you want to delete this account?"), - GNOME_STOCK_BUTTON_YES, GNOME_STOCK_BUTTON_NO, NULL)); + confirm = GNOME_DIALOG (gnome_message_box_new (_("Are you sure you want to delete this account?"), + GNOME_MESSAGE_BOX_QUESTION, + NULL)); + gnome_dialog_append_button_with_pixmap (confirm, _("Delete"), GNOME_STOCK_BUTTON_YES); + gnome_dialog_append_button_with_pixmap (confirm, _("Don't delete"), GNOME_STOCK_BUTTON_NO); gtk_window_set_policy (GTK_WINDOW (confirm), TRUE, TRUE, TRUE); gtk_window_set_modal (GTK_WINDOW (confirm), TRUE); - label = gtk_label_new (_("Are you sure you want to delete this account?")); - gtk_label_set_line_wrap (GTK_LABEL (label), TRUE); - gtk_box_pack_start (GTK_BOX (confirm->vbox), label, TRUE, TRUE, 0); - gtk_widget_show (label); + gtk_window_set_title (GTK_WINDOW (confirm), _("Really delete account?")); gnome_dialog_set_parent (confirm, GTK_WINDOW (dialog)); ans = gnome_dialog_run_and_close (confirm); -- cgit v1.2.3