Mercurial > pidgin
comparison plugins/pluginpref_example.c @ 9841:1ae82c0c24ee
[gaim-migrate @ 10718]
"adds a masked string type to plugin prefs" from Gary Kramlich
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 23 Aug 2004 22:06:19 +0000 |
parents | 294ae6548d4e |
children | a9fb4493ae22 |
comparison
equal
deleted
inserted
replaced
9840:e8caffe42e38 | 9841:1ae82c0c24ee |
---|---|
78 "/plugins/core/pluginpref_example/string", | 78 "/plugins/core/pluginpref_example/string", |
79 "string pref"); | 79 "string pref"); |
80 gaim_plugin_pref_frame_add(frame, ppref); | 80 gaim_plugin_pref_frame_add(frame, ppref); |
81 | 81 |
82 ppref = gaim_plugin_pref_new_with_name_and_label( | 82 ppref = gaim_plugin_pref_new_with_name_and_label( |
83 "/plugins/core/pluginpref_example/masked_string", | |
84 "masked string"); | |
85 gaim_plugin_pref_set_masked(ppref, TRUE); | |
86 gaim_plugin_pref_frame_add(frame, ppref); | |
87 | |
88 ppref = gaim_plugin_pref_new_with_name_and_label( | |
83 "/plugins/core/pluginpref_example/max_string", | 89 "/plugins/core/pluginpref_example/max_string", |
84 "string pref\n(max length of 16)"); | 90 "string pref\n(max length of 16)"); |
85 gaim_plugin_pref_set_max_length(ppref, 16); | 91 gaim_plugin_pref_set_max_length(ppref, 16); |
86 gaim_plugin_pref_frame_add(frame, ppref); | 92 gaim_plugin_pref_frame_add(frame, ppref); |
87 | 93 |
142 gaim_prefs_add_int("/plugins/core/pluginpref_example/int_choice", 1); | 148 gaim_prefs_add_int("/plugins/core/pluginpref_example/int_choice", 1); |
143 gaim_prefs_add_string("/plugins/core/pluginpref_example/string", | 149 gaim_prefs_add_string("/plugins/core/pluginpref_example/string", |
144 "string"); | 150 "string"); |
145 gaim_prefs_add_string("/plugins/core/pluginpref_example/max_string", | 151 gaim_prefs_add_string("/plugins/core/pluginpref_example/max_string", |
146 "max length string"); | 152 "max length string"); |
153 gaim_prefs_add_string("/plugins/core/pluginpref_example/masked_string", "masked"); | |
147 gaim_prefs_add_string("/plugins/core/pluginpref_example/string_choice", "red"); | 154 gaim_prefs_add_string("/plugins/core/pluginpref_example/string_choice", "red"); |
148 } | 155 } |
149 | 156 |
150 GAIM_INIT_PLUGIN(ppexample, init_plugin, info) | 157 GAIM_INIT_PLUGIN(ppexample, init_plugin, info) |