[gtk+/client-side-windows: 120/284] Update gdk_window_quartz_reparent
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-windows: 120/284] Update gdk_window_quartz_reparent
- Date: Thu, 2 Apr 2009 14:09:49 -0400 (EDT)
commit f5806eac0ca963347a8f0b9b2d04bef78dc32e19
Author: Richard Hult <richard imendio com>
Date: Mon Jan 5 19:32:52 2009 +0100
Update gdk_window_quartz_reparent
---
gdk/quartz/gdkwindow-quartz.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
index 76cf7ed..10d2006 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c
@@ -1435,6 +1435,9 @@ gdk_window_quartz_move_resize (GdkWindow *window,
}
}
+/* FIXME: This might need fixing (reparenting didn't work before client-side
+ * windows either).
+ */
static gboolean
gdk_window_quartz_reparent (GdkWindow *window,
GdkWindow *new_parent,
@@ -1445,7 +1448,7 @@ gdk_window_quartz_reparent (GdkWindow *window,
GdkWindowImplQuartz *impl, *old_parent_impl, *new_parent_impl;
NSView *view, *new_parent_view;
- if (!new_parent || new_parent == _gdk_root)
+ if (new_parent == _gdk_root)
{
/* Could be added, just needs implementing. */
g_warning ("Reparenting to root window is not supported yet in the Mac OS X backend");
@@ -1470,20 +1473,16 @@ gdk_window_quartz_reparent (GdkWindow *window,
[view release];
- private->x = x;
- private->y = y;
- private->parent = (GdkWindowObject *)new_parent;
+ private->parent = new_parent_private;
if (old_parent_private)
{
- old_parent_private->children = g_list_remove (old_parent_private->children, window);
old_parent_impl->sorted_children = g_list_remove (old_parent_impl->sorted_children, window);
}
- new_parent_private->children = g_list_prepend (new_parent_private->children, window);
new_parent_impl->sorted_children = g_list_prepend (new_parent_impl->sorted_children, window);
- return TRUE;
+ return FALSE;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]