[gnome-photos] offset-search-controller: Make it a final class
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] offset-search-controller: Make it a final class
- Date: Wed, 15 Mar 2017 08:07:25 +0000 (UTC)
commit 6a310901f36889a2b68e3e634a1b385774535658
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Mar 15 08:59:31 2017 +0100
offset-search-controller: Make it a final class
src/photos-offset-search-controller.c | 11 +++++++++++
src/photos-offset-search-controller.h | 22 ----------------------
2 files changed, 11 insertions(+), 22 deletions(-)
---
diff --git a/src/photos-offset-search-controller.c b/src/photos-offset-search-controller.c
index b875733..2fe4fd0 100644
--- a/src/photos-offset-search-controller.c
+++ b/src/photos-offset-search-controller.c
@@ -32,6 +32,17 @@
#include "photos-search-context.h"
+struct _PhotosOffsetSearchController
+{
+ PhotosOffsetController parent_instance;
+};
+
+struct _PhotosOffsetSearchControllerClass
+{
+ PhotosOffsetControllerClass parent_class;
+};
+
+
G_DEFINE_TYPE (PhotosOffsetSearchController, photos_offset_search_controller, PHOTOS_TYPE_OFFSET_CONTROLLER);
diff --git a/src/photos-offset-search-controller.h b/src/photos-offset-search-controller.h
index 3d6d156..a4beeb3 100644
--- a/src/photos-offset-search-controller.h
+++ b/src/photos-offset-search-controller.h
@@ -35,35 +35,13 @@ G_BEGIN_DECLS
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
PHOTOS_TYPE_OFFSET_SEARCH_CONTROLLER, PhotosOffsetSearchController))
-#define PHOTOS_OFFSET_SEARCH_CONTROLLER_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST ((klass), \
- PHOTOS_TYPE_OFFSET_SEARCH_CONTROLLER, PhotosOffsetSearchControllerClass))
-
#define PHOTOS_IS_OFFSET_SEARCH_CONTROLLER(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
PHOTOS_TYPE_OFFSET_SEARCH_CONTROLLER))
-#define PHOTOS_IS_OFFSET_SEARCH_CONTROLLER_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE ((klass), \
- PHOTOS_TYPE_OFFSET_SEARCH_CONTROLLER))
-
-#define PHOTOS_OFFSET_SEARCH_CONTROLLER_GET_CLASS(obj) \
- (G_TYPE_INSTANCE_GET_CLASS ((obj), \
- PHOTOS_TYPE_OFFSET_SEARCH_CONTROLLER, PhotosOffsetSearchControllerClass))
-
typedef struct _PhotosOffsetSearchController PhotosOffsetSearchController;
typedef struct _PhotosOffsetSearchControllerClass PhotosOffsetSearchControllerClass;
-struct _PhotosOffsetSearchController
-{
- PhotosOffsetController parent_instance;
-};
-
-struct _PhotosOffsetSearchControllerClass
-{
- PhotosOffsetControllerClass parent_class;
-};
-
GType photos_offset_search_controller_get_type (void) G_GNUC_CONST;
PhotosOffsetController *photos_offset_search_controller_dup_singleton (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]