[libwnck/wip/muktupavels/wnck-handle: 8/8] deprecate functions that does not use WnckHandle




commit 37c629b7fe3850631d277db81a73d02717b3b949
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Tue Dec 28 14:53:09 2021 +0200

    deprecate functions that does not use WnckHandle

 libwnck/application.h | 1 +
 libwnck/class-group.h | 1 +
 libwnck/pager.h       | 1 +
 libwnck/screen.h      | 3 +++
 libwnck/selector.h    | 1 +
 libwnck/tasklist.h    | 1 +
 libwnck/util.h        | 5 +++++
 libwnck/window.h      | 1 +
 8 files changed, 14 insertions(+)
---
diff --git a/libwnck/application.h b/libwnck/application.h
index 7966a81..40fe4c6 100644
--- a/libwnck/application.h
+++ b/libwnck/application.h
@@ -74,6 +74,7 @@ struct _WnckApplicationClass
 
 GType wnck_application_get_type (void) G_GNUC_CONST;
 
+G_DEPRECATED_FOR(wnck_handle_get_application)
 WnckApplication* wnck_application_get (gulong xwindow);
 
 gulong wnck_application_get_xid (WnckApplication *app);
diff --git a/libwnck/class-group.h b/libwnck/class-group.h
index ce084c3..581cd22 100644
--- a/libwnck/class-group.h
+++ b/libwnck/class-group.h
@@ -72,6 +72,7 @@ struct _WnckClassGroupClass
 
 GType wnck_class_group_get_type (void) G_GNUC_CONST;
 
+G_DEPRECATED_FOR(wnck_handle_get_class_group)
 WnckClassGroup *wnck_class_group_get (const char *id);
 
 GList *wnck_class_group_get_windows (WnckClassGroup *class_group);
diff --git a/libwnck/pager.h b/libwnck/pager.h
index db830ed..084aeb4 100644
--- a/libwnck/pager.h
+++ b/libwnck/pager.h
@@ -102,6 +102,7 @@ typedef enum {
 
 GType      wnck_pager_get_type           (void) G_GNUC_CONST;
 
+G_DEPRECATED_FOR(wnck_pager_new_with_handle)
 GtkWidget* wnck_pager_new                (void);
 
 GtkWidget* wnck_pager_new_with_handle    (WnckHandle           *handle);
diff --git a/libwnck/screen.h b/libwnck/screen.h
index e34bce4..9fca17b 100644
--- a/libwnck/screen.h
+++ b/libwnck/screen.h
@@ -194,10 +194,13 @@ typedef enum
 
 GType wnck_screen_get_type (void) G_GNUC_CONST;
 
+G_DEPRECATED_FOR(wnck_handle_get_default_screen)
 WnckScreen*    wnck_screen_get_default              (void);
 
+G_DEPRECATED_FOR(wnck_handle_get_screen)
 WnckScreen*    wnck_screen_get                      (int         index);
 
+G_DEPRECATED_FOR(wnck_handle_get_screen_for_root)
 WnckScreen*    wnck_screen_get_for_root             (gulong      root_window_id);
 
 WnckHandle*    wnck_screen_get_handle               (WnckScreen *screen);
diff --git a/libwnck/selector.h b/libwnck/selector.h
index bb6fceb..800f711 100644
--- a/libwnck/selector.h
+++ b/libwnck/selector.h
@@ -63,6 +63,7 @@ struct _WnckSelectorClass
   void (* pad4) (void);
 };
 
+G_DEPRECATED_FOR(wnck_selector_new_with_handle)
 GtkWidget *wnck_selector_new             (void);
 
 GtkWidget *wnck_selector_new_with_handle (WnckHandle *handle);
diff --git a/libwnck/tasklist.h b/libwnck/tasklist.h
index b308802..5407d34 100644
--- a/libwnck/tasklist.h
+++ b/libwnck/tasklist.h
@@ -87,6 +87,7 @@ typedef enum {
 
 GType wnck_tasklist_get_type (void) G_GNUC_CONST;
 
+G_DEPRECATED_FOR(wnck_tasklist_new_with_handle)
 GtkWidget *wnck_tasklist_new (void);
 
 GtkWidget *wnck_tasklist_new_with_handle (WnckHandle *handle);
diff --git a/libwnck/util.h b/libwnck/util.h
index 985f66f..5e70127 100644
--- a/libwnck/util.h
+++ b/libwnck/util.h
@@ -100,21 +100,26 @@ typedef enum {
   WNCK_CLIENT_TYPE_PAGER = 2
 } WnckClientType;
 
+G_DEPRECATED_FOR(wnck_handle_new)
 void wnck_set_client_type (WnckClientType ewmh_sourceindication_client_type);
 
 #define WNCK_DEFAULT_ICON_SIZE 32
 #define WNCK_DEFAULT_MINI_ICON_SIZE 16
 
+G_DEPRECATED_FOR(wnck_handle_set_default_icon_size)
 void wnck_set_default_icon_size      (gsize size);
 
+G_DEPRECATED_FOR(wnck_handle_set_default_mini_icon_size)
 void wnck_set_default_mini_icon_size (gsize size);
 
 void wnck_shutdown        (void);
 
+G_DEPRECATED_FOR(wnck_handle_read_resource_usage_xid)
 void wnck_xid_read_resource_usage (GdkDisplay        *gdk_display,
                                    gulong             xid,
                                    WnckResourceUsage *usage);
 
+G_DEPRECATED_FOR(wnck_handle_read_resource_usage_pid)
 void wnck_pid_read_resource_usage (GdkDisplay        *gdk_display,
                                    gulong             pid,
                                    WnckResourceUsage *usage);
diff --git a/libwnck/window.h b/libwnck/window.h
index 72545aa..47c6543 100644
--- a/libwnck/window.h
+++ b/libwnck/window.h
@@ -288,6 +288,7 @@ 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);


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