[gnome-photos] overview-searchbar: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] overview-searchbar: Use G_DECLARE_FINAL_TYPE
- Date: Tue, 26 Sep 2017 10:09:42 +0000 (UTC)
commit 81daaa5c7ab5393b3ca7b024a8c3dcb427c17022
Author: Umang Jain <mailumangjain gmail com>
Date: Tue Sep 5 05:20:14 2017 +0530
overview-searchbar: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=763712
src/photos-overview-searchbar.c | 5 -----
src/photos-overview-searchbar.h | 18 +++++-------------
2 files changed, 5 insertions(+), 18 deletions(-)
---
diff --git a/src/photos-overview-searchbar.c b/src/photos-overview-searchbar.c
index 6480d56..c1d8656 100644
--- a/src/photos-overview-searchbar.c
+++ b/src/photos-overview-searchbar.c
@@ -55,11 +55,6 @@ struct _PhotosOverviewSearchbar
PhotosSearchController *srch_cntrlr;
};
-struct _PhotosOverviewSearchbarClass
-{
- PhotosSearchbarClass parent_class;
-};
-
G_DEFINE_TYPE (PhotosOverviewSearchbar, photos_overview_searchbar, PHOTOS_TYPE_SEARCHBAR);
diff --git a/src/photos-overview-searchbar.h b/src/photos-overview-searchbar.h
index fec9de1..c342a69 100644
--- a/src/photos-overview-searchbar.h
+++ b/src/photos-overview-searchbar.h
@@ -30,19 +30,11 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_OVERVIEW_SEARCHBAR (photos_overview_searchbar_get_type ())
-
-#define PHOTOS_OVERVIEW_SEARCHBAR(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- PHOTOS_TYPE_OVERVIEW_SEARCHBAR, PhotosOverviewSearchbar))
-
-#define PHOTOS_IS_OVERVIEW_SEARCHBAR(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- PHOTOS_TYPE_OVERVIEW_SEARCHBAR))
-
-typedef struct _PhotosOverviewSearchbar PhotosOverviewSearchbar;
-typedef struct _PhotosOverviewSearchbarClass PhotosOverviewSearchbarClass;
-
-GType photos_overview_searchbar_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (PhotosOverviewSearchbar,
+ photos_overview_searchbar,
+ PHOTOS,
+ OVERVIEW_SEARCHBAR,
+ PhotosSearchbar);
GtkWidget *photos_overview_searchbar_new (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]