libpurple/plugins/pluginpref_example.c

branch
soc.2013.gobjectification.plugins
changeset 37075
cf3f735b09b7
parent 36957
95cfd176b193
parent 35378
5d9e2581005b
child 39227
291b3c800668
--- a/libpurple/plugins/pluginpref_example.c	Thu Feb 06 16:53:42 2014 +0530
+++ b/libpurple/plugins/pluginpref_example.c	Thu Feb 06 20:02:57 2014 +0530
@@ -54,7 +54,7 @@
 	ppref = purple_plugin_pref_new_with_name_and_label(
 									"/plugins/core/pluginpref_example/int_choice",
 									"integer choice");
-	purple_plugin_pref_set_type(ppref, PURPLE_PLUGIN_PREF_CHOICE);
+	purple_plugin_pref_set_pref_type(ppref, PURPLE_PLUGIN_PREF_CHOICE);
 	purple_plugin_pref_add_choice(ppref, "One", GINT_TO_POINTER(1));
 	purple_plugin_pref_add_choice(ppref, "Two", GINT_TO_POINTER(2));
 	purple_plugin_pref_add_choice(ppref, "Four", GINT_TO_POINTER(4));
@@ -88,7 +88,7 @@
 	ppref = purple_plugin_pref_new_with_name_and_label(
 							"/plugins/core/pluginpref_example/string_choice",
 							"string choice");
-	purple_plugin_pref_set_type(ppref, PURPLE_PLUGIN_PREF_CHOICE);
+	purple_plugin_pref_set_pref_type(ppref, PURPLE_PLUGIN_PREF_CHOICE);
 	purple_plugin_pref_add_choice(ppref, "red", "red");
 	purple_plugin_pref_add_choice(ppref, "orange", "orange");
 	purple_plugin_pref_add_choice(ppref, "yellow", "yellow");

mercurial