[gtk+] Drop gdk_screen_get_toplevel_windows
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Drop gdk_screen_get_toplevel_windows
- Date: Wed, 1 Nov 2017 01:31:43 +0000 (UTC)
commit 68a61e9ac6c7c1be5cc8c3c31450296afc107634
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Oct 31 20:49:50 2017 -0400
Drop gdk_screen_get_toplevel_windows
docs/reference/gdk/gdk4-sections.txt | 4 ---
gdk/gdkscreen.h | 3 --
gdk/gdkwindow.c | 39 ----------------------------------
3 files changed, 0 insertions(+), 46 deletions(-)
---
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt
index 1d82d17..564d7db 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -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
diff --git a/gdk/gdkscreen.h b/gdk/gdkscreen.h
index 6c77d48..26b89a5 100644
--- a/gdk/gdkscreen.h
+++ b/gdk/gdkscreen.h
@@ -45,9 +45,6 @@ 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);
G_END_DECLS
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 016b20d..ac7b191 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -1905,45 +1905,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
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]