[gnome-software] trivial: Fix make check by converting GsModuleset to use G_DECLARE_DERIVABLE_TYPE
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Fix make check by converting GsModuleset to use G_DECLARE_DERIVABLE_TYPE
- Date: Tue, 15 Sep 2015 10:37:21 +0000 (UTC)
commit 4c855baa55be03cbb90b99dada4a8ec2852248bc
Author: Richard Hughes <richard hughsie com>
Date: Tue Sep 15 11:36:39 2015 +0100
trivial: Fix make check by converting GsModuleset to use G_DECLARE_DERIVABLE_TYPE
src/plugins/gs-moduleset.h | 13 ++-----------
1 files changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/src/plugins/gs-moduleset.h b/src/plugins/gs-moduleset.h
index 035d0e2..b3d6145 100644
--- a/src/plugins/gs-moduleset.h
+++ b/src/plugins/gs-moduleset.h
@@ -24,16 +24,8 @@
#include <glib-object.h>
-typedef struct _GsModuleset GsModuleset;
-typedef struct _GsModulesetClass GsModulesetClass;
-
-#define GS_TYPE_MODULESET (gs_moduleset_get_type ())
-#define GS_MODULESET(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GS_TYPE_MODULESET, GsModuleset))
-#define GS_IS_MODULESET(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GS_TYPE_MODULESET))
-
-struct _GsModuleset {
- GObject parent_instance;
-};
+#define GS_TYPE_MODULESET (gs_moduleset_get_type ())
+G_DECLARE_DERIVABLE_TYPE (GsModuleset, gs_moduleset, GS, MODULESET, GObject)
struct _GsModulesetClass {
GObjectClass parent_class;
@@ -46,7 +38,6 @@ typedef enum {
GS_MODULESET_MODULE_KIND_LAST
} GsModulesetModuleKind;
-GType gs_moduleset_get_type (void);
GsModuleset *gs_moduleset_new (void);
gchar **gs_moduleset_get_modules (GsModuleset *moduleset,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]