Mercurial > pidgin.yaz
comparison src/signals.c @ 13956:f61428cc4019
[gaim-migrate @ 16505]
Change the music messaging plugin to not try to load if our D-BUS stuff
is not initialized. Also extracted the gaim_notify_error() message code
to a #define in src/dbus-server.c
And print a debug warning if something tries to register a callback for
a signal using a handle that we don't have any registered signals for
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 17 Jul 2006 06:21:53 +0000 |
parents | b00a592651b6 |
children | f94309c7c480 |
comparison
equal
deleted
inserted
replaced
13955:2d6f7ac4b6f2 | 13956:f61428cc4019 |
---|---|
265 | 265 |
266 /* Get the instance data */ | 266 /* Get the instance data */ |
267 instance_data = | 267 instance_data = |
268 (GaimInstanceData *)g_hash_table_lookup(instance_table, instance); | 268 (GaimInstanceData *)g_hash_table_lookup(instance_table, instance); |
269 | 269 |
270 g_return_val_if_fail(instance_data != NULL, 0); | 270 if (instance_data == NULL) |
271 { | |
272 gaim_debug_warning("signals", "Something tried to register a callback " | |
273 "for the '%s' signal, but we do not have any signals " | |
274 "registered with the given handle\n", signal); | |
275 g_return_val_if_reached(0); | |
276 } | |
271 | 277 |
272 /* Get the signal data */ | 278 /* Get the signal data */ |
273 signal_data = | 279 signal_data = |
274 (GaimSignalData *)g_hash_table_lookup(instance_data->signals, signal); | 280 (GaimSignalData *)g_hash_table_lookup(instance_data->signals, signal); |
275 | 281 |