summaryrefslogtreecommitdiff
path: root/libnautilus-extensions/nautilus-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnautilus-extensions/nautilus-file.c')
-rw-r--r--libnautilus-extensions/nautilus-file.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libnautilus-extensions/nautilus-file.c b/libnautilus-extensions/nautilus-file.c
index 384b53dee..c840cd7b4 100644
--- a/libnautilus-extensions/nautilus-file.c
+++ b/libnautilus-extensions/nautilus-file.c
@@ -25,6 +25,7 @@
#include <config.h>
#include "nautilus-file.h"
+#include "nautilus-annotation.h"
#include "nautilus-directory-metafile.h"
#include "nautilus-directory-notify.h"
#include "nautilus-directory-private.h"
@@ -1499,6 +1500,11 @@ prepend_automatic_emblem_names (NautilusFile *file,
{
/* Prepend in reverse order. */
+ if (nautilus_annotation_has_annotation (file) > 0) {
+ names = g_list_prepend
+ (names, g_strdup (NAUTILUS_FILE_EMBLEM_ANNOTATION));
+ g_message ("got annotation for %s", nautilus_file_get_uri (file));
+ }
if (nautilus_file_is_in_trash (file)) {
names = g_list_prepend
(names, g_strdup (NAUTILUS_FILE_EMBLEM_NAME_TRASH));