summaryrefslogtreecommitdiff
path: root/src/nautilus-search-engine-model.h
diff options
context:
space:
mode:
authorVyas Giridharan <vyasgiridhar27@gmail.com>2017-08-22 20:56:10 +0530
committerErnestas Kulik <ernestask@gnome.org>2017-08-23 09:32:20 +0300
commit588230863776fdb4eeff14217d707f6510cb1552 (patch)
treec9cb0cd1af6c003ea55a77a5ff8f8bdaaf30932b /src/nautilus-search-engine-model.h
parentccb8ed44b9186e0fcded42d5b884408fc5eb4ea0 (diff)
downloadnautilus-588230863776fdb4eeff14217d707f6510cb1552.tar.gz
search-engine-model: ported declaration to G_DECLARE*
This patch ports declaration of NautilusSearchEngineModel to the G_DECLARE* format. https://bugzilla.gnome.org/show_bug.cgi?id=771777
Diffstat (limited to 'src/nautilus-search-engine-model.h')
-rw-r--r--src/nautilus-search-engine-model.h21
1 files changed, 2 insertions, 19 deletions
diff --git a/src/nautilus-search-engine-model.h b/src/nautilus-search-engine-model.h
index 16f3388fc..3c98edf21 100644
--- a/src/nautilus-search-engine-model.h
+++ b/src/nautilus-search-engine-model.h
@@ -24,25 +24,8 @@
#include "nautilus-directory.h"
-#define NAUTILUS_TYPE_SEARCH_ENGINE_MODEL (nautilus_search_engine_model_get_type ())
-#define NAUTILUS_SEARCH_ENGINE_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NAUTILUS_TYPE_SEARCH_ENGINE_MODEL, NautilusSearchEngineModel))
-#define NAUTILUS_SEARCH_ENGINE_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_SEARCH_ENGINE_MODEL, NautilusSearchEngineModelClass))
-#define NAUTILUS_IS_SEARCH_ENGINE_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NAUTILUS_TYPE_SEARCH_ENGINE_MODEL))
-#define NAUTILUS_IS_SEARCH_ENGINE_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_SEARCH_ENGINE_MODEL))
-#define NAUTILUS_SEARCH_ENGINE_MODEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NAUTILUS_TYPE_SEARCH_ENGINE_MODEL, NautilusSearchEngineModelClass))
-
-typedef struct NautilusSearchEngineModelDetails NautilusSearchEngineModelDetails;
-
-typedef struct NautilusSearchEngineModel {
- GObject parent;
- NautilusSearchEngineModelDetails *details;
-} NautilusSearchEngineModel;
-
-typedef struct {
- GObjectClass parent_class;
-} NautilusSearchEngineModelClass;
-
-GType nautilus_search_engine_model_get_type (void);
+#define NAUTILUS_TYPE_SEARCH_ENGINE_MODEL (nautilus_search_engine_model_get_type ())
+G_DECLARE_FINAL_TYPE (NautilusSearchEngineModel, nautilus_search_engine_model, NAUTILUS, SEARCH_ENGINE_MODEL, GObject)
NautilusSearchEngineModel* nautilus_search_engine_model_new (void);
void nautilus_search_engine_model_set_model (NautilusSearchEngineModel *model,