Use a direct hash rather than an int hash
This commit is contained in:
parent
62c4728327
commit
c712f972cb
|
@ -1,3 +1,6 @@
|
||||||
|
Sun Jul 4 22:54:44 GMT 2004 Mike Hearn <mike@navi.cx>
|
||||||
|
* libnotify/notify.c: Use a direct hash rather than an int hash
|
||||||
|
|
||||||
Sun Jul 04 14:32:46 PDT 2004 Christian Hammond <chipx86@gnupdate.org>
|
Sun Jul 04 14:32:46 PDT 2004 Christian Hammond <chipx86@gnupdate.org>
|
||||||
|
|
||||||
* libnotify/notify.c:
|
* libnotify/notify.c:
|
||||||
|
|
|
@ -101,7 +101,7 @@ _notify_handle_new(guint32 id)
|
||||||
|
|
||||||
handle->id = id;
|
handle->id = id;
|
||||||
|
|
||||||
g_hash_table_insert(_handles, GINT_TO_POINTER(id), handle);
|
g_hash_table_insert(_handles, id, handle);
|
||||||
|
|
||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
|
@ -353,7 +353,7 @@ notify_init(const char *app_name)
|
||||||
|
|
||||||
_app_name = g_strdup(app_name);
|
_app_name = g_strdup(app_name);
|
||||||
|
|
||||||
_handles = g_hash_table_new_full(g_int_hash, g_int_equal,
|
_handles = g_hash_table_new_full(g_direct_hash, g_int_equal,
|
||||||
NULL, (GFreeFunc)_notify_handle_destroy);
|
NULL, (GFreeFunc)_notify_handle_destroy);
|
||||||
|
|
||||||
#ifdef HAVE_ATEXIT
|
#ifdef HAVE_ATEXIT
|
||||||
|
|
Loading…
Reference in New Issue