From: <the...@us...> - 2006-05-10 02:35:26
|
Revision: 16170 Author: thekingant Date: 2006-05-09 19:35:09 -0700 (Tue, 09 May 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16170&view=rev Log Message: ----------- 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 Modified Paths: -------------- trunk/src/dbus-server.c Modified: trunk/src/dbus-server.c =================================================================== --- trunk/src/dbus-server.c 2006-05-10 02:27:09 UTC (rev 16169) +++ trunk/src/dbus-server.c 2006-05-10 02:35:09 UTC (rev 16170) @@ -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; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |