Remove functions unsupported in old glib versions

This commit is contained in:
mjentsch 2015-01-19 23:45:10 +01:00
parent 977947a357
commit 6ba649fdba
2 changed files with 3 additions and 3 deletions

View file

@ -544,8 +544,8 @@ PurpleConversation *chat_show (PurpleConnection *gc, int id) {
PurpleConversation *convo = purple_find_chat(gc, id);
if (! convo) {
gchar *name = g_strdup_printf ("%d", id);
if (! g_hash_table_contains (conn->joining_chats, name)) {
g_hash_table_insert(conn->joining_chats, name, 0);
if (! g_hash_table_lookup (conn->joining_chats, name)) {
g_hash_table_insert (conn->joining_chats, name, (void *)1);
tgl_do_get_chat_info (conn->TLS, TGL_MK_CHAT(id), 0, on_chat_get_info, NULL);
} else {
g_free(name);

View file

@ -104,7 +104,7 @@ connection_data *connection_data_init (struct tgl_state *TLS, PurpleConnection *
conn->pa = pa;
conn->new_messages = g_queue_new ();
conn->pending_reads = g_queue_new ();
conn->joining_chats = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free);
conn->joining_chats = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
return conn;
}