Mercurial > pidgin.yaz
comparison src/dbus-server.c @ 13759:a849cf259d00
[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 <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 10 May 2006 02:35:09 +0000 |
parents | ac5bc9a7b603 |
children | ec858948d292 |
comparison
equal
deleted
inserted
replaced
13758:ff94569010f5 | 13759:a849cf259d00 |
---|---|
94 g_hash_table_remove(map_id_type, GINT_TO_POINTER(id)); | 94 g_hash_table_remove(map_id_type, GINT_TO_POINTER(id)); |
95 } | 95 } |
96 | 96 |
97 gint gaim_dbus_pointer_to_id(gpointer node) { | 97 gint gaim_dbus_pointer_to_id(gpointer node) { |
98 gint id = GPOINTER_TO_INT(g_hash_table_lookup(map_node_id, node)); | 98 gint id = GPOINTER_TO_INT(g_hash_table_lookup(map_node_id, node)); |
99 g_return_val_if_fail(id || node == NULL, 0); | 99 if ((id == 0) && (node != NULL)) |
100 { | |
101 gaim_debug_warning("dbus", | |
102 "Need to register an object with the dbus subsystem.\n"); | |
103 g_return_if_reached(); | |
104 } | |
100 return id; | 105 return id; |
101 } | 106 } |
102 | 107 |
103 gpointer gaim_dbus_id_to_pointer(gint id, GaimDBusType *type) { | 108 gpointer gaim_dbus_id_to_pointer(gint id, GaimDBusType *type) { |
104 GaimDBusType *objtype = | 109 GaimDBusType *objtype = |