Skip to content
Snippets Groups Projects
Commit 8d163872 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

gnome: fix compilation for older glib

parent 0568839b
No related branches found
No related tags found
No related merge requests found
......@@ -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))
ERROR("Could not remove account with ID %s", accountID);
if (target) {
#if GLIB_CHECK_VERSION(2, 30, 0)
if (!g_queue_remove(accountQueue, target))
ERROR("Could not remove account with ID %s", accountID);
#else
else
g_queue_remove(accountQueue, target);
#endif
}
}
gchar * account_list_get_ordered_list(void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment