summaryrefslogtreecommitdiff
path: root/src/nautilus-query.c
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2018-02-13 17:41:58 +0100
committerCarlos Soriano <csoriano@gnome.org>2018-02-13 20:11:55 +0100
commit27b039b37c1149fc8abbef6a683dd939e6f2bf1f (patch)
treefe7ee1652e0bbd04ffffb8ca9475ceb022192dff /src/nautilus-query.c
parent275512d574db3a5f5e1bdd7dbf2e64c1ebc83359 (diff)
downloadnautilus-27b039b37c1149fc8abbef6a683dd939e6f2bf1f.tar.gz
general: Rename from 'favorite' to 'starred'
It was a mix of both terms, given that tracker uses 'favorite' but we use 'starred' in the UI. Since the part that interact with tracker is minimal, is better to be consistent with the UI. This renames 'favorite' to 'starred' except the tracker queries.
Diffstat (limited to 'src/nautilus-query.c')
-rw-r--r--src/nautilus-query.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nautilus-query.c b/src/nautilus-query.c
index 62f7badbf..a88f52483 100644
--- a/src/nautilus-query.c
+++ b/src/nautilus-query.c
@@ -46,7 +46,7 @@ struct _NautilusQuery
GPtrArray *date_range;
NautilusQuerySearchType search_type;
NautilusQuerySearchContent search_content;
- gboolean search_favorite;
+ gboolean search_starred;
gboolean searching;
gboolean recursive;
@@ -344,7 +344,7 @@ nautilus_query_init (NautilusQuery *query)
query->location = g_file_new_for_path (g_get_home_dir ());
query->search_type = g_settings_get_enum (nautilus_preferences, "search-filter-time-type");
query->search_content = NAUTILUS_QUERY_SEARCH_CONTENT_SIMPLE;
- query->search_favorite = FALSE;
+ query->search_starred = FALSE;
g_mutex_init (&query->prepared_words_mutex);
}
@@ -553,20 +553,20 @@ nautilus_query_set_search_content (NautilusQuery *query,
}
gboolean
-nautilus_query_get_search_favorite (NautilusQuery *query)
+nautilus_query_get_search_starred (NautilusQuery *query)
{
g_return_val_if_fail (NAUTILUS_IS_QUERY (query), FALSE);
- return query->search_favorite;
+ return query->search_starred;
}
void
-nautilus_query_set_search_favorite (NautilusQuery *query,
- gboolean search_favorite)
+nautilus_query_set_search_starred (NautilusQuery *query,
+ gboolean search_starred)
{
g_return_if_fail (NAUTILUS_IS_QUERY (query));
- query->search_favorite = search_favorite;
+ query->search_starred = search_starred;
}
NautilusQuerySearchType