comparison libpurple/dbus-server.c @ 17425:3f11fad07eda

A patch from QuLogic to fix a bug with a zero timestamp for unidle notices in the system log. I've changed the patch to keep the current behavior for idle notices (i.e. to show the time when the buddy originally went idle). Fixes #1282
author Richard Laager <rlaager@wiktel.com>
date Sat, 02 Jun 2007 03:46:40 +0000
parents 3130a2cfe4e0
children 27ee01859e9a
comparison
equal deleted inserted replaced
17424:f9335f068ae8 17425:3f11fad07eda
106 g_hash_table_remove(map_id_node, GINT_TO_POINTER(id)); 106 g_hash_table_remove(map_id_node, GINT_TO_POINTER(id));
107 g_hash_table_remove(map_id_type, GINT_TO_POINTER(id)); 107 g_hash_table_remove(map_id_type, GINT_TO_POINTER(id));
108 } 108 }
109 109
110 gint 110 gint
111 purple_dbus_pointer_to_id(gpointer node) 111 purple_dbus_pointer_to_id(gconstpointer node)
112 { 112 {
113 gint id = GPOINTER_TO_INT(g_hash_table_lookup(map_node_id, node)); 113 gint id = GPOINTER_TO_INT(g_hash_table_lookup(map_node_id, node));
114 if ((id == 0) && (node != NULL)) 114 if ((id == 0) && (node != NULL))
115 { 115 {
116 purple_debug_warning("dbus", 116 purple_debug_warning("dbus",
136 else 136 else
137 return NULL; 137 return NULL;
138 } 138 }
139 139
140 gint 140 gint
141 purple_dbus_pointer_to_id_error(gpointer ptr, DBusError *error) 141 purple_dbus_pointer_to_id_error(gconstpointer ptr, DBusError *error)
142 { 142 {
143 gint id = purple_dbus_pointer_to_id(ptr); 143 gint id = purple_dbus_pointer_to_id(ptr);
144 144
145 if (ptr != NULL && id == 0) 145 if (ptr != NULL && id == 0)
146 dbus_set_error(error, "im.pidgin.purple.ObjectNotFound", 146 dbus_set_error(error, "im.pidgin.purple.ObjectNotFound",