[gtranslator: 4/7] make gda final
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator: 4/7] make gda final
- Date: Wed, 30 Mar 2022 06:30:03 +0000 (UTC)
commit 7af1c33a989cf9098e54e698a6da2971ed686ab2
Author: Maximiliano Sandoval R <msandova gnome org>
Date: Fri Mar 25 15:31:47 2022 +0100
make gda final
src/translation-memory/gda/gtr-gda.c | 12 ++++++------
src/translation-memory/gda/gtr-gda.h | 12 +-----------
2 files changed, 7 insertions(+), 17 deletions(-)
---
diff --git a/src/translation-memory/gda/gtr-gda.c b/src/translation-memory/gda/gtr-gda.c
index 0a165970..84d9ea67 100644
--- a/src/translation-memory/gda/gtr-gda.c
+++ b/src/translation-memory/gda/gtr-gda.c
@@ -59,12 +59,12 @@ typedef struct
GHashTable *lookup_query_cache;
} GtrGdaPrivate;
-G_DEFINE_TYPE_WITH_CODE (GtrGda,
- gtr_gda,
- G_TYPE_OBJECT,
- G_ADD_PRIVATE (GtrGda)
- G_IMPLEMENT_INTERFACE (GTR_TYPE_TRANSLATION_MEMORY,
- gtr_translation_memory_iface_init))
+G_DEFINE_FINAL_TYPE_WITH_CODE (GtrGda,
+ gtr_gda,
+ G_TYPE_OBJECT,
+ G_ADD_PRIVATE (GtrGda)
+ G_IMPLEMENT_INTERFACE (GTR_TYPE_TRANSLATION_MEMORY,
+ gtr_translation_memory_iface_init))
static gint
select_integer (GdaConnection *db,
diff --git a/src/translation-memory/gda/gtr-gda.h b/src/translation-memory/gda/gtr-gda.h
index 3afef596..019e8373 100644
--- a/src/translation-memory/gda/gtr-gda.h
+++ b/src/translation-memory/gda/gtr-gda.h
@@ -25,14 +25,8 @@
G_BEGIN_DECLS
#define GTR_TYPE_GDA (gtr_gda_get_type ())
-#define GTR_GDA(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTR_TYPE_GDA, GtrGda))
-#define GTR_GDA_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GTR_TYPE_GDA, GtrGdaClass))
-#define GTR_IS_GDA(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTR_TYPE_GDA))
-#define GTR_IS_GDA_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTR_TYPE_GDA))
-#define GTR_GDA_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTR_TYPE_GDA, GtrGdaClass))
-typedef struct _GtrGda GtrGda;
-typedef struct _GtrGdaClass GtrGdaClass;
+G_DECLARE_FINAL_TYPE (GtrGda, gtr_gda, GTR, GDA, GObject)
struct _GtrGda
{
@@ -44,10 +38,6 @@ struct _GtrGdaClass
GObjectClass parent_class;
};
-GType gtr_gda_get_type (void) G_GNUC_CONST;
-
-GType gtr_gda_register_type (GTypeModule *module);
-
GtrGda *gtr_gda_new (void);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]