diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-02-05 07:29:59 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-02-05 07:29:59 +0000 |
commit | 6ab1d3cf538aa7f6c5385f7010e9a2d7e71b8dc0 (patch) | |
tree | f2b60f9d15f5f236100da57fbdc79da80aa7db99 /src/setup.c | |
parent | e3dcee39218e26a6b0ce29865f0cb6f0d36c0a04 (diff) |
setup: confirm on cancel. Modified messages.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2460 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/setup.c')
-rw-r--r-- | src/setup.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/setup.c b/src/setup.c index 1652799c..f4c5bca0 100644 --- a/src/setup.c +++ b/src/setup.c @@ -449,9 +449,15 @@ static void setup_account_response_cb(GtkDialog *dialog, gint response_id, if (response_id == GTK_RESPONSE_CANCEL || response_id == GTK_RESPONSE_DELETE_EVENT) { - setupac.finished = TRUE; - if (page != SETUP_PAGE_FINISH) - setupac.cancelled = TRUE; + if (page == SETUP_PAGE_FINISH) { + setupac.finished = TRUE; + } else { + if (alertpanel(_("Cancel"), _("Cancel mail account setup?"), GTK_STOCK_YES, GTK_STOCK_NO, NULL) == G_ALERTDEFAULT) { + setupac.finished = TRUE; + setupac.cancelled = TRUE; + } + return; + } } else if (response_id == GTK_RESPONSE_ACCEPT) { if (prev_page == SETUP_PAGE_ADDRESS) { if (entry_is_valid(setupac.addr_entry)) { @@ -750,7 +756,7 @@ PrefsAccount *setup_account(void) g_signal_connect(setupac.addr_entry, "changed", G_CALLBACK(entry_changed), NULL); - label = gtk_label_new(_("This name will be seen at the side of recipients.")); + label = gtk_label_new(_("This name will be seen at the side of recipients (e.g. John Doe)")); gtk_table_attach(GTK_TABLE(table), label, 1, 2, 1, 2, GTK_FILL, GTK_FILL, 0, 0); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); |