Mercurial > pidgin-twitter
diff pidgin-twitter.c @ 130:30f3695bb969
made password invisible.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 21 Jul 2008 12:26:28 +0900 |
parents | 686498cc1e7a |
children | 9e80267fe566 |
line wrap: on
line diff
--- a/pidgin-twitter.c Mon Jul 21 12:06:56 2008 +0900 +++ b/pidgin-twitter.c Mon Jul 21 12:26:28 2008 +0900 @@ -2495,12 +2495,17 @@ g_signal_connect(e, "toggled", G_CALLBACK(bool_toggled_cb), &e); - purple_prefs_connect_callback(plugin, OPT_API_BASE_POST, // xxx devide? + purple_prefs_connect_callback(plugin, OPT_API_BASE_POST, // xxx divide? api_base_post_cb, NULL); e = GTK_WIDGET(gtk_builder_get_object (builder, "account_api_password")); g_object_set_data(G_OBJECT(e), "pref", OPT_PASSWORD_TWITTER); - text = purple_prefs_get_string(OPT_PASSWORD_TWITTER); //xxx should be masked + + gtk_entry_set_visibility(GTK_ENTRY(e), FALSE); + if (gtk_entry_get_invisible_char(GTK_ENTRY(e)) == '*') + gtk_entry_set_invisible_char(GTK_ENTRY(e), PIDGIN_INVISIBLE_CHAR); + + text = purple_prefs_get_string(OPT_PASSWORD_TWITTER); gtk_entry_set_text(GTK_ENTRY(e), text); g_signal_connect(e, "changed", G_CALLBACK(text_changed_cb), &e);