[gnome-photos] print-notification: Use G_DECLARE_FINAL_TYPE



commit 56e803b07a3ba697876643c94a248b36c9bd0bfa
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Jul 13 18:33:39 2017 +0200

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

 src/photos-print-notification.c |    5 -----
 src/photos-print-notification.h |   14 +-------------
 2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-print-notification.c b/src/photos-print-notification.c
index 7161900..a3d2f3a 100644
--- a/src/photos-print-notification.c
+++ b/src/photos-print-notification.c
@@ -43,11 +43,6 @@ struct _PhotosPrintNotification
   GtkWidget *stop_button;
 };
 
-struct _PhotosPrintNotificationClass
-{
-  GtkGridClass parent_class;
-};
-
 enum
 {
   PROP_0,
diff --git a/src/photos-print-notification.h b/src/photos-print-notification.h
index 0399e52..d47ecc9 100644
--- a/src/photos-print-notification.h
+++ b/src/photos-print-notification.h
@@ -30,19 +30,7 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_PRINT_NOTIFICATION (photos_print_notification_get_type ())
-
-#define PHOTOS_PRINT_NOTIFICATION(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_PRINT_NOTIFICATION, PhotosPrintNotification))
-
-#define PHOTOS_IS_PRINT_NOTIFICATION(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_PRINT_NOTIFICATION))
-
-typedef struct _PhotosPrintNotification      PhotosPrintNotification;
-typedef struct _PhotosPrintNotificationClass PhotosPrintNotificationClass;
-
-GType               photos_print_notification_get_type           (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosPrintNotification, photos_print_notification, PHOTOS, PRINT_NOTIFICATION, 
GtkGrid);
 
 void                photos_print_notification_new                (GtkPrintOperation *print_op);
 


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