Remove const qualifier in queues_get_displayed

The returned node was theoretically read-only however all the other
nodes accessible do not inherit the qualifier. Since none of the glib
functions use const with Glib, even the read-only ones. There's no use
in having it.

This resolves the warning about g_list_nth_data.
This commit is contained in:
Nikos Tsipinakis 2020-05-05 11:28:27 +02:00
parent fb2ffd425e
commit 289b4f50eb
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ void queues_init(void)
}
/* see queues.h */
const GList *queues_get_displayed(void)
GList *queues_get_displayed(void)
{
return g_queue_peek_head_link(displayed);
}

View File

@ -24,7 +24,7 @@ void queues_init(void);
*
* @return read only list of notifications
*/
const GList *queues_get_displayed(void);
GList *queues_get_displayed(void);
/**
* Get the highest notification in line