[gnome-photos] dlna-renderer: Use G_DECLARE_FINAL_TYPE



commit 4477b642ad7eb17b80e2f5bec0c69612b05ef16f
Author: Debarshi Ray <debarshir gnome org>
Date:   Sat Oct 8 09:32:41 2016 +0200

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

 src/photos-dlna-renderer.c |    5 -----
 src/photos-dlna-renderer.h |   15 ++-------------
 2 files changed, 2 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-dlna-renderer.c b/src/photos-dlna-renderer.c
index fe331b3..2fc7e84 100644
--- a/src/photos-dlna-renderer.c
+++ b/src/photos-dlna-renderer.c
@@ -43,11 +43,6 @@ struct _PhotosDlnaRenderer
   gchar *well_known_name;
 };
 
-struct _PhotosDlnaRendererClass
-{
-  GObjectClass parent_class;
-};
-
 enum
 {
   PROP_0,
diff --git a/src/photos-dlna-renderer.h b/src/photos-dlna-renderer.h
index 4886016..8a929ab 100644
--- a/src/photos-dlna-renderer.h
+++ b/src/photos-dlna-renderer.h
@@ -1,6 +1,7 @@
 /*
  * Photos - access, organize and share your photos on GNOME
  * Copyright © 2013 Intel Corporation. All rights reserved.
+ * Copyright © 2016 Red Hat, Inc.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -29,19 +30,7 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_DLNA_RENDERER (photos_dlna_renderer_get_type ())
-
-#define PHOTOS_DLNA_RENDERER(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_DLNA_RENDERER, PhotosDlnaRenderer))
-
-#define PHOTOS_IS_DLNA_RENDERER(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_DLNA_RENDERER))
-
-typedef struct _PhotosDlnaRenderer      PhotosDlnaRenderer;
-typedef struct _PhotosDlnaRendererClass PhotosDlnaRendererClass;
-
-GType                 photos_dlna_renderer_get_type           (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosDlnaRenderer, photos_dlna_renderer, PHOTOS, DLNA_RENDERER, GObject);
 
 void                  photos_dlna_renderer_new_for_bus        (GBusType             bus_type,
                                                                GDBusProxyFlags      flags,


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