Commit 9bda0532 authored by Alexander Larsson's avatar Alexander Larsson

gdk: Finish conversion to in-struct GdkWindow list nodes

parent d29c4881
......@@ -195,7 +195,7 @@ gdk_offscreen_window_reparent (GdkWindow *window,
gdk_window_hide (window);
if (window->parent)
window->parent->children = g_list_remove (window->parent->children, window);
window->parent->children = g_list_remove_link (window->parent->children, &window->children_list_node);
old_parent = window->parent;
window->parent = new_parent;
......@@ -203,7 +203,7 @@ gdk_offscreen_window_reparent (GdkWindow *window,
window->y = y;
if (new_parent)
window->parent->children = g_list_prepend (window->parent->children, window);
window->parent->children = g_list_concat (&window->children_list_node, window->parent->children);
_gdk_synthesize_crossing_events_for_geometry_change (window);
if (old_parent)
......
......@@ -760,7 +760,7 @@ gdk_win32_window_foreign_new_for_display (GdkDisplay *display,
if (!window->parent || GDK_WINDOW_TYPE (window->parent) == GDK_WINDOW_FOREIGN)
window->parent = _gdk_root;
window->parent->children = g_list_prepend (window->parent->children, window);
window->parent->children = g_list_concat (&window->children_list_node, window->parent->children);
window->parent->impl_window->native_children =
g_list_prepend (window->parent->impl_window->native_children, window);
......@@ -1504,10 +1504,9 @@ gdk_win32_window_reparent (GdkWindow *window,
}
if (old_parent)
old_parent->children =
g_list_remove (old_parent->children, window);
old_parent->children = g_list_remove_link (old_parent->children, &window->children_list_node);
parent->children = g_list_prepend (parent->children, window);
parent->children = g_list_concat (&window->children_list_node, parent->children);
return FALSE;
}
......
......@@ -1239,7 +1239,7 @@ gdk_x11_window_foreign_new_for_display (GdkDisplay *display,
if (!win->parent || GDK_WINDOW_TYPE (win->parent) == GDK_WINDOW_FOREIGN)
win->parent = gdk_screen_get_root_window (screen);
win->parent->children = g_list_prepend (win->parent->children, win);
win->parent->children = g_list_concat (&win->children_list_node, win->parent->children);
win->parent->impl_window->native_children =
g_list_prepend (win->parent->impl_window->native_children, win);
......
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