[gnome-photos] done-notification: Use G_DECLARE_FINAL_TYPE



commit 74ecaa8ebc1ad94fc41e65d6163b3e6a5b5b272f
Author: Shivam Tripathi <shivam flash gmail com>
Date:   Fri Jul 8 00:55:24 2016 +0530

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

 src/photos-done-notification.c |    5 -----
 src/photos-done-notification.h |   16 +---------------
 2 files changed, 1 insertions(+), 20 deletions(-)
---
diff --git a/src/photos-done-notification.c b/src/photos-done-notification.c
index 192eb53..901a233 100644
--- a/src/photos-done-notification.c
+++ b/src/photos-done-notification.c
@@ -39,11 +39,6 @@ struct _PhotosDoneNotification
   guint timeout_id;
 };
 
-struct _PhotosDoneNotificationClass
-{
-  GtkGridClass parent_class;
-};
-
 enum
 {
   PROP_0,
diff --git a/src/photos-done-notification.h b/src/photos-done-notification.h
index 5429f1c..b1a3561 100644
--- a/src/photos-done-notification.h
+++ b/src/photos-done-notification.h
@@ -27,21 +27,7 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_DONE_NOTIFICATION (photos_done_notification_get_type ())
-
-#define PHOTOS_DONE_NOTIFICATION(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_DONE_NOTIFICATION, PhotosDoneNotification))
-
-#define PHOTOS_IS_DONE_NOTIFICATION(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_DONE_NOTIFICATION))
-
-typedef struct _PhotosDoneNotification      PhotosDoneNotification;
-typedef struct _PhotosDoneNotificationClass PhotosDoneNotificationClass;
-
-GType             photos_done_notification_get_type (void) G_GNUC_CONST;
-
-void              photos_done_notification_new      (PhotosBaseItem *item);
+G_DECLARE_FINAL_TYPE (PhotosDoneNotification, photos_done_notification, PHOTOS, DONE_NOTIFICATION, GtkGrid)
 
 G_END_DECLS
 


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