diff 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
line wrap: on
line diff
--- a/plugins/perl/common/PluginPref.xs	Fri Jul 29 05:05:52 2005 +0000
+++ b/plugins/perl/common/PluginPref.xs	Fri Jul 29 13:38:00 2005 +0000
@@ -127,5 +127,12 @@
 	Gaim::PluginPref pref
 	Gaim::PluginPrefType type
 CODE:
-	gaim_plugin_pref_set_type(pref, type);
+	GaimPluginPrefType gpp_type = GAIM_PLUGIN_PREF_NONE;
 
+	if (type == 1) {
+		gpp_type = GAIM_PLUGIN_PREF_CHOICE;
+	} else if (type == 2) {
+		gpp_type = GAIM_PLUGIN_PREF_INFO;
+	}
+	gaim_plugin_pref_set_type(pref, gpp_type);
+