[gnome-photos] tool-enhance: Use G_DECLARE_FINAL_TYPE



commit 72027bf560ec30c282e462768cbb78abca686e9b
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Jan 4 12:05:38 2017 +0100

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

 src/photos-tool-enhance.c |    5 -----
 src/photos-tool-enhance.h |   16 ++--------------
 2 files changed, 2 insertions(+), 19 deletions(-)
---
diff --git a/src/photos-tool-enhance.c b/src/photos-tool-enhance.c
index 2bdacd4..95637f2 100644
--- a/src/photos-tool-enhance.c
+++ b/src/photos-tool-enhance.c
@@ -44,11 +44,6 @@ struct _PhotosToolEnhance
   guint sharpen_value_changed_id;
 };
 
-struct _PhotosToolEnhanceClass
-{
-  PhotosToolClass parent_class;
-};
-
 
 G_DEFINE_TYPE_WITH_CODE (PhotosToolEnhance, photos_tool_enhance, PHOTOS_TYPE_TOOL,
                          photos_utils_ensure_extension_points ();
diff --git a/src/photos-tool-enhance.h b/src/photos-tool-enhance.h
index af4c0ec..0b4a16a 100644
--- a/src/photos-tool-enhance.h
+++ b/src/photos-tool-enhance.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_ENHANCE (photos_tool_enhance_get_type ())
-
-#define PHOTOS_TOOL_ENHANCE(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_TOOL_ENHANCE, PhotosToolEnhance))
-
-#define PHOTOS_IS_TOOL_ENHANCE(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_TOOL_ENHANCE))
-
-typedef struct _PhotosToolEnhance      PhotosToolEnhance;
-typedef struct _PhotosToolEnhanceClass PhotosToolEnhanceClass;
-
-GType               photos_tool_enhance_get_type           (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosToolEnhance, photos_tool_enhance, PHOTOS, TOOL_ENHANCE, PhotosTool);
 
 G_END_DECLS
 


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