[nautilus/wip/gaction_: 31/38] search-directory: remove leftovers of saved search APIs
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/gaction_: 31/38] search-directory: remove leftovers of saved search APIs
- Date: Wed, 21 Jan 2015 13:21:23 +0000 (UTC)
commit 4e726ab5c2525be9648e28c88087f92733c957b7
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Jan 20 12:18:52 2015 -0800
search-directory: remove leftovers of saved search APIs
libnautilus-private/nautilus-file.c | 4 ----
libnautilus-private/nautilus-search-directory.c | 9 ---------
libnautilus-private/nautilus-search-directory.h | 5 -----
3 files changed, 0 insertions(+), 18 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c
index d0b7c75..b4a3ebd 100644
--- a/libnautilus-private/nautilus-file.c
+++ b/libnautilus-private/nautilus-file.c
@@ -2158,10 +2158,6 @@ update_info_internal (NautilusFile *file,
FALSE);
mime_type = g_file_info_get_content_type (info);
- if (g_strcmp0 (mime_type, NAUTILUS_SAVED_SEARCH_MIMETYPE) == 0) {
- g_file_info_set_file_type (info, G_FILE_TYPE_DIRECTORY);
- }
-
file_type = g_file_info_get_file_type (info);
if (file->details->type != file_type) {
changed = TRUE;
diff --git a/libnautilus-private/nautilus-search-directory.c b/libnautilus-private/nautilus-search-directory.c
index 0ec70e0..788faaf 100644
--- a/libnautilus-private/nautilus-search-directory.c
+++ b/libnautilus-private/nautilus-search-directory.c
@@ -38,7 +38,6 @@
struct NautilusSearchDirectoryDetails {
NautilusQuery *query;
- gboolean modified;
NautilusSearchEngine *engine;
@@ -881,8 +880,6 @@ nautilus_search_directory_set_query (NautilusSearchDirectory *search,
NautilusFile *file;
if (search->details->query != query) {
- search->details->modified = TRUE;
-
g_object_ref (query);
g_clear_object (&search->details->query);
search->details->query = query;
@@ -906,9 +903,3 @@ nautilus_search_directory_get_query (NautilusSearchDirectory *search)
return NULL;
}
-
-gboolean
-nautilus_search_directory_is_modified (NautilusSearchDirectory *search)
-{
- return search->details->modified;
-}
diff --git a/libnautilus-private/nautilus-search-directory.h b/libnautilus-private/nautilus-search-directory.h
index 6eb7e53..b14e828 100644
--- a/libnautilus-private/nautilus-search-directory.h
+++ b/libnautilus-private/nautilus-search-directory.h
@@ -53,11 +53,6 @@ GType nautilus_search_directory_get_type (void);
char *nautilus_search_directory_generate_new_uri (void);
-void nautilus_search_directory_set_saved_search (NautilusSearchDirectory *search,
- GFile *saved_search);
-gboolean nautilus_search_directory_is_saved_search (NautilusSearchDirectory *search);
-gboolean nautilus_search_directory_is_modified (NautilusSearchDirectory *search);
-
NautilusQuery *nautilus_search_directory_get_query (NautilusSearchDirectory *search);
void nautilus_search_directory_set_query (NautilusSearchDirectory *search,
NautilusQuery *query);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]