Revision: 18185
http://svn.sourceforge.net/gaim/?rev=18185&view=rev
Author: sadrul
Date: 2007-02-08 23:28:34 -0800 (Thu, 08 Feb 2007)
Log Message:
-----------
Add a note about saving/loading plugins.
Please feel free to add/modify any notes you think would make it better.
Modified Paths:
--------------
trunk/libgaim/example/defines.h
trunk/libgaim/example/nullclient.c
Modified: trunk/libgaim/example/defines.h
===================================================================
--- trunk/libgaim/example/defines.h 2007-02-09 02:05:14 UTC (rev 18184)
+++ trunk/libgaim/example/defines.h 2007-02-09 07:28:34 UTC (rev 18185)
@@ -1,3 +1,4 @@
#define CUSTOM_USER_DIRECTORY "/dev/null"
#define CUSTOM_PLUGIN_PATH ""
+#define PLUGIN_SAVE_PREF "/gaim/nullclient/plugins/saved"
#define UI_ID "nullclient"
Modified: trunk/libgaim/example/nullclient.c
===================================================================
--- trunk/libgaim/example/nullclient.c 2007-02-09 02:05:14 UTC (rev 18184)
+++ trunk/libgaim/example/nullclient.c 2007-02-09 07:28:34 UTC (rev 18185)
@@ -174,10 +174,9 @@
/* Load the preferences. */
gaim_prefs_load();
-#if 0
- /* Load the desired plugins. */
- gaim_plugins_load_saved("/");
-#endif
+ /* Load the desired plugins. The client should save the list of loaded plugins in
+ * the preferences using gaim_plugins_save_loaded(PLUGIN_SAVE_PREF) */
+ gaim_plugins_load_saved(PLUGIN_SAVE_PREF);
/* Load the pounces. */
gaim_pounces_load();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|