Commit 618d15e9 authored by Javier Jardón's avatar Javier Jardón

Remove deprecated gdk_window_get_toplevels() function

parent dc83131c
...@@ -735,7 +735,6 @@ gdk_window_get_decorations ...@@ -735,7 +735,6 @@ gdk_window_get_decorations
GdkWMDecoration GdkWMDecoration
gdk_window_set_functions gdk_window_set_functions
GdkWMFunction GdkWMFunction
gdk_window_get_toplevels
gdk_get_default_root_window gdk_get_default_root_window
<SUBSECTION> <SUBSECTION>
......
...@@ -687,9 +687,6 @@ gdk_window_get_position ...@@ -687,9 +687,6 @@ gdk_window_get_position
gdk_window_get_state gdk_window_get_state
gdk_window_get_toplevel gdk_window_get_toplevel
gdk_window_get_effective_toplevel gdk_window_get_effective_toplevel
#ifndef GDK_DISABLE_DEPRECATED
gdk_window_get_toplevels
#endif
gdk_window_get_update_area gdk_window_get_update_area
gdk_window_get_user_data gdk_window_get_user_data
gdk_window_get_window_type gdk_window_get_window_type
......
...@@ -2669,27 +2669,6 @@ gdk_screen_get_toplevel_windows (GdkScreen *screen) ...@@ -2669,27 +2669,6 @@ gdk_screen_get_toplevel_windows (GdkScreen *screen)
return new_list; return new_list;
} }
/**
* gdk_window_get_toplevels:
*
* Obtains a list of all toplevel windows known to GDK on the default
* screen (see gdk_screen_get_toplevel_windows()).
* A toplevel window is a child of the root window (see
* gdk_get_default_root_window()).
*
* The returned list should be freed with g_list_free(), but
* its elements need not be freed.
*
* Return value: list of toplevel windows, free with g_list_free()
*
* Deprecated: 2.16: Use gdk_screen_get_toplevel_windows() instead.
*/
GList *
gdk_window_get_toplevels (void)
{
return gdk_screen_get_toplevel_windows (gdk_screen_get_default ());
}
/** /**
* gdk_window_is_visible: * gdk_window_is_visible:
* @window: a #GdkWindow * @window: a #GdkWindow
......
...@@ -824,9 +824,6 @@ gboolean gdk_window_get_decorations (GdkWindow *window, ...@@ -824,9 +824,6 @@ gboolean gdk_window_get_decorations (GdkWindow *window,
GdkWMDecoration *decorations); GdkWMDecoration *decorations);
void gdk_window_set_functions (GdkWindow *window, void gdk_window_set_functions (GdkWindow *window,
GdkWMFunction functions); GdkWMFunction functions);
#if !defined(GDK_MULTIHEAD_SAFE) && !defined(GDK_DISABLE_DEPRECATED)
GList * gdk_window_get_toplevels (void);
#endif
void gdk_window_beep (GdkWindow *window); void gdk_window_beep (GdkWindow *window);
void gdk_window_iconify (GdkWindow *window); void gdk_window_iconify (GdkWindow *window);
......
...@@ -804,7 +804,7 @@ _gdk_quartz_window_did_resign_main (GdkWindow *window) ...@@ -804,7 +804,7 @@ _gdk_quartz_window_did_resign_main (GdkWindow *window)
{ {
GList *toplevels; GList *toplevels;
toplevels = gdk_window_get_toplevels (); toplevels = gdk_screen_get_toplevel_windows (gdk_screen_get_default ());
if (toplevels) if (toplevels)
new_window = toplevels->data; new_window = toplevels->data;
g_list_free (toplevels); g_list_free (toplevels);
......
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