comparison gtk/gtkplugin.c @ 15295:7d6bd7a4994f

[gaim-migrate @ 18086] core-ify some code...and someone tell me why my gvim and svn aren't getting along and I have to type out this damn message on the command line committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Mon, 08 Jan 2007 04:26:16 +0000
parents d2409786013b
children
comparison
equal deleted inserted replaced
15294:e5c75076c6d1 15295:7d6bd7a4994f
88 } 88 }
89 89
90 void 90 void
91 gaim_gtk_plugins_save(void) 91 gaim_gtk_plugins_save(void)
92 { 92 {
93 GList *pl; 93 gaim_plugins_save_loaded("/gaim/gtk/plugins/loaded");
94 GList *files = NULL;
95 GaimPlugin *p;
96
97 for (pl = gaim_plugins_get_loaded(); pl != NULL; pl = pl->next) {
98 p = pl->data;
99
100 if (p->info->type != GAIM_PLUGIN_PROTOCOL &&
101 p->info->type != GAIM_PLUGIN_LOADER) {
102
103 files = g_list_append(files, p->path);
104 }
105 }
106
107 gaim_prefs_set_string_list("/gaim/gtk/plugins/loaded", files);
108 g_list_free(files);
109 } 94 }
110 95
111 static void 96 static void
112 update_plugin_list(void *data) 97 update_plugin_list(void *data)
113 { 98 {