[gnome-photos] camera-cache: Use G_DECLARE_FINAL_TYPE



commit 865c971df445feacb287f7558dcaafe333616f32
Author: Shivam Tripathi <shivam flash gmail com>
Date:   Thu Jul 7 18:33:38 2016 +0530

    camera-cache: Use G_DECLARE_FINAL_TYPE
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763712

 src/photos-camera-cache.c |    5 -----
 src/photos-camera-cache.h |   14 +-------------
 2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-camera-cache.c b/src/photos-camera-cache.c
index 14d1dc8..0b5b776 100644
--- a/src/photos-camera-cache.c
+++ b/src/photos-camera-cache.c
@@ -37,11 +37,6 @@ struct _PhotosCameraCache
   PhotosTrackerQueue *queue;
 };
 
-struct _PhotosCameraCacheClass
-{
-  GObjectClass parent_class;
-};
-
 
 G_DEFINE_TYPE (PhotosCameraCache, photos_camera_cache, G_TYPE_OBJECT);
 
diff --git a/src/photos-camera-cache.h b/src/photos-camera-cache.h
index 93f1115..e68a2e6 100644
--- a/src/photos-camera-cache.h
+++ b/src/photos-camera-cache.h
@@ -27,19 +27,7 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_CAMERA_CACHE (photos_camera_cache_get_type ())
-
-#define PHOTOS_CAMERA_CACHE(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_CAMERA_CACHE, PhotosCameraCache))
-
-#define PHOTOS_IS_CAMERA_CACHE(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_CAMERA_CACHE))
-
-typedef struct _PhotosCameraCache      PhotosCameraCache;
-typedef struct _PhotosCameraCacheClass PhotosCameraCacheClass;
-
-GType                  photos_camera_cache_get_type               (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosCameraCache, photos_camera_cache, PHOTOS, CAMERA_CACHE, GObject)
 
 PhotosCameraCache     *photos_camera_cache_dup_singleton          (void);
 


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