im.pidgin.pidgin: 3ae1e4b3dac8092886b4b8ab961d8d505433b4c4
datallah at pidgin.im
datallah at pidgin.im
Sun Oct 14 16:40:44 EDT 2007
-----------------------------------------------------------------
Revision: 3ae1e4b3dac8092886b4b8ab961d8d505433b4c4
Ancestor: 29b2fc4762e2c5d03a7100c78f2a7b49237c5e80
Author: datallah at pidgin.im
Date: 2007-10-14T20:35:13
Branch: im.pidgin.pidgin
Modified files:
libpurple/plugins/log_reader.c
ChangeLog:
Set log_reader paths at plugin load time instead of init time. This should hopefully make any crashes more clearly attributable to this plugin (hopefully there are no outstanding crashes in the init code, but this is a safeguard).
-------------- next part --------------
============================================================
--- libpurple/plugins/log_reader.c 260cee0ddf63a47ede07ff21c402788faea1ab3f
+++ libpurple/plugins/log_reader.c 566800408491cf6e8ccb21b337b2272bd7758150
@@ -2423,14 +2423,16 @@ init_plugin(PurplePlugin *plugin)
static void
init_plugin(PurplePlugin *plugin)
{
+
+}
+
+static void log_reader_init_prefs() {
char *path;
#ifdef _WIN32
char *folder;
gboolean found = FALSE;
#endif
- g_return_if_fail(plugin != NULL);
-
purple_prefs_add_none("/plugins/core/log_reader");
@@ -2689,6 +2691,8 @@ plugin_load(PurplePlugin *plugin)
{
g_return_val_if_fail(plugin != NULL, FALSE);
+ log_reader_init_prefs();
+
/* The names of IM clients are marked for translation at the request of
translators who wanted to transliterate them. Many translators
choose to leave them alone. Choose what's best for your language. */
More information about the Commits
mailing list