[pango/pango2: 73/178] context: Use G_DECLARE_FINAL_TYPE
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2: 73/178] context: Use G_DECLARE_FINAL_TYPE
- Date: Wed, 22 Jun 2022 20:10:14 +0000 (UTC)
commit ee6b4da33044013943122a08e6e240b8de08b5c0
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jun 11 16:24:03 2022 -0400
context: Use G_DECLARE_FINAL_TYPE
pango/pango-context.h | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
---
diff --git a/pango/pango-context.h b/pango/pango-context.h
index 073f820f6..2830b3fe8 100644
--- a/pango/pango-context.h
+++ b/pango/pango-context.h
@@ -27,18 +27,10 @@
G_BEGIN_DECLS
-typedef struct _PangoContextClass PangoContextClass;
-
#define PANGO_TYPE_CONTEXT (pango_context_get_type ())
-#define PANGO_CONTEXT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_CONTEXT,
PangoContext))
-#define PANGO_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_CONTEXT,
PangoContextClass))
-#define PANGO_IS_CONTEXT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_CONTEXT))
-#define PANGO_IS_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_CONTEXT))
-#define PANGO_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_CONTEXT,
PangoContextClass))
-
PANGO_AVAILABLE_IN_ALL
-GType pango_context_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PangoContext, pango_context, PANGO, CONTEXT, GObject);
PANGO_AVAILABLE_IN_ALL
PangoContext * pango_context_new (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]