[gnome-photos] tool-filters: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] tool-filters: Use G_DECLARE_FINAL_TYPE
- Date: Wed, 4 Jan 2017 20:40:51 +0000 (UTC)
commit e755b081019966c6bdf135dbce71f9d7c4949b71
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Jan 4 12:07:13 2017 +0100
tool-filters: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-tool-filters.c | 5 -----
src/photos-tool-filters.h | 16 ++--------------
2 files changed, 2 insertions(+), 19 deletions(-)
---
diff --git a/src/photos-tool-filters.c b/src/photos-tool-filters.c
index a093a71..f220dae 100644
--- a/src/photos-tool-filters.c
+++ b/src/photos-tool-filters.c
@@ -43,11 +43,6 @@ struct _PhotosToolFilters
guint create_preview_id;
};
-struct _PhotosToolFiltersClass
-{
- PhotosToolClass parent_class;
-};
-
G_DEFINE_TYPE_WITH_CODE (PhotosToolFilters, photos_tool_filters, PHOTOS_TYPE_TOOL,
photos_utils_ensure_extension_points ();
diff --git a/src/photos-tool-filters.h b/src/photos-tool-filters.h
index a052b9d..41ea974 100644
--- a/src/photos-tool-filters.h
+++ b/src/photos-tool-filters.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_FILTERS (photos_tool_filters_get_type ())
-
-#define PHOTOS_TOOL_FILTERS(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_TOOL_FILTERS, PhotosToolFilters))
-
-#define PHOTOS_IS_TOOL_FILTERS(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_TOOL_FILTERS))
-
-typedef struct _PhotosToolFilters PhotosToolFilters;
-typedef struct _PhotosToolFiltersClass PhotosToolFiltersClass;
-
-GType photos_tool_filters_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosToolFilters, photos_tool_filters, PHOTOS, TOOL_FILTERS, PhotosTool);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]