aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-07-18 00:58:41 +0800
committerIain Holmes <iain@src.gnome.org>2001-07-18 00:58:41 +0800
commitd54c49a59b9f56f48ab8e04856fe7134c6b1787a (patch)
tree66c782ad0089d23c6b39d84b527d076b653ee01f
parent4ec3a0fe0cfd570465fdacefe7754571bf9f2dc7 (diff)
downloadgsoc2013-evolution-d54c49a59b9f56f48ab8e04856fe7134c6b1787a.tar.gz
gsoc2013-evolution-d54c49a59b9f56f48ab8e04856fe7134c6b1787a.tar.zst
gsoc2013-evolution-d54c49a59b9f56f48ab8e04856fe7134c6b1787a.zip
Make a nicer delete account dialog
svn path=/trunk/; revision=11161
-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);