[gnome-photos] selection-controller: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] selection-controller: Use G_DECLARE_FINAL_TYPE
- Date: Wed, 13 Sep 2017 09:24:49 +0000 (UTC)
commit dd2f4bfd4552c51ac7cf2d85d1ec7e9ab323e5e2
Author: Umang Jain <mailumangjain gmail com>
Date: Wed Sep 6 00:23:03 2017 +0530
selection-controller: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-selection-controller.c | 5 -----
src/photos-selection-controller.h | 14 +-------------
2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-selection-controller.c b/src/photos-selection-controller.c
index d4746b0..24b07f3 100644
--- a/src/photos-selection-controller.c
+++ b/src/photos-selection-controller.c
@@ -43,11 +43,6 @@ struct _PhotosSelectionController
gboolean is_frozen;
};
-struct _PhotosSelectionControllerClass
-{
- GObjectClass parent_class;
-};
-
enum
{
SELECTION_CHANGED,
diff --git a/src/photos-selection-controller.h b/src/photos-selection-controller.h
index 1a05452..5afd10c 100644
--- a/src/photos-selection-controller.h
+++ b/src/photos-selection-controller.h
@@ -30,19 +30,7 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_SELECTION_CONTROLLER (photos_selection_controller_get_type ())
-
-#define PHOTOS_SELECTION_CONTROLLER(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_SELECTION_CONTROLLER, PhotosSelectionController))
-
-#define PHOTOS_IS_SELECTION_CONTROLLER(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_SELECTION_CONTROLLER))
-
-typedef struct _PhotosSelectionController PhotosSelectionController;
-typedef struct _PhotosSelectionControllerClass PhotosSelectionControllerClass;
-
-GType photos_selection_controller_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosSelectionController, photos_selection_controller, PHOTOS, SELECTION_CONTROLLER,
GObject);
PhotosSelectionController *photos_selection_controller_dup_singleton (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]