summaryrefslogtreecommitdiff
path: root/src/nautilus-search-directory.h
diff options
context:
space:
mode:
authorErnestas Kulik <ernestask@gnome.org>2017-08-24 16:22:54 +0300
committerErnestas Kulik <ernestask@gnome.org>2017-08-24 19:41:55 +0300
commitaff4e9281027d80c8d2b7555ada560e7ace3ce57 (patch)
tree3b2fb2535c5238038ddba6ce17ecd3883201d067 /src/nautilus-search-directory.h
parent2f762278b2d4ceac38c780feb3715d8e76f25947 (diff)
downloadnautilus-aff4e9281027d80c8d2b7555ada560e7ace3ce57.tar.gz
search-directory: use GLib type-definition macros
https://bugzilla.gnome.org/show_bug.cgi?id=786760
Diffstat (limited to 'src/nautilus-search-directory.h')
-rw-r--r--src/nautilus-search-directory.h27
1 files changed, 3 insertions, 24 deletions
diff --git a/src/nautilus-search-directory.h b/src/nautilus-search-directory.h
index a6b702bf8..00d67e4ae 100644
--- a/src/nautilus-search-directory.h
+++ b/src/nautilus-search-directory.h
@@ -26,31 +26,10 @@
#include "nautilus-query.h"
#define NAUTILUS_SEARCH_DIRECTORY_PROVIDER_NAME "search-directory-provider"
+#define NAUTILUS_TYPE_SEARCH_DIRECTORY (nautilus_search_directory_get_type ())
-#define NAUTILUS_TYPE_SEARCH_DIRECTORY nautilus_search_directory_get_type()
-#define NAUTILUS_SEARCH_DIRECTORY(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), NAUTILUS_TYPE_SEARCH_DIRECTORY, NautilusSearchDirectory))
-#define NAUTILUS_SEARCH_DIRECTORY_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_SEARCH_DIRECTORY, NautilusSearchDirectoryClass))
-#define NAUTILUS_IS_SEARCH_DIRECTORY(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NAUTILUS_TYPE_SEARCH_DIRECTORY))
-#define NAUTILUS_IS_SEARCH_DIRECTORY_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_SEARCH_DIRECTORY))
-#define NAUTILUS_SEARCH_DIRECTORY_GET_CLASS(obj) \
- (G_TYPE_INSTANCE_GET_CLASS ((obj), NAUTILUS_TYPE_SEARCH_DIRECTORY, NautilusSearchDirectoryClass))
-
-typedef struct NautilusSearchDirectoryDetails NautilusSearchDirectoryDetails;
-
-typedef struct {
- NautilusDirectory parent_slot;
- NautilusSearchDirectoryDetails *details;
-} NautilusSearchDirectory;
-
-typedef struct {
- NautilusDirectoryClass parent_slot;
-} NautilusSearchDirectoryClass;
-
-GType nautilus_search_directory_get_type (void);
+G_DECLARE_FINAL_TYPE (NautilusSearchDirectory, nautilus_search_directory,
+ NAUTILUS, SEARCH_DIRECTORY, NautilusDirectory)
char *nautilus_search_directory_generate_new_uri (void);