[gtranslator: 3/7] Make header final
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator: 3/7] Make header final
- Date: Wed, 30 Mar 2022 06:30:03 +0000 (UTC)
commit b427641e3fb4bf4eae4888d7952194eb73806c47
Author: Maximiliano Sandoval R <msandova gnome org>
Date: Fri Mar 25 15:31:24 2022 +0100
Make header final
src/gtr-header.c | 2 +-
src/gtr-header.h | 13 +------------
2 files changed, 2 insertions(+), 13 deletions(-)
---
diff --git a/src/gtr-header.c b/src/gtr-header.c
index 3c350951..02f53776 100644
--- a/src/gtr-header.c
+++ b/src/gtr-header.c
@@ -50,7 +50,7 @@ struct _GtrHeader
GtrMsg parent_instance;
};
-G_DEFINE_TYPE_WITH_PRIVATE (GtrHeader, gtr_header, GTR_TYPE_MSG)
+G_DEFINE_FINAL_TYPE_WITH_PRIVATE (GtrHeader, gtr_header, GTR_TYPE_MSG)
static void
gtr_header_set_field (GtrHeader * header,
diff --git a/src/gtr-header.h b/src/gtr-header.h
index 47d29559..955c0492 100644
--- a/src/gtr-header.h
+++ b/src/gtr-header.h
@@ -34,17 +34,8 @@ G_BEGIN_DECLS
/* Utility Macros */
#define GTR_TYPE_HEADER (gtr_header_get_type ())
-#define GTR_HEADER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTR_TYPE_HEADER, GtrHeader))
-#define GTR_HEADER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GTR_TYPE_HEADER, GtrHeaderClass))
-#define GTR_IS_HEADER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTR_TYPE_HEADER))
-#define GTR_IS_HEADER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTR_TYPE_HEADER))
-#define GTR_HEADER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTR_TYPE_HEADER,
GtrHeaderClass))
-/* Main object structure */
-typedef struct _GtrHeader GtrHeader;
-
-/* Class definition */
-typedef struct _GtrHeaderClass GtrHeaderClass;
+G_DECLARE_FINAL_TYPE (GtrHeader, gtr_header, GTR, HEADER, GtrMsg)
struct _GtrHeaderClass
{
@@ -52,8 +43,6 @@ struct _GtrHeaderClass
};
/* Public methods */
-GType gtr_header_get_type (void) G_GNUC_CONST;
-
GtrHeader *gtr_header_new (po_message_iterator_t iter,
po_message_t message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]