changeset 27266:77dfed554b2b

Clarify that Purple::Prefs::add_none() really is necessary
author Paul Aurich <paul@darkrain42.org>
date Sat, 04 Jul 2009 03:08:10 +0000
parents 5afc3577b8cd
children cbd67b8bf3ca
files doc/PERL-HOWTO.dox
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/doc/PERL-HOWTO.dox	Fri Jul 03 05:27:32 2009 +0000
+++ b/doc/PERL-HOWTO.dox	Sat Jul 04 03:08:10 2009 +0000
@@ -323,9 +323,10 @@
 sub plugin_load {
 	my $plugin = shift;
 
+	# This is necessary to create each level in the preferences tree.
+	Purple::Prefs::add_none("/plugins/core/perl_test");
 	# Here we are adding a set of preferences
 	#  The second argument is the default value for the preference.
-	Purple::Prefs::add_none("/plugins/core/perl_test");
 	Purple::Prefs::add_bool("/plugins/core/perl_test/bool", 1);
 	Purple::Prefs::add_string("/plugins/core/perl_test/choice_str", "ch1");
 	Purple::Prefs::add_int("/plugins/core/perl_test/choice_int", 1);