# HG changeset patch # User Yoshiki Yazawa # Date 1216610788 -32400 # Node ID 30f3695bb96960b88edcf2e59ce2a2944e14a55a # Parent 686498cc1e7a183120ac40aabf77e3c28d576172 made password invisible. diff -r 686498cc1e7a -r 30f3695bb969 pidgin-twitter.c --- 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);