libpurple/plugins/pluginpref_example.c

branch
soc.2013.gobjectification.plugins
changeset 37075
cf3f735b09b7
parent 36957
95cfd176b193
parent 35378
5d9e2581005b
child 39227
291b3c800668
equal deleted inserted replaced
37074:1e7b4b3741a0 37075:cf3f735b09b7
52 purple_plugin_pref_frame_add(frame, ppref); 52 purple_plugin_pref_frame_add(frame, ppref);
53 53
54 ppref = purple_plugin_pref_new_with_name_and_label( 54 ppref = purple_plugin_pref_new_with_name_and_label(
55 "/plugins/core/pluginpref_example/int_choice", 55 "/plugins/core/pluginpref_example/int_choice",
56 "integer choice"); 56 "integer choice");
57 purple_plugin_pref_set_type(ppref, PURPLE_PLUGIN_PREF_CHOICE); 57 purple_plugin_pref_set_pref_type(ppref, PURPLE_PLUGIN_PREF_CHOICE);
58 purple_plugin_pref_add_choice(ppref, "One", GINT_TO_POINTER(1)); 58 purple_plugin_pref_add_choice(ppref, "One", GINT_TO_POINTER(1));
59 purple_plugin_pref_add_choice(ppref, "Two", GINT_TO_POINTER(2)); 59 purple_plugin_pref_add_choice(ppref, "Two", GINT_TO_POINTER(2));
60 purple_plugin_pref_add_choice(ppref, "Four", GINT_TO_POINTER(4)); 60 purple_plugin_pref_add_choice(ppref, "Four", GINT_TO_POINTER(4));
61 purple_plugin_pref_add_choice(ppref, "Eight", GINT_TO_POINTER(8)); 61 purple_plugin_pref_add_choice(ppref, "Eight", GINT_TO_POINTER(8));
62 purple_plugin_pref_add_choice(ppref, "Sixteen", GINT_TO_POINTER(16)); 62 purple_plugin_pref_add_choice(ppref, "Sixteen", GINT_TO_POINTER(16));
86 purple_plugin_pref_frame_add(frame, ppref); 86 purple_plugin_pref_frame_add(frame, ppref);
87 87
88 ppref = purple_plugin_pref_new_with_name_and_label( 88 ppref = purple_plugin_pref_new_with_name_and_label(
89 "/plugins/core/pluginpref_example/string_choice", 89 "/plugins/core/pluginpref_example/string_choice",
90 "string choice"); 90 "string choice");
91 purple_plugin_pref_set_type(ppref, PURPLE_PLUGIN_PREF_CHOICE); 91 purple_plugin_pref_set_pref_type(ppref, PURPLE_PLUGIN_PREF_CHOICE);
92 purple_plugin_pref_add_choice(ppref, "red", "red"); 92 purple_plugin_pref_add_choice(ppref, "red", "red");
93 purple_plugin_pref_add_choice(ppref, "orange", "orange"); 93 purple_plugin_pref_add_choice(ppref, "orange", "orange");
94 purple_plugin_pref_add_choice(ppref, "yellow", "yellow"); 94 purple_plugin_pref_add_choice(ppref, "yellow", "yellow");
95 purple_plugin_pref_add_choice(ppref, "green", "green"); 95 purple_plugin_pref_add_choice(ppref, "green", "green");
96 purple_plugin_pref_add_choice(ppref, "blue", "blue"); 96 purple_plugin_pref_add_choice(ppref, "blue", "blue");

mercurial