[gnome-photos] tool-filter-button: Use G_DECLARE_FINAL_TYPE



commit a0e5d7c848f765acebf9954c2962166a96a25262
Author: Umang Jain <mailumangjain gmail com>
Date:   Tue Sep 5 01:46:11 2017 +0530

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

 src/photos-tool-filter-button.c |    5 -----
 src/photos-tool-filter-button.h |   14 +-------------
 2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-tool-filter-button.c b/src/photos-tool-filter-button.c
index 745ef72..e8e6e28 100644
--- a/src/photos-tool-filter-button.c
+++ b/src/photos-tool-filter-button.c
@@ -41,11 +41,6 @@ struct _PhotosToolFilterButton
   gchar *label;
 };
 
-struct _PhotosToolFilterButtonClass
-{
-  GtkBinClass parent_class;
-};
-
 enum
 {
   PROP_0,
diff --git a/src/photos-tool-filter-button.h b/src/photos-tool-filter-button.h
index c3754ca..4454858 100644
--- a/src/photos-tool-filter-button.h
+++ b/src/photos-tool-filter-button.h
@@ -26,19 +26,7 @@
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_TOOL_FILTER_BUTTON (photos_tool_filter_button_get_type ())
-
-#define PHOTOS_TOOL_FILTER_BUTTON(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-   PHOTOS_TYPE_TOOL_FILTER_BUTTON, PhotosToolFilterButton))
-
-#define PHOTOS_IS_TOOL_FILTER_BUTTON(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-   PHOTOS_TYPE_TOOL_FILTER_BUTTON))
-
-typedef struct _PhotosToolFilterButton      PhotosToolFilterButton;
-typedef struct _PhotosToolFilterButtonClass PhotosToolFilterButtonClass;
-
-GType                  photos_tool_filter_button_get_type               (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosToolFilterButton, photos_tool_filter_button, PHOTOS, TOOL_FILTER_BUTTON, GtkBin);
 
 GtkWidget             *photos_tool_filter_button_new                    (GtkWidget *group_member,
                                                                          const gchar *label);


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