[gnome-photos] delete-notification: Use G_DECLARE_FINAL_TYPE



commit a2107c8ffda8b6ace11edf54913584f55a52ee30
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Oct 7 08:52:05 2016 +0200

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

 src/photos-delete-notification.c |    6 ------
 src/photos-delete-notification.h |   16 ++--------------
 2 files changed, 2 insertions(+), 20 deletions(-)
---
diff --git a/src/photos-delete-notification.c b/src/photos-delete-notification.c
index bd0a338..912cf5e 100644
--- a/src/photos-delete-notification.c
+++ b/src/photos-delete-notification.c
@@ -23,7 +23,6 @@
 #include "config.h"
 
 #include <glib/gi18n.h>
-#include <gtk/gtk.h>
 
 #include "photos-base-item.h"
 #include "photos-delete-notification.h"
@@ -42,11 +41,6 @@ struct _PhotosDeleteNotification
   guint timeout_id;
 };
 
-struct _PhotosDeleteNotificationClass
-{
-  GtkGridClass parent_class;
-};
-
 enum
 {
   PROP_0,
diff --git a/src/photos-delete-notification.h b/src/photos-delete-notification.h
index 9bb29c4..d174096 100644
--- a/src/photos-delete-notification.h
+++ b/src/photos-delete-notification.h
@@ -23,24 +23,12 @@
 #define PHOTOS_DELETE_NOTIFICATION_H
 
 #include <glib.h>
-#include <glib-object.h>
+#include <gtk/gtk.h>
 
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_DELETE_NOTIFICATION (photos_delete_notification_get_type ())
-
-#define PHOTOS_DELETE_NOTIFICATION(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_DELETE_NOTIFICATION, PhotosDeleteNotification))
-
-#define PHOTOS_IS_DELETE_NOTIFICATION(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_DELETE_NOTIFICATION))
-
-typedef struct _PhotosDeleteNotification      PhotosDeleteNotification;
-typedef struct _PhotosDeleteNotificationClass PhotosDeleteNotificationClass;
-
-GType               photos_delete_notification_get_type           (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosDeleteNotification, photos_delete_notification, PHOTOS, DELETE_NOTIFICATION, 
GtkGrid);
 
 void                photos_delete_notification_new                (GList *items);
 


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