[gtranslator: 5/7] make po final




commit abbcfc1cbbc520cc086f8b51a33c10c103f25d1d
Author: Maximiliano Sandoval R <msandova gnome org>
Date:   Fri Mar 25 15:34:52 2022 +0100

    make po final

 src/gtr-po.c |  8 ++++----
 src/gtr-po.h | 22 ++--------------------
 2 files changed, 6 insertions(+), 24 deletions(-)
---
diff --git a/src/gtr-po.c b/src/gtr-po.c
index a1ef77f6..05c8f8e9 100644
--- a/src/gtr-po.c
+++ b/src/gtr-po.c
@@ -113,10 +113,10 @@ typedef struct
 } GtrPoPrivate;
 
 
-G_DEFINE_TYPE_WITH_CODE (GtrPo, gtr_po, G_TYPE_OBJECT,
-                         G_ADD_PRIVATE (GtrPo)
-                         G_IMPLEMENT_INTERFACE (GTR_TYPE_MESSAGE_CONTAINER,
-                                                gtr_po_message_container_init))
+G_DEFINE_FINAL_TYPE_WITH_CODE (GtrPo, gtr_po, G_TYPE_OBJECT,
+                               G_ADD_PRIVATE (GtrPo)
+                               G_IMPLEMENT_INTERFACE (GTR_TYPE_MESSAGE_CONTAINER,
+                                                      gtr_po_message_container_init))
 
 enum
 {
diff --git a/src/gtr-po.h b/src/gtr-po.h
index c710508b..6d3089e1 100644
--- a/src/gtr-po.h
+++ b/src/gtr-po.h
@@ -37,26 +37,14 @@ G_BEGIN_DECLS
  * Type checking and casting macros
  */
 #define GTR_TYPE_PO            (gtr_po_get_type ())
-#define GTR_PO(o)              (G_TYPE_CHECK_INSTANCE_CAST ((o), GTR_TYPE_PO, GtrPo))
-#define GTR_PO_CLASS(k)        (G_TYPE_CHECK_CLASS_CAST((k), GTR_TYPE_PO, GtrPoClass))
-#define GTR_IS_PO(o)           (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTR_TYPE_PO))
-#define GTR_IS_PO_CLASS(k)     (G_TYPE_CHECK_CLASS_TYPE ((k), GTR_TYPE_PO))
-#define GTR_PO_GET_CLASS(o)    (G_TYPE_INSTANCE_GET_CLASS ((o), GTR_TYPE_PO, GtrPoClass))
-/*
- * Main object structure
- */
-typedef struct _GtrPo GtrPo;
+
+G_DECLARE_FINAL_TYPE (GtrPo, gtr_po, GTR, PO, GObject)
 
 struct _GtrPo
 {
   GObject parent_instance;
 };
 
-/*
- * Class definition
- */
-typedef struct _GtrPoClass GtrPoClass;
-
 struct _GtrPoClass
 {
   GObjectClass parent_class;
@@ -86,12 +74,6 @@ typedef enum
  */
 GQuark gtr_po_error_quark (void);
 
-GType
-gtr_po_get_type (void)
-  G_GNUC_CONST;
-
-     GType gtr_po_register_type (GTypeModule * module);
-
      GtrPo *gtr_po_new (void);
 
      gboolean gtr_po_parse (GtrPo * po, GFile * location, GError ** error);


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