Commit 8d163872 authored by Tristan Matthews's avatar Tristan Matthews

gnome: fix compilation for older glib

parent 0568839b
......@@ -233,8 +233,16 @@ const gchar* account_list_get_current_id(void)
void account_list_remove(const gchar *accountID)
account_t *target = account_list_get_by_id(accountID);
if (target && !g_queue_remove(accountQueue, target))
if (target) {
#if GLIB_CHECK_VERSION(2, 30, 0)
if (!g_queue_remove(accountQueue, target))
ERROR("Could not remove account with ID %s", accountID);
g_queue_remove(accountQueue, target);
gchar * account_list_get_ordered_list(void)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment