Mercurial > pidgin
comparison src/plugin.c @ 5949:90d0849abd3c
[gaim-migrate @ 6393]
Saved plugins are now stored in UI-specific keys, which are passed to
gaim_plugins_load_saved(). If you're using CVS (shame on you!) you'll need
to reload your plugins, and if you're careful enough, remove the old
plugins tree from prefs.xml (/core/plugins/loaded/...). I assume no
responsibility if you destroy prefs.xml, delete your harddrive, or sell
your soul to a goat.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Tue, 24 Jun 2003 03:50:31 +0000 |
| parents | a3e60ff95b7d |
| children | 53782414bc3a |
comparison
equal
deleted
inserted
replaced
| 5948:1bebb8345bde | 5949:90d0849abd3c |
|---|---|
| 530 | 530 |
| 531 #endif /* GAIM_PLUGINS */ | 531 #endif /* GAIM_PLUGINS */ |
| 532 } | 532 } |
| 533 | 533 |
| 534 void | 534 void |
| 535 gaim_plugins_load_saved(void) | 535 gaim_plugins_load_saved(const char *key) |
| 536 { | 536 { |
| 537 #ifdef GAIM_PLUGINS | 537 #ifdef GAIM_PLUGINS |
| 538 GList *f, *files = gaim_prefs_get_string_list("/plugins/loaded"); | 538 GList *f, *files; |
| 539 | 539 |
| 540 for(f = files; f; f = f->next) { | 540 g_return_if_fail(key != NULL); |
| 541 | |
| 542 files = gaim_prefs_get_string_list(key); | |
| 543 | |
| 544 for (f = files; f; f = f->next) { | |
| 541 gaim_plugin_load(gaim_plugin_probe(f->data)); | 545 gaim_plugin_load(gaim_plugin_probe(f->data)); |
| 542 g_free(f->data); | 546 g_free(f->data); |
| 543 } | 547 } |
| 544 | 548 |
| 545 g_list_free(files); | 549 g_list_free(files); |
