[gnome-photos] dlna-renderers-dialog: Use G_DECLARE_FINAL_TYPE



commit c190f5ba7b2589e26e4adac949a5de6f302ce50b
Author: Shivam Tripathi <shivam flash gmail com>
Date:   Fri Jul 8 00:44:02 2016 +0530

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

 src/photos-dlna-renderers-dialog.c |    5 -----
 src/photos-dlna-renderers-dialog.h |   18 +++++-------------
 2 files changed, 5 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-dlna-renderers-dialog.c b/src/photos-dlna-renderers-dialog.c
index 8454e05..69e2dbb 100644
--- a/src/photos-dlna-renderers-dialog.c
+++ b/src/photos-dlna-renderers-dialog.c
@@ -52,11 +52,6 @@ struct _PhotosDlnaRenderersDialog
   gchar *urn;
 };
 
-struct _PhotosDlnaRenderersDialogClass
-{
-  GtkDialogClass parent_class;
-};
-
 enum
 {
   PROP_0,
diff --git a/src/photos-dlna-renderers-dialog.h b/src/photos-dlna-renderers-dialog.h
index 026f3a0..78c8469 100644
--- a/src/photos-dlna-renderers-dialog.h
+++ b/src/photos-dlna-renderers-dialog.h
@@ -26,19 +26,11 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_DLNA_RENDERERS_DIALOG (photos_dlna_renderers_dialog_get_type ())
-
-#define PHOTOS_DLNA_RENDERERS_DIALOG(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_DLNA_RENDERERS_DIALOG, PhotosDlnaRenderersDialog))
-
-#define PHOTOS_IS_DLNA_RENDERERS_DIALOG(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_DLNA_RENDERERS_DIALOG))
-
-typedef struct _PhotosDlnaRenderersDialog      PhotosDlnaRenderersDialog;
-typedef struct _PhotosDlnaRenderersDialogClass PhotosDlnaRenderersDialogClass;
-
-GType               photos_dlna_renderers_dialog_get_type           (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosDlnaRenderersDialog,
+                      photos_dlna_renderers_dialog,
+                      PHOTOS,
+                      DLNA_RENDERERS_DIALOG,
+                      GtkDialog)
 
 GtkWidget          *photos_dlna_renderers_dialog_new                (GtkWindow *parent, const gchar *urn);
 


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