comparison src/core.c @ 11033:50224ac8184d

[gaim-migrate @ 12919] Ok, this is debug window filtering. Sadrul was going to do this with a text entry, but I like this better, feel free to disagree with me. It's not the prettiest in a couple places, most notable gtkmain.c where a bunch of categories that don't currently have a home get registered. I added some plugin_(un)load functions to some plugins to place the (un)register functions. Though I didn't do that for the prpls. Comments and cleanups welcome. (Oh, I've been seeing some crashes on quit, but I haven't been able to get it to happen reliably so I'm not sure if it's my code or some transient HEAD oscar/other crash.) committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Tue, 28 Jun 2005 06:13:07 +0000
parents 72a5babfa8b4
children ebb02ea3c789
comparison
equal deleted inserted replaced
11032:31c1c48daba1 11033:50224ac8184d
74 74
75 /* The prefs subsystem needs to be initialized before static protocols 75 /* The prefs subsystem needs to be initialized before static protocols
76 * for protocol prefs to work. */ 76 * for protocol prefs to work. */
77 gaim_prefs_init(); 77 gaim_prefs_init();
78 78
79 gaim_debug_init();
80
81 if (ops != NULL)
82 {
83 if (ops->ui_prefs_init != NULL)
84 ops->ui_prefs_init();
85
86 if (ops->debug_ui_init != NULL)
87 ops->debug_ui_init();
88 }
89
90 gaim_debug_register_category("main");
91
79 /* Initialize all static protocols. */ 92 /* Initialize all static protocols. */
80 static_proto_init(); 93 static_proto_init();
81 94
82 /* Since plugins get probed so early we should probably initialize their 95 /* Since plugins get probed so early we should probably initialize their
83 * subsystem right away too. 96 * subsystem right away too.
84 */ 97 */
85 gaim_plugins_init(); 98 gaim_plugins_init();
86 gaim_plugins_probe(GAIM_PLUGIN_EXT); 99 gaim_plugins_probe(GAIM_PLUGIN_EXT);
87
88 if (ops != NULL)
89 {
90 if (ops->ui_prefs_init != NULL)
91 ops->ui_prefs_init();
92
93 if (ops->debug_ui_init != NULL)
94 ops->debug_ui_init();
95 }
96 100
97 gaim_status_init(); 101 gaim_status_init();
98 gaim_savedstatuses_init(); 102 gaim_savedstatuses_init();
99 gaim_accounts_init(); 103 gaim_accounts_init();
100 gaim_ciphers_init(); 104 gaim_ciphers_init();
101 gaim_connections_init(); 105 gaim_connections_init();
102 gaim_conversations_init(); 106 gaim_conversations_init();
103 gaim_debug_init();
104 gaim_blist_init(); 107 gaim_blist_init();
105 gaim_log_init(); 108 gaim_log_init();
106 gaim_buddy_icons_init(); 109 gaim_buddy_icons_init();
107 gaim_network_init(); 110 gaim_network_init();
108 gaim_privacy_init(); 111 gaim_privacy_init();
158 if (core->ui != NULL) { 161 if (core->ui != NULL) {
159 g_free(core->ui); 162 g_free(core->ui);
160 core->ui = NULL; 163 core->ui = NULL;
161 } 164 }
162 165
166 /* I think this is where this should go */
167 gaim_debug_unregister_category("main");
168
163 g_free(core); 169 g_free(core);
164 170
165 _core = NULL; 171 _core = NULL;
166 } 172 }
167 173