[gnome-photos] print-operation: Use G_DECLARE_FINAL_TYPE



commit 84a53675b7334e763fe2e72ea200ed30bb1894ff
Author: Umang Jain <mailumangjain gmail com>
Date:   Tue Sep 5 04:13:33 2017 +0530

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

 src/photos-print-operation.c |    5 -----
 src/photos-print-operation.h |   14 +-------------
 2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-print-operation.c b/src/photos-print-operation.c
index 0563474..e40b0d4 100644
--- a/src/photos-print-operation.c
+++ b/src/photos-print-operation.c
@@ -46,11 +46,6 @@ struct _PhotosPrintOperation
   gdouble scale_factor;
 };
 
-struct _PhotosPrintOperationClass
-{
-  GtkPrintOperationClass parent_class;
-};
-
 
 enum
 {
diff --git a/src/photos-print-operation.h b/src/photos-print-operation.h
index 22d4380..407df67 100644
--- a/src/photos-print-operation.h
+++ b/src/photos-print-operation.h
@@ -33,19 +33,7 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_PRINT_OPERATION (photos_print_operation_get_type ())
-
-#define PHOTOS_PRINT_OPERATION(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_PRINT_OPERATION, PhotosPrintOperation))
-
-#define PHOTOS_IS_PRINT_OPERATION(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_PRINT_OPERATION))
-
-typedef struct _PhotosPrintOperation      PhotosPrintOperation;
-typedef struct _PhotosPrintOperationClass PhotosPrintOperationClass;
-
-GType               photos_print_operation_get_type           (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosPrintOperation, photos_print_operation, PHOTOS, PRINT_OPERATION, 
GtkPrintOperation);
 
 GtkPrintOperation  *photos_print_operation_new                (PhotosBaseItem *item, GeglNode *node);
 


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