From 5e66bcbc5a9cf259f3d12bc5e17fba837b372bb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberts=20Muktup=C4=81vels?= Date: Tue, 28 Dec 2021 14:53:09 +0200 Subject: deprecate functions that does not use WnckHandle --- libwnck/application.h | 1 + libwnck/class-group.h | 1 + libwnck/pager.h | 1 + libwnck/screen.h | 5 +++++ libwnck/selector.h | 1 + libwnck/tasklist.h | 1 + libwnck/util.h | 4 ++++ libwnck/window.h | 1 + 8 files changed, 15 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 153cf5f..9fca17b 100644 --- a/libwnck/screen.h +++ b/libwnck/screen.h @@ -194,8 +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 8d0c77b..91a4e08 100644 --- a/libwnck/util.h +++ b/libwnck/util.h @@ -100,12 +100,16 @@ 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); 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); -- cgit v1.2.1