aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-session.c12
2 files changed, 10 insertions, 7 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 6862bcbaf8..3444dae643 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2002-09-30 Not Zed <NotZed@Ximian.com>
+
+ * mail-session.c (request_password): translate prompt from utf8 to
+ gtk widget. #31365.
+
2002-09-27 Jeffrey Stedfast <fejj@ximian.com>
* e-searching-tokenizer.c: #include <stdlib.h> for alloca
diff --git a/mail/mail-session.c b/mail/mail-session.c
index f0a672cabe..cb2e709a69 100644
--- a/mail/mail-session.c
+++ b/mail/mail-session.c
@@ -259,16 +259,14 @@ request_password(struct _pass_msg *m)
/* FIXME: Remove this total snot */
- /* this api is just awful ... hence the major hacks */
- password_dialogue = (GnomeDialog *)dialogue = gnome_request_dialog (m->secret, m->prompt, NULL, 0, pass_got, m, NULL);
-
- /* cant bleieve how @!@#!@# 5this api is, it doesn't handle this for you, BLAH! */
+ /* assume we can use any widget to translate string for display */
+ check_label = gtk_label_new ("");
+ title = e_utf8_to_gtk_string (GTK_WIDGET (check_label), m->prompt);
+ password_dialogue = (GnomeDialog *)dialogue = gnome_request_dialog (m->secret, title, NULL, 0, pass_got, m, NULL);
+ g_free(title);
password_destroy_id = gtk_signal_connect((GtkObject *)dialogue, "destroy", request_password_deleted, m);
- /* Remember the password? */
-
check = gtk_check_button_new ();
- check_label = gtk_label_new ("");
gtk_misc_set_alignment (GTK_MISC (check_label), 0.0, 0.5);
accel_key = gtk_label_parse_uline (GTK_LABEL (check_label),
m->service_url ? _("_Remember this password") :