diff options
author | Not Zed <NotZed@Ximian.com> | 2002-09-30 12:33:12 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2002-09-30 12:33:12 +0800 |
commit | de6d72380316ca28b7f3b69fd1fdbab2bd6e0990 (patch) | |
tree | a0bf3af0d306d2666d16a9e0bf5da1d6f607f9e7 /mail | |
parent | bb3273ae2f2bc945cb8dbc5d77d16a12fa76d484 (diff) | |
download | gsoc2013-evolution-de6d72380316ca28b7f3b69fd1fdbab2bd6e0990.tar gsoc2013-evolution-de6d72380316ca28b7f3b69fd1fdbab2bd6e0990.tar.gz gsoc2013-evolution-de6d72380316ca28b7f3b69fd1fdbab2bd6e0990.tar.bz2 gsoc2013-evolution-de6d72380316ca28b7f3b69fd1fdbab2bd6e0990.tar.lz gsoc2013-evolution-de6d72380316ca28b7f3b69fd1fdbab2bd6e0990.tar.xz gsoc2013-evolution-de6d72380316ca28b7f3b69fd1fdbab2bd6e0990.tar.zst gsoc2013-evolution-de6d72380316ca28b7f3b69fd1fdbab2bd6e0990.zip |
translate prompt from utf8 to gtk widget. #31365.
2002-09-30 Not Zed <NotZed@Ximian.com>
* mail-session.c (request_password): translate prompt from utf8 to
gtk widget. #31365.
svn path=/trunk/; revision=18258
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/mail-session.c | 12 |
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") : |