diff options
author | António Fernandes <antoniof@gnome.org> | 2018-03-06 16:44:31 +0000 |
---|---|---|
committer | António Fernandes <antoniojpfernandes@gmail.com> | 2018-03-13 22:38:45 +0000 |
commit | d6313c4aa66d39335ae65ff99428a25764b1e799 (patch) | |
tree | 6146440e1b3ce6394eb8c39c9bc2ac0b42189259 | |
parent | 1a054be5ffa26cea493703a2f5c726e5451b477a (diff) | |
download | nautilus-d6313c4aa66d39335ae65ff99428a25764b1e799.tar.gz |
tag-manager: Use custom tag for starred items
Currently we use nao:predefined-tag-favorite, which is used by other
applications (example: gnome-photos) to tag favorite content. As such,
favorite photos show up as starred files in Files.
This is not what we currently want, because Favoriting has a different
meaning and function than Starring.
Instead, create our own custom tag <urn:gnome:nautilus:starred>
and use that instead of nao:predefined-tag-favorite.
Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/277
(cherry picked from commit 9e35fd628ae9c949c57cae86b9b40c83d4ccbd60)
-rw-r--r-- | src/nautilus-tag-manager.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nautilus-tag-manager.c b/src/nautilus-tag-manager.c index db894bacc..869e4a347 100644 --- a/src/nautilus-tag-manager.c +++ b/src/nautilus-tag-manager.c @@ -67,7 +67,7 @@ enum LAST_SIGNAL }; -#define STARRED_TAG "nao:predefined-tag-favorite" +#define STARRED_TAG "<urn:gnome:nautilus:starred>" static guint signals[LAST_SIGNAL]; @@ -463,6 +463,7 @@ nautilus_tag_manager_insert_tag (NautilusTagManager *self, GString *query) { g_string_append (query, + "INSERT DATA { " STARRED_TAG " a nao:Tag .}\n" "INSERT { ?urn nao:hasTag " STARRED_TAG " }" "WHERE { ?urn a nfo:FileDataObject ; nie:url ?url ."); |