[gnome-photos] indexing-notification: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] indexing-notification: Use G_DECLARE_FINAL_TYPE
- Date: Thu, 9 Feb 2017 08:41:23 +0000 (UTC)
commit 80689f1594803f4a4c7c77e85fbde7125242159d
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Feb 9 09:37:07 2017 +0100
indexing-notification: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-indexing-notification.c | 5 -----
src/photos-indexing-notification.h | 18 +++++-------------
2 files changed, 5 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-indexing-notification.c b/src/photos-indexing-notification.c
index ccebf04..1659b41 100644
--- a/src/photos-indexing-notification.c
+++ b/src/photos-indexing-notification.c
@@ -50,11 +50,6 @@ struct _PhotosIndexingNotification
guint timeout_id;
};
-struct _PhotosIndexingNotificationClass
-{
- GtkGridClass parent_class;
-};
-
G_DEFINE_TYPE (PhotosIndexingNotification, photos_indexing_notification, GTK_TYPE_GRID);
diff --git a/src/photos-indexing-notification.h b/src/photos-indexing-notification.h
index 271ed90..b9de01d 100644
--- a/src/photos-indexing-notification.h
+++ b/src/photos-indexing-notification.h
@@ -30,19 +30,11 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_INDEXING_NOTIFICATION (photos_indexing_notification_get_type ())
-
-#define PHOTOS_INDEXING_NOTIFICATION(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_INDEXING_NOTIFICATION, PhotosIndexingNotification))
-
-#define PHOTOS_IS_INDEXING_NOTIFICATION(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_INDEXING_NOTIFICATION))
-
-typedef struct _PhotosIndexingNotification PhotosIndexingNotification;
-typedef struct _PhotosIndexingNotificationClass PhotosIndexingNotificationClass;
-
-GType photos_indexing_notification_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosIndexingNotification,
+ photos_indexing_notification,
+ PHOTOS,
+ INDEXING_NOTIFICATION,
+ GtkGrid);
GtkWidget *photos_indexing_notification_new (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]