comparison src/gtksound.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 68083504217c
children e25575a59f01
comparison
equal deleted inserted replaced
11032:31c1c48daba1 11033:50224ac8184d
161 161
162 static void 162 static void
163 gaim_gtk_sound_init(void) 163 gaim_gtk_sound_init(void)
164 { 164 {
165 void *gtk_sound_handle = gaim_gtk_sound_get_handle(); 165 void *gtk_sound_handle = gaim_gtk_sound_get_handle();
166
167 gaim_debug_register_category("sound");
166 168
167 gaim_signal_connect(gaim_connections_get_handle(), "signed-on", 169 gaim_signal_connect(gaim_connections_get_handle(), "signed-on",
168 gtk_sound_handle, GAIM_CALLBACK(account_signon_cb), 170 gtk_sound_handle, GAIM_CALLBACK(account_signon_cb),
169 NULL); 171 NULL);
170 172
212 { 214 {
213 #ifdef USE_AO 215 #ifdef USE_AO
214 ao_shutdown(); 216 ao_shutdown();
215 #endif 217 #endif
216 sound_initialized = FALSE; 218 sound_initialized = FALSE;
219
220 gaim_debug_unregister_category("sound");
217 } 221 }
218 222
219 #ifdef USE_NAS_AUDIO 223 #ifdef USE_NAS_AUDIO
220 static gboolean 224 static gboolean
221 play_file_nas(const char *filename) 225 play_file_nas(const char *filename)