[gnome-photos] search-controller: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] search-controller: Use G_DECLARE_FINAL_TYPE
- Date: Tue, 26 Sep 2017 10:09:47 +0000 (UTC)
commit c147df9834fb4e91bca4d78a42321d98476caedb
Author: Umang Jain <mailumangjain gmail com>
Date: Wed Sep 6 00:32:13 2017 +0530
search-controller: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-search-controller.c | 5 -----
src/photos-search-controller.h | 14 +-------------
2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-search-controller.c b/src/photos-search-controller.c
index 532c9b3..5017a99 100644
--- a/src/photos-search-controller.c
+++ b/src/photos-search-controller.c
@@ -37,11 +37,6 @@ struct _PhotosSearchController
gchar *str;
};
-struct _PhotosSearchControllerClass
-{
- GObjectClass parent_class;
-};
-
enum
{
SEARCH_STRING_CHANGED,
diff --git a/src/photos-search-controller.h b/src/photos-search-controller.h
index 12eb259..1cf707f 100644
--- a/src/photos-search-controller.h
+++ b/src/photos-search-controller.h
@@ -30,19 +30,7 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_SEARCH_CONTROLLER (photos_search_controller_get_type ())
-
-#define PHOTOS_SEARCH_CONTROLLER(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_SEARCH_CONTROLLER, PhotosSearchController))
-
-#define PHOTOS_IS_SEARCH_CONTROLLER(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_SEARCH_CONTROLLER))
-
-typedef struct _PhotosSearchController PhotosSearchController;
-typedef struct _PhotosSearchControllerClass PhotosSearchControllerClass;
-
-GType photos_search_controller_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosSearchController, photos_search_controller, PHOTOS, SEARCH_CONTROLLER, GObject)
PhotosSearchController *photos_search_controller_new (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]