[gnome-photos] remote-display-manager: Use G_DECLARE_FINAL_TYPE



commit 45f24c6a3f611d4af8055029860d80b9a50cb386
Author: Umang Jain <mailumangjain gmail com>
Date:   Tue Sep 5 04:36:35 2017 +0530

    remote-display-manager: Use G_DECLARE_FINAL_TYPE
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763712

 src/photos-remote-display-manager.c |    5 -----
 src/photos-remote-display-manager.h |   18 +++++-------------
 2 files changed, 5 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-remote-display-manager.c b/src/photos-remote-display-manager.c
index 1e35f98..d83c588 100644
--- a/src/photos-remote-display-manager.c
+++ b/src/photos-remote-display-manager.c
@@ -35,11 +35,6 @@ struct _PhotosRemoteDisplayManager
   PhotosDlnaRenderer *renderer;
 };
 
-struct _PhotosRemoteDisplayManagerClass
-{
-  GObjectClass parent_class;
-};
-
 enum
 {
   SHARE_BEGAN,
diff --git a/src/photos-remote-display-manager.h b/src/photos-remote-display-manager.h
index cee8df5..a21fb49 100644
--- a/src/photos-remote-display-manager.h
+++ b/src/photos-remote-display-manager.h
@@ -29,19 +29,11 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_REMOTE_DISPLAY_MANAGER (photos_remote_display_manager_get_type ())
-
-#define PHOTOS_REMOTE_DISPLAY_MANAGER(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_REMOTE_DISPLAY_MANAGER, PhotosRemoteDisplayManager))
-
-#define PHOTOS_IS_REMOTE_DISPLAY_MANAGER(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_REMOTE_DISPLAY_MANAGER))
-
-typedef struct _PhotosRemoteDisplayManager      PhotosRemoteDisplayManager;
-typedef struct _PhotosRemoteDisplayManagerClass PhotosRemoteDisplayManagerClass;
-
-GType                       photos_remote_display_manager_get_type        (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosRemoteDisplayManager,
+                      photos_remote_display_manager,
+                      PHOTOS,
+                      REMOTE_DISPLAY_MANAGER,
+                      GObject);
 
 PhotosRemoteDisplayManager *photos_remote_display_manager_dup_singleton   (void);
 


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