diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2022-09-16 12:35:26 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2022-09-16 14:23:50 +0000 |
commit | bc557f656b24322b3b072d4ac9b36156a1971f1a (patch) | |
tree | d8ef3067cd1d1e61576bf356e205c16a70cc5b1e | |
parent | d607792b26ca70d847f16bbb164069c93839e2ee (diff) | |
download | libwnck-bc557f656b24322b3b072d4ac9b36156a1971f1a.tar.gz |
class-group: remove deprecated API
https://gitlab.gnome.org/GNOME/libwnck/-/issues/150
-rw-r--r-- | doc/libwnck-sections.txt | 2 | ||||
-rw-r--r-- | libwnck/class-group.c | 41 | ||||
-rw-r--r-- | libwnck/class-group.h | 8 |
3 files changed, 0 insertions, 51 deletions
diff --git a/doc/libwnck-sections.txt b/doc/libwnck-sections.txt index f57410f..f8ebb12 100644 --- a/doc/libwnck-sections.txt +++ b/doc/libwnck-sections.txt @@ -104,9 +104,7 @@ WnckWindowClass <FILE>class-group</FILE> <TITLE>WnckClassGroup</TITLE> WnckClassGroup -wnck_class_group_get wnck_class_group_get_id -wnck_class_group_get_res_class wnck_class_group_get_name wnck_class_group_get_icon wnck_class_group_get_mini_icon diff --git a/libwnck/class-group.c b/libwnck/class-group.c index 46d1f24..d9a4a51 100644 --- a/libwnck/class-group.c +++ b/libwnck/class-group.c @@ -20,8 +20,6 @@ * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ -#undef WNCK_DISABLE_DEPRECATED - #include <string.h> #include "class-group.h" #include "window.h" @@ -187,25 +185,6 @@ wnck_class_group_finalize (GObject *object) } /** - * wnck_class_group_get: - * @id: identifier name of the sought resource class. - * - * Gets the #WnckClassGroup corresponding to @id. - * - * Return value: (transfer none): the #WnckClassGroup corresponding to - * @id, or %NULL if there is no #WnckClassGroup with the specified - * @id. The returned #WnckClassGroup is owned by libwnck and must not be - * referenced or unreferenced. - * - * Since: 2.2 - **/ -WnckClassGroup * -wnck_class_group_get (const char *id) -{ - return wnck_handle_get_class_group (_wnck_get_handle (), id); -} - -/** * _wnck_class_group_create: * @screen: a #WnckScreen. * @res_class: name of the resource class for the group. @@ -640,26 +619,6 @@ wnck_class_group_get_id (WnckClassGroup *class_group) } /** - * wnck_class_group_get_res_class: - * @class_group: a #WnckClassGroup. - * - * Gets the resource class name for @class_group. - * - * Return value: the resource class name of @class_group, or an - * empty string if the group has no resource class name. - * - * Since: 2.2 - * Deprecated:3.2: Use wnck_class_group_get_id() instead. - **/ -const char * -wnck_class_group_get_res_class (WnckClassGroup *class_group) -{ - g_return_val_if_fail (class_group != NULL, NULL); - - return class_group->priv->res_class; -} - -/** * wnck_class_group_get_name: * @class_group: a #WnckClassGroup. * diff --git a/libwnck/class-group.h b/libwnck/class-group.h index 581cd22..3396d16 100644 --- a/libwnck/class-group.h +++ b/libwnck/class-group.h @@ -72,9 +72,6 @@ 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); const char * wnck_class_group_get_id (WnckClassGroup *class_group); @@ -83,11 +80,6 @@ const char * wnck_class_group_get_name (WnckClassGroup *class_group); GdkPixbuf *wnck_class_group_get_icon (WnckClassGroup *class_group); GdkPixbuf *wnck_class_group_get_mini_icon (WnckClassGroup *class_group); -#ifndef WNCK_DISABLE_DEPRECATED -G_DEPRECATED_FOR(wnck_class_group_get_id) -const char * wnck_class_group_get_res_class (WnckClassGroup *class_group); -#endif - G_END_DECLS #endif /* WNCK_CLASS_GROUP_H */ |