Commit 85ff88e4 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

tasklist: fix cast-function-type warnings

parent 261a8c21
...@@ -1689,6 +1689,13 @@ wnck_tasklist_size_allocate (GtkWidget *widget, ...@@ -1689,6 +1689,13 @@ wnck_tasklist_size_allocate (GtkWidget *widget,
allocation); allocation);
} }
static void
foreach_tasklist (WnckTasklist *tasklist,
gpointer user_data)
{
wnck_tasklist_update_lists (tasklist);
}
static void static void
wnck_tasklist_realize (GtkWidget *widget) wnck_tasklist_realize (GtkWidget *widget)
{ {
...@@ -1713,9 +1720,7 @@ wnck_tasklist_realize (GtkWidget *widget) ...@@ -1713,9 +1720,7 @@ wnck_tasklist_realize (GtkWidget *widget)
(* GTK_WIDGET_CLASS (wnck_tasklist_parent_class)->realize) (widget); (* GTK_WIDGET_CLASS (wnck_tasklist_parent_class)->realize) (widget);
tasklist_instances = g_slist_append (tasklist_instances, tasklist); tasklist_instances = g_slist_append (tasklist_instances, tasklist);
g_slist_foreach (tasklist_instances, g_slist_foreach (tasklist_instances, (GFunc) foreach_tasklist, NULL);
(GFunc) wnck_tasklist_update_lists,
NULL);
wnck_tasklist_update_lists (tasklist); wnck_tasklist_update_lists (tasklist);
...@@ -1740,9 +1745,7 @@ wnck_tasklist_unrealize (GtkWidget *widget) ...@@ -1740,9 +1745,7 @@ wnck_tasklist_unrealize (GtkWidget *widget)
(* GTK_WIDGET_CLASS (wnck_tasklist_parent_class)->unrealize) (widget); (* GTK_WIDGET_CLASS (wnck_tasklist_parent_class)->unrealize) (widget);
tasklist_instances = g_slist_remove (tasklist_instances, tasklist); tasklist_instances = g_slist_remove (tasklist_instances, tasklist);
g_slist_foreach (tasklist_instances, g_slist_foreach (tasklist_instances, (GFunc) foreach_tasklist, NULL);
(GFunc) wnck_tasklist_update_lists,
NULL);
} }
static void static 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