Commit 568761aa authored by Umang Jain's avatar Umang Jain Committed by Debarshi Ray
Browse files

search-match-manager: Use G_DECLARE_FINAL_TYPE

https://bugzilla.gnome.org/show_bug.cgi?id=763712
parent 8cafb6ac
...@@ -41,11 +41,6 @@ struct _PhotosSearchMatchManager ...@@ -41,11 +41,6 @@ struct _PhotosSearchMatchManager
PhotosSearchController *srch_cntrlr; PhotosSearchController *srch_cntrlr;
}; };
struct _PhotosSearchMatchManagerClass
{
PhotosBaseManagerClass parent_class;
};
enum enum
{ {
PROP_0, PROP_0,
......
...@@ -31,19 +31,11 @@ ...@@ -31,19 +31,11 @@
G_BEGIN_DECLS G_BEGIN_DECLS
#define PHOTOS_TYPE_SEARCH_MATCH_MANAGER (photos_search_match_manager_get_type ()) #define PHOTOS_TYPE_SEARCH_MATCH_MANAGER (photos_search_match_manager_get_type ())
G_DECLARE_FINAL_TYPE (PhotosSearchMatchManager,
#define PHOTOS_SEARCH_MATCH_MANAGER(obj) \ photos_search_match_manager,
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \ PHOTOS,
PHOTOS_TYPE_SEARCH_MATCH_MANAGER, PhotosSearchMatchManager)) SEARCH_MATCH_MANAGER,
PhotosBaseManager);
#define PHOTOS_IS_SEARCH_MATCH_MANAGER(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
PHOTOS_TYPE_SEARCH_MATCH_MANAGER))
typedef struct _PhotosSearchMatchManager PhotosSearchMatchManager;
typedef struct _PhotosSearchMatchManagerClass PhotosSearchMatchManagerClass;
GType photos_search_match_manager_get_type (void) G_GNUC_CONST;
PhotosBaseManager *photos_search_match_manager_new (PhotosSearchController *srch_cntrlr); PhotosBaseManager *photos_search_match_manager_new (PhotosSearchController *srch_cntrlr);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment