[gnome-photos] preview-view: Use G_DECLARE_FINAL_TYPE



commit 59ee63b2188973c6545dcb99ee914892a8413c62
Author: Umang Jain <mailumangjain gmail com>
Date:   Tue Sep 5 04:09:15 2017 +0530

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

 src/photos-preview-view.c |    5 -----
 src/photos-preview-view.h |   14 +-------------
 2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-preview-view.c b/src/photos-preview-view.c
index 5c862af..9805590 100644
--- a/src/photos-preview-view.c
+++ b/src/photos-preview-view.c
@@ -66,11 +66,6 @@ struct _PhotosPreviewView
   gdouble zoom_best_fit;
 };
 
-struct _PhotosPreviewViewClass
-{
-  GtkBinClass parent_class;
-};
-
 enum
 {
   PROP_0,
diff --git a/src/photos-preview-view.h b/src/photos-preview-view.h
index 0ada9b3..3f217b2 100644
--- a/src/photos-preview-view.h
+++ b/src/photos-preview-view.h
@@ -33,19 +33,7 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_PREVIEW_VIEW (photos_preview_view_get_type ())
-
-#define PHOTOS_PREVIEW_VIEW(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_PREVIEW_VIEW, PhotosPreviewView))
-
-#define PHOTOS_IS_PREVIEW_VIEW(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_PREVIEW_VIEW))
-
-typedef struct _PhotosPreviewView      PhotosPreviewView;
-typedef struct _PhotosPreviewViewClass PhotosPreviewViewClass;
-
-GType                  photos_preview_view_get_type               (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosPreviewView, photos_preview_view, PHOTOS, PREVIEW_VIEW, GtkBin);
 
 GtkWidget             *photos_preview_view_new                    (GtkOverlay *overlay);
 


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