[gnome-photos] tool-colors: Use G_DECLARE_FINAL_TYPE



commit 238a6c45b5bb8acb4de2b5f85cc12a0fdded3c18
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Jan 4 12:03:26 2017 +0100

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

 src/photos-tool-colors.c |    5 -----
 src/photos-tool-colors.h |   16 ++--------------
 2 files changed, 2 insertions(+), 19 deletions(-)
---
diff --git a/src/photos-tool-colors.c b/src/photos-tool-colors.c
index dab0639..92859d5 100644
--- a/src/photos-tool-colors.c
+++ b/src/photos-tool-colors.c
@@ -47,11 +47,6 @@ struct _PhotosToolColors
   guint saturation_value_changed_id;
 };
 
-struct _PhotosToolColorsClass
-{
-  PhotosToolClass parent_class;
-};
-
 
 G_DEFINE_TYPE_WITH_CODE (PhotosToolColors, photos_tool_colors, PHOTOS_TYPE_TOOL,
                          photos_utils_ensure_extension_points ();
diff --git a/src/photos-tool-colors.h b/src/photos-tool-colors.h
index f3d7475..5c4491e 100644
--- a/src/photos-tool-colors.h
+++ b/src/photos-tool-colors.h
@@ -1,6 +1,6 @@
 /*
  * Photos - access, organize and share your photos on GNOME
- * Copyright © 2015 – 2016 Red Hat, Inc.
+ * Copyright © 2015 – 2017 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
@@ -26,19 +26,7 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_TOOL_COLORS (photos_tool_colors_get_type ())
-
-#define PHOTOS_TOOL_COLORS(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_TOOL_COLORS, PhotosToolColors))
-
-#define PHOTOS_IS_TOOL_COLORS(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_TOOL_COLORS))
-
-typedef struct _PhotosToolColors      PhotosToolColors;
-typedef struct _PhotosToolColorsClass PhotosToolColorsClass;
-
-GType               photos_tool_colors_get_type           (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosToolColors, photos_tool_colors, PHOTOS, TOOL_COLORS, PhotosTool);
 
 G_END_DECLS
 


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