[gnome-photos] edit-palette: Use G_DECLARE_FINAL_TYPE



commit 0a65ab749914b27f0e4422df4c8b15d534b64a8b
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Nov 18 16:20:23 2016 +0100

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

 src/photos-edit-palette.c |    5 -----
 src/photos-edit-palette.h |   14 +-------------
 2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-edit-palette.c b/src/photos-edit-palette.c
index e794124..ff9c730 100644
--- a/src/photos-edit-palette.c
+++ b/src/photos-edit-palette.c
@@ -36,11 +36,6 @@ struct _PhotosEditPalette
   GList *tools;
 };
 
-struct _PhotosEditPaletteClass
-{
-  GtkListBoxClass parent_class;
-};
-
 enum
 {
   TOOL_CHANGED,
diff --git a/src/photos-edit-palette.h b/src/photos-edit-palette.h
index ffffdcc..e1e8a4a 100644
--- a/src/photos-edit-palette.h
+++ b/src/photos-edit-palette.h
@@ -26,19 +26,7 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_EDIT_PALETTE (photos_edit_palette_get_type ())
-
-#define PHOTOS_EDIT_PALETTE(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_EDIT_PALETTE, PhotosEditPalette))
-
-#define PHOTOS_IS_EDIT_PALETTE(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_EDIT_PALETTE))
-
-typedef struct _PhotosEditPalette      PhotosEditPalette;
-typedef struct _PhotosEditPaletteClass PhotosEditPaletteClass;
-
-GType                  photos_edit_palette_get_type               (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosEditPalette, photos_edit_palette, PHOTOS, EDIT_PALETTE, GtkListBox);
 
 GtkWidget             *photos_edit_palette_new                    (void);
 


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