mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
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
This commit is contained in:
parent
7935ee5b5c
commit
9e35fd628a
1 changed files with 2 additions and 1 deletions
|
@ -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 .");
|
||||
|
||||
|
|
Loading…
Reference in a new issue