[gnome-photos] base-model: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] base-model: Use G_DECLARE_FINAL_TYPE
- Date: Thu, 7 Jul 2016 17:15:09 +0000 (UTC)
commit 9e3cac5a97d83538a0e13410b9c30d3acb4c1c19
Author: Shivam Tripathi <shivam flash gmail com>
Date: Thu Jul 7 17:48:58 2016 +0530
base-model: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-base-model.c | 5 -----
src/photos-base-model.h | 14 +-------------
2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-base-model.c b/src/photos-base-model.c
index 8517a1f..9679e00 100644
--- a/src/photos-base-model.c
+++ b/src/photos-base-model.c
@@ -39,11 +39,6 @@ struct _PhotosBaseModel
PhotosBaseManager *mngr;
};
-struct _PhotosBaseModelClass
-{
- GObjectClass parent_class;
-};
-
enum
{
PROP_0,
diff --git a/src/photos-base-model.h b/src/photos-base-model.h
index 8aa94a1..9e5803b 100644
--- a/src/photos-base-model.h
+++ b/src/photos-base-model.h
@@ -32,19 +32,7 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_BASE_MODEL (photos_base_model_get_type ())
-
-#define PHOTOS_BASE_MODEL(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_BASE_MODEL, PhotosBaseModel))
-
-#define PHOTOS_IS_BASE_MODEL(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_BASE_MODEL))
-
-typedef struct _PhotosBaseModel PhotosBaseModel;
-typedef struct _PhotosBaseModelClass PhotosBaseModelClass;
-
-GType photos_base_model_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosBaseModel, photos_base_model, PHOTOS, BASE_MODEL, GObject)
PhotosBaseModel *photos_base_model_new (PhotosBaseManager *mngr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]