comparison console/gntplugin.c @ 15296: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 3d87d9b7491c
children
comparison
equal deleted inserted replaced
15295:e5c75076c6d1 15296:7d6bd7a4994f
86 86
87 /* Xerox */ 87 /* Xerox */
88 void 88 void
89 gg_plugins_save_loaded(void) 89 gg_plugins_save_loaded(void)
90 { 90 {
91 GList *pl; 91 gaim_plugins_save_loaded("/gaim/gnt/plugins/loaded");
92 GList *files = NULL;
93 GaimPlugin *p;
94
95 for (pl = gaim_plugins_get_loaded(); pl != NULL; pl = pl->next) {
96 p = pl->data;
97
98 if (p->info->type != GAIM_PLUGIN_PROTOCOL &&
99 p->info->type != GAIM_PLUGIN_LOADER) {
100
101 files = g_list_append(files, p->path);
102 }
103 }
104
105 gaim_prefs_set_string_list("/gaim/gnt/plugins/loaded", files);
106 g_list_free(files);
107 } 92 }
108 93
109 static void 94 static void
110 selection_changed(GntWidget *widget, gpointer old, gpointer current, gpointer null) 95 selection_changed(GntWidget *widget, gpointer old, gpointer current, gpointer null)
111 { 96 {