[gnome-photos] view-container: Use G_DECLARE_FINAL_TYPE



commit 87256856066a536aaaa9de0b2798f32b010bb403
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Nov 18 16:35:13 2016 +0100

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

 src/photos-view-container.c |    5 -----
 src/photos-view-container.h |   14 +-------------
 2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-view-container.c b/src/photos-view-container.c
index 353ff3b..22687bb 100644
--- a/src/photos-view-container.c
+++ b/src/photos-view-container.c
@@ -65,11 +65,6 @@ struct _PhotosViewContainer
   gchar *name;
 };
 
-struct _PhotosViewContainerClass
-{
-  GtkStackClass parent_class;
-};
-
 enum
 {
   PROP_0,
diff --git a/src/photos-view-container.h b/src/photos-view-container.h
index 2b475d7..8b0b3f5 100644
--- a/src/photos-view-container.h
+++ b/src/photos-view-container.h
@@ -32,19 +32,7 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_VIEW_CONTAINER (photos_view_container_get_type ())
-
-#define PHOTOS_VIEW_CONTAINER(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_VIEW_CONTAINER, PhotosViewContainer))
-
-#define PHOTOS_IS_VIEW_CONTAINER(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_VIEW_CONTAINER))
-
-typedef struct _PhotosViewContainer      PhotosViewContainer;
-typedef struct _PhotosViewContainerClass PhotosViewContainerClass;
-
-GType                  photos_view_container_get_type               (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosViewContainer, photos_view_container, PHOTOS, VIEW_CONTAINER, GtkStack);
 
 GtkWidget             *photos_view_container_new                    (PhotosWindowMode mode, const gchar 
*name);
 


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