Information panel



Hi,

while browsing through nautilus-sidebar-title.c, I noticed that
NAUTILUS_METADATA_KEY_NOTES is used instead of
NAUTILUS_METADATA_KEY_ANNOTATIONS to get file's notes in the sidebar
title. Is that on purpose?

IMHO this is a bug. The attached patch for nautilus-sidebar-title.c
fixes this and deletes NAUTILUS_METADATA_KEY_NOTES from
nautilus-metadata.h, since it's not used anywhere in the source code.

Best regards,

----
Stefano

Index: src/nautilus-sidebar-title.c
===================================================================
--- src/nautilus-sidebar-title.c	(revision 12801)
+++ src/nautilus-sidebar-title.c	(working copy)
@@ -533,7 +533,7 @@
 	char *text;
 	
 	text = nautilus_file_get_metadata (sidebar_title->details->file,
-					   NAUTILUS_METADATA_KEY_NOTES,
+					   NAUTILUS_METADATA_KEY_ANNOTATION,
 					   NULL);
 	gtk_label_set_text (GTK_LABEL (sidebar_title->details->notes), text);
 	g_free (text);
Index: libnautilus-private/nautilus-metadata.h
===================================================================
--- libnautilus-private/nautilus-metadata.h	(revision 12801)
+++ libnautilus-private/nautilus-metadata.h	(working copy)
@@ -63,7 +63,6 @@
 #define NAUTILUS_METADATA_KEY_SIDEBAR_TAB_COLOR		 	"sidebar_tab_color"
 #define NAUTILUS_METADATA_KEY_SIDEBAR_TITLE_TAB_COLOR	 	"sidebar_title_tab_color"
 
-#define NAUTILUS_METADATA_KEY_NOTES                      	"notes"
 #define NAUTILUS_METADATA_KEY_ANNOTATION                 	"annotation"
 #define NAUTILUS_METADATA_KEY_ICON_POSITION              	"icon_position"
 #define NAUTILUS_METADATA_KEY_ICON_SCALE                 	"icon_scale"


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