summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2009-08-14 11:20:12 +0200
committerAlexander Larsson <alexl@redhat.com>2009-08-14 11:20:12 +0200
commitf1f7df6443fa448ade41f58140469115bf956645 (patch)
tree9550ba34c1f136b93a5c11d2ebeb336dc196584e /gdk
parent341b8a47529ad5f1bddee19cb6e32fac6c7b8856 (diff)
downloadgtk+-f1f7df6443fa448ade41f58140469115bf956645.tar.gz
Fix type mismatch warnings
Cast g_list_foreach args to GFunc.
Diffstat (limited to 'gdk')
-rw-r--r--gdk/gdkwindow.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index e9c5512a21..ea7d27ddb3 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -1883,7 +1883,7 @@ _gdk_window_destroy_hierarchy (GdkWindow *window,
if (private->outstanding_moves)
{
- g_list_foreach (private->outstanding_moves, gdk_window_region_move_free, NULL);
+ g_list_foreach (private->outstanding_moves, (GFunc)gdk_window_region_move_free, NULL);
g_list_free (private->outstanding_moves);
private->outstanding_moves = NULL;
}
@@ -4758,7 +4758,7 @@ _gdk_window_process_updates_recurse (GdkWindow *window,
/* Make this reentrancy safe for expose handlers freeing windows */
children = g_list_copy (private->children);
- g_list_foreach (children, g_object_ref, NULL);
+ g_list_foreach (children, (GFunc)g_object_ref, NULL);
/* Iterate over children, starting at topmost */
for (l = children; l != NULL; l = l->next)
@@ -4803,7 +4803,7 @@ _gdk_window_process_updates_recurse (GdkWindow *window,
gdk_region_destroy (child_region);
}
- g_list_foreach (children, g_object_unref, NULL);
+ g_list_foreach (children, (GFunc)g_object_unref, NULL);
g_list_free (children);
if (!gdk_region_empty (expose_region))