[nautilus] file: don't automatically prepend a note emblem for annotated files



commit 151a96add6de63add7f570fa23001eddbe0ba6c0
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue May 8 11:58:04 2012 -0400

    file: don't automatically prepend a note emblem for annotated files
    
    Since we don't support editing notes in the UI anymore, it doesn't make
    sense to display a note emblem when the file is annotated.

 libnautilus-private/nautilus-file.c |   18 ------------------
 1 files changed, 0 insertions(+), 18 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c
index 7f7931a..2b42fc9 100644
--- a/libnautilus-private/nautilus-file.c
+++ b/libnautilus-private/nautilus-file.c
@@ -2896,19 +2896,6 @@ compare_by_directory_name (NautilusFile *file_1, NautilusFile *file_2)
 	return compare;
 }
 
-static gboolean
-file_has_note (NautilusFile *file)
-{
-	char *note;
-	gboolean res;
-
-	note = nautilus_file_get_metadata (file, NAUTILUS_METADATA_KEY_ANNOTATION, NULL);
-	res = note != NULL && note[0] != 0;
-	g_free (note);
-
-	return res;
-}
-
 static GList *
 prepend_automatic_keywords (NautilusFile *file,
 			    GList *names)
@@ -2918,11 +2905,6 @@ prepend_automatic_keywords (NautilusFile *file,
 
 	parent = nautilus_file_get_parent (file);
 
-	if (file_has_note (file)) {
-		names = g_list_prepend
-			(names, g_strdup (NAUTILUS_FILE_EMBLEM_NAME_NOTE));
-	}
-
 	/* Trash files are assumed to be read-only, 
 	 * so we want to ignore them here. */
 	if (!nautilus_file_can_write (file) &&



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]