summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2021-12-28 14:53:09 +0200
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2022-08-15 09:57:26 +0000
commit5e66bcbc5a9cf259f3d12bc5e17fba837b372bb5 (patch)
tree1fe05c3c97e453747ee0a858494e1aec62fe1d52
parentdb861ff3580c911aea8bca7e345da38f877bd579 (diff)
downloadlibwnck-5e66bcbc5a9cf259f3d12bc5e17fba837b372bb5.tar.gz
deprecate functions that does not use WnckHandle
-rw-r--r--libwnck/application.h1
-rw-r--r--libwnck/class-group.h1
-rw-r--r--libwnck/pager.h1
-rw-r--r--libwnck/screen.h5
-rw-r--r--libwnck/selector.h1
-rw-r--r--libwnck/tasklist.h1
-rw-r--r--libwnck/util.h4
-rw-r--r--libwnck/window.h1
8 files changed, 15 insertions, 0 deletions
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);