[gnome-photos] properties-dialog: Use G_DECLARE_FINAL_TYPE



commit 8c3174b5e2dfe557ad05ea931c33d63096443507
Author: Umang Jain <mailumangjain gmail com>
Date:   Wed Sep 6 00:54:17 2017 +0530

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

 src/photos-properties-dialog.c |    5 -----
 src/photos-properties-dialog.h |   14 +-------------
 2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-properties-dialog.c b/src/photos-properties-dialog.c
index b0caf22..4a746c7 100644
--- a/src/photos-properties-dialog.c
+++ b/src/photos-properties-dialog.c
@@ -59,11 +59,6 @@ struct _PhotosPropertiesDialog
   guint title_entry_timeout;
 };
 
-struct _PhotosPropertiesDialogClass
-{
-  GtkDialogClass parent_class;
-};
-
 enum
 {
   PROP_0,
diff --git a/src/photos-properties-dialog.h b/src/photos-properties-dialog.h
index e69fec0..0b045ed 100644
--- a/src/photos-properties-dialog.h
+++ b/src/photos-properties-dialog.h
@@ -30,19 +30,7 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_PROPERTIES_DIALOG (photos_properties_dialog_get_type ())
-
-#define PHOTOS_PROPERTIES_DIALOG(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_PROPERTIES_DIALOG, PhotosPropertiesDialog))
-
-#define PHOTOS_IS_PROPERTIES_DIALOG(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_PROPERTIES_DIALOG))
-
-typedef struct _PhotosPropertiesDialog      PhotosPropertiesDialog;
-typedef struct _PhotosPropertiesDialogClass PhotosPropertiesDialogClass;
-
-GType               photos_properties_dialog_get_type           (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosPropertiesDialog, photos_properties_dialog, PHOTOS, PROPERTIES_DIALOG, GtkDialog)
 
 GtkWidget          *photos_properties_dialog_new                (GtkWindow *parent, const gchar *urn);
 


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