comparison src/prefs.h @ 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 af06746954de
children b6ca0e1b19d0
comparison
equal deleted inserted replaced
10086:6cd2b467e303 10087:9fdbfe832fac
223 GList *gaim_prefs_get_string_list(const char *name); 223 GList *gaim_prefs_get_string_list(const char *name);
224 224
225 /** 225 /**
226 * Add a callback to a pref (and its children) 226 * Add a callback to a pref (and its children)
227 */ 227 */
228 guint gaim_prefs_connect_callback(const char *name, GaimPrefCallback cb, 228 guint gaim_prefs_connect_callback(void *handle, const char *name, GaimPrefCallback cb,
229 gpointer data); 229 gpointer data);
230 230
231 /** 231 /**
232 * Remove a callback to a pref 232 * Remove a callback to a pref
233 */ 233 */
234 void gaim_prefs_disconnect_callback(guint callback_id); 234 void gaim_prefs_disconnect_callback(guint callback_id);
235
236 /**
237 * Remove all pref callbacks by handle
238 */
239 void gaim_prefs_disconnect_by_handle(void *handle);
235 240
236 /** 241 /**
237 * Trigger callbacks as if the pref changed 242 * Trigger callbacks as if the pref changed
238 */ 243 */
239 void gaim_prefs_trigger_callback(const char *name); 244 void gaim_prefs_trigger_callback(const char *name);