# HG changeset patch # User Mark Doliner # Date 1147228509 0 # Node ID a849cf259d00b9347e11e3720aa98d6b5a8181c7 # Parent ff94569010f56e29eac0f6df886c9574da256cbb [gaim-migrate @ 16170] Hopefully provide a better message in the future when dbus doesn't know about an object that you're trying to pass to signal functions and stuff committer: Tailor Script diff -r ff94569010f5 -r a849cf259d00 src/dbus-server.c --- a/src/dbus-server.c Wed May 10 02:27:09 2006 +0000 +++ b/src/dbus-server.c Wed May 10 02:35:09 2006 +0000 @@ -96,7 +96,12 @@ gint gaim_dbus_pointer_to_id(gpointer node) { gint id = GPOINTER_TO_INT(g_hash_table_lookup(map_node_id, node)); - g_return_val_if_fail(id || node == NULL, 0); + if ((id == 0) && (node != NULL)) + { + gaim_debug_warning("dbus", + "Need to register an object with the dbus subsystem.\n"); + g_return_if_reached(); + } return id; }