[gnome-photos] tool-crop: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] tool-crop: Use G_DECLARE_FINAL_TYPE
- Date: Wed, 4 Jan 2017 20:40:36 +0000 (UTC)
commit 5ce42569f8477736c37206beeac7ff713e491821
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Jan 4 12:00:40 2017 +0100
tool-crop: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-tool-crop.c | 5 -----
src/photos-tool-crop.h | 16 ++--------------
2 files changed, 2 insertions(+), 19 deletions(-)
---
diff --git a/src/photos-tool-crop.c b/src/photos-tool-crop.c
index 81177a5..bf87922 100644
--- a/src/photos-tool-crop.c
+++ b/src/photos-tool-crop.c
@@ -85,11 +85,6 @@ struct _PhotosToolCrop
gulong size_allocate_id;
};
-struct _PhotosToolCropClass
-{
- PhotosToolClass parent_class;
-};
-
G_DEFINE_TYPE_WITH_CODE (PhotosToolCrop, photos_tool_crop, PHOTOS_TYPE_TOOL,
photos_utils_ensure_extension_points ();
diff --git a/src/photos-tool-crop.h b/src/photos-tool-crop.h
index ca7447a..c2b0e7d 100644
--- a/src/photos-tool-crop.h
+++ b/src/photos-tool-crop.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_CROP (photos_tool_crop_get_type ())
-
-#define PHOTOS_TOOL_CROP(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_TOOL_CROP, PhotosToolCrop))
-
-#define PHOTOS_IS_TOOL_CROP(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_TOOL_CROP))
-
-typedef struct _PhotosToolCrop PhotosToolCrop;
-typedef struct _PhotosToolCropClass PhotosToolCropClass;
-
-GType photos_tool_crop_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosToolCrop, photos_tool_crop, PHOTOS, TOOL_CROP, PhotosTool);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]