[gtk+] Fix type mismatch warnings
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Fix type mismatch warnings
- Date: Fri, 14 Aug 2009 10:32:36 +0000 (UTC)
commit f1f7df6443fa448ade41f58140469115bf956645
Author: Alexander Larsson <alexl redhat com>
Date: Fri Aug 14 11:20:12 2009 +0200
Fix type mismatch warnings
Cast g_list_foreach args to GFunc.
gdk/gdkwindow.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index e9c5512..ea7d27d 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))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]