[gnome-photos] application: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] application: Use G_DECLARE_FINAL_TYPE
- Date: Thu, 6 Oct 2016 09:33:59 +0000 (UTC)
commit c0bac819d26e514a226fa6b1d3f56c5292c3fb5f
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Oct 5 11:44:43 2016 +0200
application: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-application.c | 5 -----
src/photos-application.h | 14 +-------------
2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index 3c414ae..6b7f3a3 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -118,11 +118,6 @@ struct _PhotosApplication
gulong source_removed_id;
};
-struct _PhotosApplicationClass
-{
- GtkApplicationClass parent_class;
-};
-
enum
{
MINERS_CHANGED,
diff --git a/src/photos-application.h b/src/photos-application.h
index 442f158..14edfd6 100644
--- a/src/photos-application.h
+++ b/src/photos-application.h
@@ -32,19 +32,7 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_APPLICATION (photos_application_get_type ())
-
-#define PHOTOS_APPLICATION(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_APPLICATION, PhotosApplication))
-
-#define PHOTOS_IS_APPLICATION(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_APPLICATION))
-
-typedef struct _PhotosApplication PhotosApplication;
-typedef struct _PhotosApplicationClass PhotosApplicationClass;
-
-GType photos_application_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosApplication, photos_application, PHOTOS, APPLICATION, GtkApplication);
GtkApplication *photos_application_new (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]