| 73 case PURPLE_PLUGIN_PREF_NONE: |
73 case PURPLE_PLUGIN_PREF_NONE: |
| 74 default: |
74 default: |
| 75 if (format == PURPLE_STRING_FORMAT_TYPE_NONE) |
75 if (format == PURPLE_STRING_FORMAT_TYPE_NONE) |
| 76 { |
76 { |
| 77 entry = gtk_entry_new(); |
77 entry = gtk_entry_new(); |
| 78 gtk_entry_set_text(GTK_ENTRY(entry), purple_prefs_get_string(pref_name)); |
78 gtk_editable_set_text(GTK_EDITABLE(entry), purple_prefs_get_string(pref_name)); |
| 79 gtk_entry_set_max_length(GTK_ENTRY(entry), |
79 gtk_entry_set_max_length(GTK_ENTRY(entry), |
| 80 purple_plugin_pref_get_max_length(pref)); |
80 purple_plugin_pref_get_max_length(pref)); |
| 81 if (purple_plugin_pref_get_masked(pref)) |
81 if (purple_plugin_pref_get_masked(pref)) |
| 82 { |
82 { |
| 83 gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE); |
83 gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE); |