[libwnck/wip/muktupavels/wnck-handle: 6/8] deprecate functions that does not use WnckHandle
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libwnck/wip/muktupavels/wnck-handle: 6/8] deprecate functions that does not use WnckHandle
- Date: Mon, 15 Aug 2022 09:57:28 +0000 (UTC)
commit 5e66bcbc5a9cf259f3d12bc5e17fba837b372bb5
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 | 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 7966a81d..40fe4c60 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 ce084c36..581cd22a 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 db830ed2..084aeb46 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 153cf5fb..9fca17b9 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 bb6fceb9..800f7116 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 b308802b..5407d349 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 8d0c77bd..91a4e083 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 72545aad..47c65433 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]