aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-09-19 08:16:34 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-09-19 08:16:34 +0800
commitc3b248ff4bca0b226f1c33896a89243fdec89def (patch)
tree8f3c0377bd6ef8aafccfa673b2311a506b5ac5d1 /mail
parentb8fc17e8f9af33733e57aeeb5436bbd8c2c6076d (diff)
downloadgsoc2013-evolution-c3b248ff4bca0b226f1c33896a89243fdec89def.tar.gz
gsoc2013-evolution-c3b248ff4bca0b226f1c33896a89243fdec89def.tar.zst
gsoc2013-evolution-c3b248ff4bca0b226f1c33896a89243fdec89def.zip
Make the title translatable, and also use the account name when possible.
2001-09-18 Jeffrey Stedfast <fejj@ximian.com> * mail-mt.c (do_get_pass): Make the title translatable, and also use the account name when possible. Sorta fixes bug #6277. svn path=/trunk/; revision=12964
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-mt.c17
2 files changed, 20 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index e5fae8ac50..0b32158e67 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2001-09-18 Jeffrey Stedfast <fejj@ximian.com>
+
+ * mail-mt.c (do_get_pass): Make the title translatable, and also
+ use the account name when possible. Sorta fixes bug #6277.
+
2001-09-17 <NotZed@Ximian.com>
* mail-send-recv.c (get_receive_type): Function to get the real
diff --git a/mail/mail-mt.c b/mail/mail-mt.c
index 7ca2b3342c..634dd91eae 100644
--- a/mail/mail-mt.c
+++ b/mail/mail-mt.c
@@ -19,6 +19,7 @@
#include <libgnomeui/gnome-dialog.h>
#include <libgnomeui/gnome-stock.h>
#include <gal/widgets/e-gui-utils.h>
+#include <gal/widgets/e-unicode.h>
#include "folder-browser-factory.h"
#include "e-util/e-msgport.h"
@@ -430,11 +431,12 @@ static void
do_get_pass (struct _mail_msg *mm)
{
struct _pass_msg *m = (struct _pass_msg *)mm;
- const MailConfigAccount *mca;
+ const MailConfigAccount *mca = NULL;
GtkWidget *dialogue;
GtkWidget *check, *entry;
GList *children, *iter;
gboolean show;
+ char *title;
/* this api is just awful ... hence the hacks */
dialogue = gnome_request_dialog (m->secret, m->prompt, NULL,
@@ -494,7 +496,18 @@ do_get_pass (struct _mail_msg *mm)
/* hrm, we can't run this async since the gui_port from which we're called
will reply to our message for us */
- gtk_window_set_title (GTK_WINDOW(dialogue), "Enter Password");
+ if (mca) {
+ char *name;
+
+ name = e_utf8_to_gtk_string (GTK_WIDGET (dialogue), mca->name);
+ title = g_strdup_printf (_("Enter Password for %s"), name);
+ g_free (name);
+ } else
+ title = g_strdup (_("Enter Password"));
+
+ gtk_window_set_title (GTK_WINDOW (dialogue), title);
+ g_free (title);
+
gnome_dialog_run_and_close ((GnomeDialog *)dialogue);
/*gtk_widget_show(dialogue);*/