pidgin: 60b8637e: Clarify that Purple::Prefs::add_none() r...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Sat Jul 4 01:20:35 EDT 2009


-----------------------------------------------------------------
Revision: 60b8637e2af27d99451c148fe737ebf48ac8c901
Ancestor: c9200b58a3e76e0eb7e693c9262158bbad8a8afc
Author: darkrain42 at pidgin.im
Date: 2009-07-04T03:08:10
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/60b8637e2af27d99451c148fe737ebf48ac8c901

Modified files:
        doc/PERL-HOWTO.dox

ChangeLog: 

Clarify that Purple::Prefs::add_none() really is necessary

-------------- next part --------------
============================================================
--- doc/PERL-HOWTO.dox	c28c5f0c7ee602781c25b386f87916291e83f9ac
+++ doc/PERL-HOWTO.dox	4aae6da00d2c443aeaa554fcf19442815a75d44c
@@ -323,9 +323,10 @@ sub plugin_load {
 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);


More information about the Commits mailing list