pidgin: 07f445aa: g_hash_table_remove_all is glib 2.12+ on...
khc at pidgin.im
khc at pidgin.im
Sun Jul 13 16:00:57 EDT 2008
-----------------------------------------------------------------
Revision: 07f445aaf2e16428ef672f05dba19522cf96ad6e
Ancestor: 84393d2e9dc9f31e6951d2d89f7684f2a6f82d4d
Author: khc at pidgin.im
Date: 2008-07-13T19:55:55
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/07f445aaf2e16428ef672f05dba19522cf96ad6e
Modified files:
libpurple/protocols/msn/nexus.c
ChangeLog:
g_hash_table_remove_all is glib 2.12+ only
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/nexus.c b5b322014390eea8ecd47a7ee9124beee4726efc
+++ libpurple/protocols/msn/nexus.c 379b22d3fa2b985f84b761bced851e96e6445e50
@@ -267,7 +267,12 @@ nexus_parse_token(MsnNexus *nexus, int i
if (token_str == NULL)
return FALSE;
+#if GLIB_CHECK_VERSION(2, 12, 0)
g_hash_table_remove_all(nexus->tokens[id].token);
+#else
+ g_hash_table_foreach_remove(nexus->tokens[id].token,
+ (GHRFunc)g_hash_table_lookup, NULL);
+#endif
elems = g_strsplit(token_str, "&", 0);
More information about the Commits
mailing list