aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog4
-rw-r--r--mail/mail-accounts.c13
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 <iain@ximian.com>
+
+ * mail-accounts.c (mail_delete): Make a nicer dialog.
+
2001-07-17 Jeffrey Stedfast <fejj@ximian.com>
* 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 <stdlib.h>
#include <string.h>
#include <libgnomeui/gnome-stock.h>
+#include <libgnomeui/gnome-messagebox.h>
#include <camel/camel-url.h>
#include <camel/camel-pgp-context.h>
@@ -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);