[gnome-photos] print-preview: Use G_DECLARE_FINAL_TYPE



commit 7443bc9494c7a9cb38f8971c3afc328061b04873
Author: Umang Jain <mailumangjain gmail com>
Date:   Tue Sep 26 21:44:35 2017 +0530

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

 src/photos-print-preview.c |    5 -----
 src/photos-print-preview.h |   14 +-------------
 2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-print-preview.c b/src/photos-print-preview.c
index 78ceccf..dac2341 100644
--- a/src/photos-print-preview.c
+++ b/src/photos-print-preview.c
@@ -76,11 +76,6 @@ struct _PhotosPrintPreview
   gdouble r_dx, r_dy;
 };
 
-struct _PhotosPrintPreviewClass
-{
-  GtkAspectFrameClass parent_class;
-};
-
 enum
 {
   PROP_0,
diff --git a/src/photos-print-preview.h b/src/photos-print-preview.h
index af0cd88..49cf8d8 100644
--- a/src/photos-print-preview.h
+++ b/src/photos-print-preview.h
@@ -29,19 +29,7 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_PRINT_PREVIEW (photos_print_preview_get_type ())
-
-#define PHOTOS_PRINT_PREVIEW(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_PRINT_PREVIEW, PhotosPrintPreview))
-
-#define PHOTOS_IS_PRINT_PREVIEW(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_PRINT_PREVIEW))
-
-typedef struct _PhotosPrintPreview      PhotosPrintPreview;
-typedef struct _PhotosPrintPreviewClass PhotosPrintPreviewClass;
-
-GType        photos_print_preview_get_type              (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosPrintPreview, photos_print_preview, PHOTOS, PRINT_PREVIEW, GtkAspectFrame);
 
 GtkWidget   *photos_print_preview_new                   (void);
 


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