diff src/gtksound.c @ 10087:9fdbfe832fac

[gaim-migrate @ 11098] gaim_prefs_connect_callback() now takes a handle that can be used to disconnect the callbacks later on. The callback id's remain, so people can still use those if they want, although I'm not sure if there's any need for them any more. I also switched the order for initializing the prefs subsystem and statically compiled protocol plugins so that prpl prefs can work for statically compiled prpls. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Tue, 12 Oct 2004 00:49:19 +0000
parents 2e225cd35615
children 5dd9c1df6459
line wrap: on
line diff
--- a/src/gtksound.c	Sun Oct 10 16:47:56 2004 +0000
+++ b/src/gtksound.c	Tue Oct 12 00:49:19 2004 +0000
@@ -118,7 +118,7 @@
 	ao_initialize();
 #endif /* USE_AO */
 
-	gaim_prefs_connect_callback("/gaim/gtk/sound/method",
+	gaim_prefs_connect_callback(gaim_gtk_sound_get_handle(), "/gaim/gtk/sound/method",
 			_pref_sound_method_changed, NULL);
 }
 
@@ -405,3 +405,10 @@
 
 	return sounds[event].label;
 }
+
+void *gaim_gtk_sound_get_handle()
+{
+	static int handle;
+
+	return &handle;
+}