comparison plugins/perl/common/PluginPref.xs @ 11170:0e9e2b923d09

[gaim-migrate @ 13271] Fixed some bugs and made some additions to the XSUBS. Added some of my test scripts which are incomplete, but mostly functional. GaimPluginPrefs and GaimGtkPluginPrefs--using evals to do the Gtk widgets with gtk2-perl--work. Plugin actions can now be added, but only one for now. committer: Tailor Script <tailor@pidgin.im>
author John H. Kelm <johnkelm@gmail.com>
date Fri, 29 Jul 2005 13:38:00 +0000
parents ece127d56c14
children b284c703d398
comparison
equal deleted inserted replaced
11169:778d5464a9b8 11170:0e9e2b923d09
125 void 125 void
126 gaim_plugin_pref_set_type(pref, type) 126 gaim_plugin_pref_set_type(pref, type)
127 Gaim::PluginPref pref 127 Gaim::PluginPref pref
128 Gaim::PluginPrefType type 128 Gaim::PluginPrefType type
129 CODE: 129 CODE:
130 gaim_plugin_pref_set_type(pref, type); 130 GaimPluginPrefType gpp_type = GAIM_PLUGIN_PREF_NONE;
131 131
132 if (type == 1) {
133 gpp_type = GAIM_PLUGIN_PREF_CHOICE;
134 } else if (type == 2) {
135 gpp_type = GAIM_PLUGIN_PREF_INFO;
136 }
137 gaim_plugin_pref_set_type(pref, gpp_type);
138