[libwnck/wip/muktupavels/remove-deprecated-things: 11/14] window: remove deprecated API




commit 1b042363447b2b88e37525c4a537e46f7eba0479
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Fri Sep 16 12:52:23 2022 +0300

    window: remove deprecated API
    
    https://gitlab.gnome.org/GNOME/libwnck/-/issues/150

 doc/libwnck-sections.txt |  1 -
 libwnck/window.c         | 17 -----------------
 libwnck/window.h         |  3 ---
 3 files changed, 21 deletions(-)
---
diff --git a/doc/libwnck-sections.txt b/doc/libwnck-sections.txt
index 9f897e15..83693d85 100644
--- a/doc/libwnck-sections.txt
+++ b/doc/libwnck-sections.txt
@@ -5,7 +5,6 @@
 <FILE>window</FILE>
 <TITLE>WnckWindow</TITLE>
 WnckWindow
-wnck_window_get
 wnck_window_get_screen
 wnck_window_has_name
 wnck_window_get_name
diff --git a/libwnck/window.c b/libwnck/window.c
index 35bb37c1..c2814ec9 100644
--- a/libwnck/window.c
+++ b/libwnck/window.c
@@ -434,23 +434,6 @@ wnck_window_finalize (GObject *object)
   G_OBJECT_CLASS (wnck_window_parent_class)->finalize (object);
 }
 
-/**
- * wnck_window_get:
- * @xwindow: an X window ID.
- *
- * Gets a preexisting #WnckWindow for the X window @xwindow. This will not
- * create a #WnckWindow if none exists. The function is robust against bogus
- * window IDs.
- *
- * Return value: (transfer none): the #WnckWindow for @xwindow. The returned
- * #WnckWindow is owned by libwnck and must not be referenced or unreferenced.
- **/
-WnckWindow*
-wnck_window_get (gulong xwindow)
-{
-  return wnck_handle_get_window (_wnck_get_handle (), xwindow);
-}
-
 /**
  * wnck_window_get_screen:
  * @window: a #WnckWindow.
diff --git a/libwnck/window.h b/libwnck/window.h
index 47c65433..c71d3f14 100644
--- a/libwnck/window.h
+++ b/libwnck/window.h
@@ -288,9 +288,6 @@ struct _WnckWindowClass
 
 GType wnck_window_get_type (void) G_GNUC_CONST;
 
-G_DEPRECATED_FOR(wnck_handle_get_window)
-WnckWindow* wnck_window_get (gulong xwindow);
-
 WnckScreen* wnck_window_get_screen    (WnckWindow *window);
 
 gboolean    wnck_window_has_name      (WnckWindow *window);


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