[gnome-photos] export-notification: Use G_DECLARE_FINAL_TYPE



commit fed596d2f30e7dd2fe347118ab2760c96bdde9d4
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Nov 18 16:41:07 2016 +0100

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

 src/photos-export-notification.c |    5 -----
 src/photos-export-notification.h |   14 +-------------
 2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-export-notification.c b/src/photos-export-notification.c
index b7b2784..696fc6f 100644
--- a/src/photos-export-notification.c
+++ b/src/photos-export-notification.c
@@ -42,11 +42,6 @@ struct _PhotosExportNotification
   guint timeout_id;
 };
 
-struct _PhotosExportNotificationClass
-{
-  GtkGridClass parent_class;
-};
-
 enum
 {
   PROP_0,
diff --git a/src/photos-export-notification.h b/src/photos-export-notification.h
index f277055..2f856ec 100644
--- a/src/photos-export-notification.h
+++ b/src/photos-export-notification.h
@@ -28,19 +28,7 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_EXPORT_NOTIFICATION (photos_export_notification_get_type ())
-
-#define PHOTOS_EXPORT_NOTIFICATION(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_EXPORT_NOTIFICATION, PhotosExportNotification))
-
-#define PHOTOS_IS_EXPORT_NOTIFICATION(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_EXPORT_NOTIFICATION))
-
-typedef struct _PhotosExportNotification      PhotosExportNotification;
-typedef struct _PhotosExportNotificationClass PhotosExportNotificationClass;
-
-GType               photos_export_notification_get_type        (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosExportNotification, photos_export_notification, PHOTOS, EXPORT_NOTIFICATION, 
GtkGrid);
 
 void                photos_export_notification_new             (GList *items, GFile *file);
 


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