[gtk+] Remove deprecated gdk_window_get_toplevels() function



commit 618d15e9914e854f5b314c654a6adfd16e7bfb3b
Author: Javier Jardón <jjardon gnome org>
Date:   Fri May 14 18:18:10 2010 +0200

    Remove deprecated gdk_window_get_toplevels() function

 docs/reference/gdk/gdk3-sections.txt |    1 -
 gdk/gdk.symbols                      |    3 ---
 gdk/gdkwindow.c                      |   21 ---------------------
 gdk/gdkwindow.h                      |    3 ---
 gdk/quartz/gdkwindow-quartz.c        |    2 +-
 5 files changed, 1 insertions(+), 29 deletions(-)
---
diff --git a/docs/reference/gdk/gdk3-sections.txt b/docs/reference/gdk/gdk3-sections.txt
index 58d069a..91f98d7 100644
--- a/docs/reference/gdk/gdk3-sections.txt
+++ b/docs/reference/gdk/gdk3-sections.txt
@@ -735,7 +735,6 @@ gdk_window_get_decorations
 GdkWMDecoration
 gdk_window_set_functions
 GdkWMFunction
-gdk_window_get_toplevels
 gdk_get_default_root_window
 
 <SUBSECTION>
diff --git a/gdk/gdk.symbols b/gdk/gdk.symbols
index 8f1aaf3..ae47401 100644
--- a/gdk/gdk.symbols
+++ b/gdk/gdk.symbols
@@ -687,9 +687,6 @@ gdk_window_get_position
 gdk_window_get_state
 gdk_window_get_toplevel
 gdk_window_get_effective_toplevel
-#ifndef GDK_DISABLE_DEPRECATED
-gdk_window_get_toplevels
-#endif
 gdk_window_get_update_area
 gdk_window_get_user_data
 gdk_window_get_window_type
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index b70a0c4..2b982ff 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -2670,27 +2670,6 @@ gdk_screen_get_toplevel_windows (GdkScreen *screen)
 }
 
 /**
- * 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:
  * @window: a #GdkWindow
  *
diff --git a/gdk/gdkwindow.h b/gdk/gdkwindow.h
index ee3c89e..3f6bb5b 100644
--- a/gdk/gdkwindow.h
+++ b/gdk/gdkwindow.h
@@ -824,9 +824,6 @@ gboolean      gdk_window_get_decorations (GdkWindow       *window,
 					  GdkWMDecoration *decorations);
 void	      gdk_window_set_functions	 (GdkWindow	  *window,
 					  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_iconify         (GdkWindow       *window);
diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
index 9717b31..93b68c2 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c
@@ -804,7 +804,7 @@ _gdk_quartz_window_did_resign_main (GdkWindow *window)
     {
       GList *toplevels;
 
-      toplevels = gdk_window_get_toplevels ();
+      toplevels = gdk_screen_get_toplevel_windows (gdk_screen_get_default ());
       if (toplevels)
         new_window = toplevels->data;
       g_list_free (toplevels);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]