forked from AuroraMiddleware/gtk
Drop gdk_screen_get_toplevel_windows
This commit is contained in:
parent
8f129ddd13
commit
68a61e9ac6
@ -174,11 +174,7 @@ gdk_display_manager_get_type
|
||||
<TITLE>GdkScreen</TITLE>
|
||||
GdkScreen
|
||||
gdk_screen_get_default
|
||||
gdk_screen_get_root_window
|
||||
gdk_screen_get_display
|
||||
gdk_screen_get_toplevel_windows
|
||||
gdk_screen_get_resolution
|
||||
gdk_screen_set_resolution
|
||||
|
||||
<SUBSECTION Standard>
|
||||
GDK_SCREEN
|
||||
|
@ -44,9 +44,6 @@ GType gdk_screen_get_type (void) G_GNUC_CONST;
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GdkDisplay * gdk_screen_get_display (GdkScreen *screen);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GList * gdk_screen_get_toplevel_windows (GdkScreen *screen);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GdkScreen *gdk_screen_get_default (void);
|
||||
|
||||
|
@ -1904,45 +1904,6 @@ gdk_window_remove_filter (GdkWindow *window,
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_screen_get_toplevel_windows:
|
||||
* @screen: The #GdkScreen where the toplevels are located.
|
||||
*
|
||||
* Obtains a list of all toplevel windows known to GDK on the screen @screen.
|
||||
* A toplevel window has no parent window.
|
||||
*
|
||||
* The returned list should be freed with g_list_free(), but
|
||||
* its elements need not be freed.
|
||||
*
|
||||
* Returns: (transfer container) (element-type GdkWindow):
|
||||
* list of toplevel windows, free with g_list_free()
|
||||
*
|
||||
* Since: 2.2
|
||||
**/
|
||||
GList *
|
||||
gdk_screen_get_toplevel_windows (GdkScreen *screen)
|
||||
{
|
||||
GdkWindow * root_window;
|
||||
GList *new_list = NULL;
|
||||
GList *tmp_list;
|
||||
|
||||
g_return_val_if_fail (GDK_IS_SCREEN (screen), NULL);
|
||||
|
||||
root_window = gdk_screen_get_root_window (screen);
|
||||
|
||||
tmp_list = root_window->children;
|
||||
while (tmp_list)
|
||||
{
|
||||
GdkWindow *w = tmp_list->data;
|
||||
|
||||
if (w->window_type != GDK_WINDOW_FOREIGN)
|
||||
new_list = g_list_prepend (new_list, w);
|
||||
tmp_list = tmp_list->next;
|
||||
}
|
||||
|
||||
return new_list;
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_window_is_visible:
|
||||
* @window: a #GdkWindow
|
||||
|
Loading…
Reference in New Issue
Block a user