summaryrefslogtreecommitdiff
path: root/libpurple/plugins/pluginpref_example.c
diff options
context:
space:
mode:
authorSean Egan <seanegan@pidgin.im>2007-04-25 23:55:56 +0000
committerSean Egan <seanegan@pidgin.im>2007-04-25 23:55:56 +0000
commit4b80d4b0faa34b03c0c5eb6306d84756fe9cde0b (patch)
tree55f007c65988f075f9e3934f7fa1b3dbe2cb5713 /libpurple/plugins/pluginpref_example.c
parent22516891e3dd1eb99315167f526d3f8c6cf1bcff (diff)
downloadpidgin-4b80d4b0faa34b03c0c5eb6306d84756fe9cde0b.tar.gz
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Diffstat (limited to 'libpurple/plugins/pluginpref_example.c')
-rw-r--r--libpurple/plugins/pluginpref_example.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/libpurple/plugins/pluginpref_example.c b/libpurple/plugins/pluginpref_example.c
index 319218a380..57360dbdea 100644
--- a/libpurple/plugins/pluginpref_example.c
+++ b/libpurple/plugins/pluginpref_example.c
@@ -45,7 +45,7 @@ get_plugin_pref_frame(PurplePlugin *plugin) {
purple_plugin_pref_frame_add(frame, ppref);
ppref = purple_plugin_pref_new_with_name_and_label(
- "/plugins/core/pluginpref_example/bool",
+ "/plugins/purple/pluginpref_example/bool",
"boolean pref");
purple_plugin_pref_frame_add(frame, ppref);
@@ -53,13 +53,13 @@ get_plugin_pref_frame(PurplePlugin *plugin) {
purple_plugin_pref_frame_add(frame, ppref);
ppref = purple_plugin_pref_new_with_name_and_label(
- "/plugins/core/pluginpref_example/int",
+ "/plugins/purple/pluginpref_example/int",
"integer pref");
purple_plugin_pref_set_bounds(ppref, 0, 255);
purple_plugin_pref_frame_add(frame, ppref);
ppref = purple_plugin_pref_new_with_name_and_label(
- "/plugins/core/pluginpref_example/int_choice",
+ "/plugins/purple/pluginpref_example/int_choice",
"integer choice");
purple_plugin_pref_set_type(ppref, PURPLE_PLUGIN_PREF_CHOICE);
purple_plugin_pref_add_choice(ppref, "One", GINT_TO_POINTER(1));
@@ -76,24 +76,24 @@ get_plugin_pref_frame(PurplePlugin *plugin) {
purple_plugin_pref_frame_add(frame, ppref);
ppref = purple_plugin_pref_new_with_name_and_label(
- "/plugins/core/pluginpref_example/string",
+ "/plugins/purple/pluginpref_example/string",
"string pref");
purple_plugin_pref_frame_add(frame, ppref);
ppref = purple_plugin_pref_new_with_name_and_label(
- "/plugins/core/pluginpref_example/masked_string",
+ "/plugins/purple/pluginpref_example/masked_string",
"masked string");
purple_plugin_pref_set_masked(ppref, TRUE);
purple_plugin_pref_frame_add(frame, ppref);
ppref = purple_plugin_pref_new_with_name_and_label(
- "/plugins/core/pluginpref_example/max_string",
+ "/plugins/purple/pluginpref_example/max_string",
"string pref\n(max length of 16)");
purple_plugin_pref_set_max_length(ppref, 16);
purple_plugin_pref_frame_add(frame, ppref);
ppref = purple_plugin_pref_new_with_name_and_label(
- "/plugins/core/pluginpref_example/string_choice",
+ "/plugins/purple/pluginpref_example/string_choice",
"string choice");
purple_plugin_pref_set_type(ppref, PURPLE_PLUGIN_PREF_CHOICE);
purple_plugin_pref_add_choice(ppref, "red", "red");
@@ -147,16 +147,16 @@ static PurplePluginInfo info =
static void
init_plugin(PurplePlugin *plugin)
{
- purple_prefs_add_none("/plugins/core/pluginpref_example");
- purple_prefs_add_bool("/plugins/core/pluginpref_example/bool", TRUE);
- purple_prefs_add_int("/plugins/core/pluginpref_example/int", 0);
- purple_prefs_add_int("/plugins/core/pluginpref_example/int_choice", 1);
- purple_prefs_add_string("/plugins/core/pluginpref_example/string",
+ purple_prefs_add_none("/plugins/purple/pluginpref_example");
+ purple_prefs_add_bool("/plugins/purple/pluginpref_example/bool", TRUE);
+ purple_prefs_add_int("/plugins/purple/pluginpref_example/int", 0);
+ purple_prefs_add_int("/plugins/purple/pluginpref_example/int_choice", 1);
+ purple_prefs_add_string("/plugins/purple/pluginpref_example/string",
"string");
- purple_prefs_add_string("/plugins/core/pluginpref_example/max_string",
+ purple_prefs_add_string("/plugins/purple/pluginpref_example/max_string",
"max length string");
- purple_prefs_add_string("/plugins/core/pluginpref_example/masked_string", "masked");
- purple_prefs_add_string("/plugins/core/pluginpref_example/string_choice", "red");
+ purple_prefs_add_string("/plugins/purple/pluginpref_example/masked_string", "masked");
+ purple_prefs_add_string("/plugins/purple/pluginpref_example/string_choice", "red");
}
PURPLE_INIT_PLUGIN(ppexample, init_plugin, info)