[gtranslator: 2/7] Make msg derivable
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator: 2/7] Make msg derivable
- Date: Wed, 30 Mar 2022 06:30:03 +0000 (UTC)
commit a3021c47c889b939197b0c0473683cc34594de29
Author: Maximiliano Sandoval R <msandova gnome org>
Date: Fri Mar 25 15:30:10 2022 +0100
Make msg derivable
src/gtr-msg.h | 15 +--------------
1 file changed, 1 insertion(+), 14 deletions(-)
---
diff --git a/src/gtr-msg.h b/src/gtr-msg.h
index 53d1e7d1..75506154 100644
--- a/src/gtr-msg.h
+++ b/src/gtr-msg.h
@@ -31,19 +31,8 @@
G_BEGIN_DECLS
#define GTR_TYPE_MSG (gtr_msg_get_type ())
-#define GTR_MSG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTR_TYPE_MSG, GtrMsg))
-#define GTR_MSG_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GTR_TYPE_MSG, GtrMsgClass))
-#define GTR_IS_MSG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTR_TYPE_MSG))
-#define GTR_IS_MSG_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTR_TYPE_MSG))
-#define GTR_MSG_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTR_TYPE_MSG, GtrMsgClass))
-typedef struct _GtrMsg GtrMsg;
-typedef struct _GtrMsgClass GtrMsgClass;
-
-struct _GtrMsg
-{
- GObject parent_instance;
-};
+G_DECLARE_DERIVABLE_TYPE (GtrMsg, gtr_msg, GTR, MSG, GObject)
struct _GtrMsgClass
{
@@ -58,8 +47,6 @@ typedef enum
} GtrMsgStatus;
/* Public methods */
-GType gtr_msg_get_type (void) G_GNUC_CONST;
-
gboolean gtr_msg_is_translated (GtrMsg *msg);
gboolean gtr_msg_is_fuzzy (GtrMsg *msg);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]