[libwnck/wip/muktupavels/remove-deprecated-things: 2/9] class-group: remove deprecated API




commit b7fa8610e5b1f021d9ed3a67e17f26692c49f8cc
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Fri Sep 16 12:35:26 2022 +0300

    class-group: remove deprecated API
    
    https://gitlab.gnome.org/GNOME/libwnck/-/issues/150

 doc/libwnck-sections.txt  |  2 --
 doc/tmpl/class-group.sgml | 18 ------------------
 libwnck/class-group.c     | 41 -----------------------------------------
 libwnck/class-group.h     |  8 --------
 4 files changed, 69 deletions(-)
---
diff --git a/doc/libwnck-sections.txt b/doc/libwnck-sections.txt
index f57410f3..f8ebb123 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/doc/tmpl/class-group.sgml b/doc/tmpl/class-group.sgml
index 8296cbc9..5e81ff5a 100644
--- a/doc/tmpl/class-group.sgml
+++ b/doc/tmpl/class-group.sgml
@@ -40,15 +40,6 @@ WnckClassGroup
 
 @wnckclassgroup: the object which received the signal.
 
-<!-- ##### FUNCTION wnck_class_group_get ##### -->
-<para>
-
-</para>
-
-@id: 
-@Returns: 
-
-
 <!-- ##### FUNCTION wnck_class_group_get_id ##### -->
 <para>
 
@@ -58,15 +49,6 @@ WnckClassGroup
 @Returns: 
 
 
-<!-- ##### FUNCTION wnck_class_group_get_res_class ##### -->
-<para>
-
-</para>
-
-@class_group: 
-@Returns: 
-
-
 <!-- ##### FUNCTION wnck_class_group_get_name ##### -->
 <para>
 
diff --git a/libwnck/class-group.c b/libwnck/class-group.c
index 46d1f241..d9a4a516 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"
@@ -186,25 +184,6 @@ wnck_class_group_finalize (GObject *object)
   G_OBJECT_CLASS (wnck_class_group_parent_class)->finalize (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.
@@ -639,26 +618,6 @@ wnck_class_group_get_id (WnckClassGroup *class_group)
   return class_group->priv->res_class;
 }
 
-/**
- * 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 581cd22a..3396d167 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 */


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