[gnome-photos] offset-overview-controller: Make it a final class
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] offset-overview-controller: Make it a final class
- Date: Thu, 2 Mar 2017 07:59:59 +0000 (UTC)
commit 7c9a47a38a7ff27e6bd71e53d3247529c989f576
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Mar 2 08:06:26 2017 +0100
offset-overview-controller: Make it a final class
src/photos-offset-overview-controller.c | 11 +++++++++++
src/photos-offset-overview-controller.h | 22 ----------------------
2 files changed, 11 insertions(+), 22 deletions(-)
---
diff --git a/src/photos-offset-overview-controller.c b/src/photos-offset-overview-controller.c
index d3fe8c3..ae08792 100644
--- a/src/photos-offset-overview-controller.c
+++ b/src/photos-offset-overview-controller.c
@@ -32,6 +32,17 @@
#include "photos-search-context.h"
+struct _PhotosOffsetOverviewController
+{
+ PhotosOffsetController parent_instance;
+};
+
+struct _PhotosOffsetOverviewControllerClass
+{
+ PhotosOffsetControllerClass parent_class;
+};
+
+
G_DEFINE_TYPE (PhotosOffsetOverviewController, photos_offset_overview_controller,
PHOTOS_TYPE_OFFSET_CONTROLLER);
diff --git a/src/photos-offset-overview-controller.h b/src/photos-offset-overview-controller.h
index 54b0ba2..9978e4d 100644
--- a/src/photos-offset-overview-controller.h
+++ b/src/photos-offset-overview-controller.h
@@ -35,35 +35,13 @@ G_BEGIN_DECLS
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
PHOTOS_TYPE_OFFSET_OVERVIEW_CONTROLLER, PhotosOffsetOverviewController))
-#define PHOTOS_OFFSET_OVERVIEW_CONTROLLER_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST ((klass), \
- PHOTOS_TYPE_OFFSET_OVERVIEW_CONTROLLER, PhotosOffsetOverviewControllerClass))
-
#define PHOTOS_IS_OFFSET_OVERVIEW_CONTROLLER(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
PHOTOS_TYPE_OFFSET_OVERVIEW_CONTROLLER))
-#define PHOTOS_IS_OFFSET_OVERVIEW_CONTROLLER_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE ((klass), \
- PHOTOS_TYPE_OFFSET_OVERVIEW_CONTROLLER))
-
-#define PHOTOS_OFFSET_OVERVIEW_CONTROLLER_GET_CLASS(obj) \
- (G_TYPE_INSTANCE_GET_CLASS ((obj), \
- PHOTOS_TYPE_OFFSET_OVERVIEW_CONTROLLER, PhotosOffsetOverviewControllerClass))
-
typedef struct _PhotosOffsetOverviewController PhotosOffsetOverviewController;
typedef struct _PhotosOffsetOverviewControllerClass PhotosOffsetOverviewControllerClass;
-struct _PhotosOffsetOverviewController
-{
- PhotosOffsetController parent_instance;
-};
-
-struct _PhotosOffsetOverviewControllerClass
-{
- PhotosOffsetControllerClass parent_class;
-};
-
GType photos_offset_overview_controller_get_type (void) G_GNUC_CONST;
PhotosOffsetController *photos_offset_overview_controller_dup_singleton (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]