aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-07-12 06:31:55 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-07-12 06:31:55 +0000
commit4e029c26ee4bca999bf39dda0b1b2d2bfe5101bc (patch)
treef6232c0f0fe543859787f92f1642b5cb54e3a41f /src
parent85969fb751e0da20008a66b8f81e8196131da4da (diff)
modified several alerts, and added accelerators for the buttons.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@421 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r--src/account.c3
-rw-r--r--src/addressbook.c10
-rw-r--r--src/compose.c2
-rw-r--r--src/summaryview.c2
-rw-r--r--src/textview.c6
5 files changed, 13 insertions, 10 deletions
diff --git a/src/account.c b/src/account.c
index bd1bf2f8..82348f8c 100644
--- a/src/account.c
+++ b/src/account.c
@@ -755,7 +755,8 @@ static void account_edit_create(void)
gtk_widget_show (vbox2);
gtk_box_pack_start (GTK_BOX (hbox), vbox2, FALSE, FALSE, 0);
- default_btn = gtk_button_new_with_label (_(" Set as default account "));
+ default_btn = gtk_button_new_with_mnemonic
+ (_(" _Set as default account "));
gtk_widget_show (default_btn);
gtk_box_pack_start (GTK_BOX (vbox2), default_btn, TRUE, FALSE, 0);
g_signal_connect (G_OBJECT(default_btn), "clicked",
diff --git a/src/addressbook.c b/src/addressbook.c
index 6b0964f6..6012bdb1 100644
--- a/src/addressbook.c
+++ b/src/addressbook.c
@@ -1660,11 +1660,11 @@ static void addressbook_treenode_delete_cb(gpointer data, guint action,
/* Confirm deletion */
if( obj->type == ADDR_ITEM_FOLDER ) {
- message = g_strdup_printf( _(
- "Do you want to delete the folder AND all addresses in `%s' ? \n" \
- "If deleting the folder only, addresses will be moved into parent folder." ),
- obj->name );
- aval = alertpanel( _("Delete"), message, _("Folder only"), _("Folder and Addresses"), GTK_STOCK_CANCEL );
+ message = g_strdup_printf
+ ( _( "Do you want to delete the folder AND all addresses in `%s' ?\n"
+ "If deleting the folder only, addresses will be moved into parent folder." ),
+ obj->name );
+ aval = alertpanel( _("Delete folder"), message, _("_Folder only"), _("Folder and _addresses"), GTK_STOCK_CANCEL );
g_free(message);
if( aval != G_ALERTDEFAULT && aval != G_ALERTALTERNATE ) return;
}
diff --git a/src/compose.c b/src/compose.c
index 7dd49543..9204c0ef 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -5791,7 +5791,7 @@ static void compose_template_activate_cb(GtkWidget *widget, gpointer data)
msg = g_strdup_printf(_("Do you want to apply the template `%s' ?"),
tmpl->name);
val = alertpanel(_("Apply template"), msg,
- _("Replace"), _("Insert"), GTK_STOCK_CANCEL);
+ _("_Replace"), _("_Insert"), GTK_STOCK_CANCEL);
g_free(msg);
if (val == G_ALERTDEFAULT)
diff --git a/src/summaryview.c b/src/summaryview.c
index a18e3e28..23c6e0ad 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -1144,7 +1144,7 @@ static void summary_select_next_flagged_or_folder(SummaryView *summaryview,
val = alertpanel(title, ask_msg,
GTK_STOCK_YES, GTK_STOCK_NO,
- _("Search again"));
+ _("_Search again"));
if (val == G_ALERTDEFAULT) {
folderview_select_next_unread(summaryview->folderview);
diff --git a/src/textview.c b/src/textview.c
index 7cf93bd4..2123f8ba 100644
--- a/src/textview.c
+++ b/src/textview.c
@@ -2066,10 +2066,12 @@ static gboolean textview_uri_security_check(TextView *textview, RemoteURI *uri)
msg = g_strdup_printf(_("The real URL (%s) is different from\n"
"the apparent URL (%s).\n"
+ "\n"
"Open it anyway?"),
uri->uri, visible_str);
- aval = alertpanel(_("Warning"), msg,
- GTK_STOCK_YES, GTK_STOCK_NO, NULL);
+ aval = alertpanel_full(_("Fake URL warning"), msg,
+ ALERT_WARNING, G_ALERTDEFAULT, FALSE,
+ GTK_STOCK_YES, GTK_STOCK_NO, NULL);
g_free(msg);
if (aval == G_ALERTDEFAULT)
retval = TRUE;