mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
Use an autorelease pool.
2007-10-24 Richard Hult <richard@imendio.com> * gdk/quartz/gdkwindow-quartz.c: (update_toplevel_order): Use an autorelease pool. svn path=/trunk/; revision=18946
This commit is contained in:
parent
de5463131e
commit
1907d27d8c
@ -1,3 +1,8 @@
|
|||||||
|
2007-10-24 Richard Hult <richard@imendio.com>
|
||||||
|
|
||||||
|
* gdk/quartz/gdkwindow-quartz.c: (update_toplevel_order): Use an
|
||||||
|
autorelease pool.
|
||||||
|
|
||||||
2007-10-24 Johan Dahlin <jdahlin@async.com.br>
|
2007-10-24 Johan Dahlin <jdahlin@async.com.br>
|
||||||
|
|
||||||
* gtk/gtk-builder-convert
|
* gtk/gtk-builder-convert
|
||||||
|
@ -1371,6 +1371,8 @@ update_toplevel_order (void)
|
|||||||
if (root_impl->sorted_children)
|
if (root_impl->sorted_children)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
GDK_QUARTZ_ALLOC_POOL;
|
||||||
|
|
||||||
enumerator = [[NSApp orderedWindows] objectEnumerator];
|
enumerator = [[NSApp orderedWindows] objectEnumerator];
|
||||||
while ((nswindow = [enumerator nextObject]))
|
while ((nswindow = [enumerator nextObject]))
|
||||||
{
|
{
|
||||||
@ -1383,6 +1385,8 @@ update_toplevel_order (void)
|
|||||||
toplevels = g_list_prepend (toplevels, window);
|
toplevels = g_list_prepend (toplevels, window);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GDK_QUARTZ_RELEASE_POOL;
|
||||||
|
|
||||||
root_impl->sorted_children = g_list_reverse (toplevels);
|
root_impl->sorted_children = g_list_reverse (toplevels);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user