Commit a2700e08 authored by Rodney Dawes's avatar Rodney Dawes Committed by Rodney Dawes

Add the emblem-shared icon to be hidden in the emblems dialog and to be

2008-06-23  Rodney Dawes  <dobey.pwns@gmail.com>

	* libnautilus-private/nautilus-emblem-utils.c:
	(is_reserved_keyword, nautilus_emblem_should_show_in_list):
	* libnautilus-private/nautilus-file.h:
	Add the emblem-shared icon to be hidden in the emblems dialog and
	to be used as a reserved keyword as well


svn path=/trunk/; revision=14281
parent b25160ff
2008-06-23 Rodney Dawes <dobey.pwns@gmail.com>
* libnautilus-private/nautilus-emblem-utils.c:
(is_reserved_keyword, nautilus_emblem_should_show_in_list):
* libnautilus-private/nautilus-file.h:
Add the emblem-shared icon to be hidden in the emblems dialog and
to be used as a reserved keyword as well
2008-06-23 Cosimo Cecchi <cosimoc@gnome.org>
* configure.in: require libbeagle >= 0.2.4. (#351288).
......
......@@ -43,6 +43,7 @@
#define EMBLEM_NAME_NOREAD "emblem-noread"
#define EMBLEM_NAME_NOWRITE "emblem-nowrite"
#define EMBLEM_NAME_NOTE "emblem-note"
#define EMBLEM_NAME_SHARED "emblem-shared"
GList *
nautilus_emblem_list_available (void)
......@@ -97,6 +98,9 @@ is_reserved_keyword (const char *keyword)
if (g_ascii_strcasecmp (keyword, NAUTILUS_FILE_EMBLEM_NAME_NOTE) == 0) {
return TRUE;
}
if (g_ascii_strcasecmp (keyword, NAUTILUS_FILE_EMBLEM_NAME_SHARED) == 0) {
return TRUE;
}
available = nautilus_emblem_list_available ();
icon_name = nautilus_emblem_get_icon_name_from_keyword (keyword);
......@@ -127,6 +131,9 @@ nautilus_emblem_should_show_in_list (const char *emblem)
if (strcmp (emblem, EMBLEM_NAME_NOTE) == 0) {
return FALSE;
}
if (strcmp (emblem, EMBLEM_NAME_SHARED) == 0) {
return FALSE;
}
return TRUE;
}
......
......@@ -87,6 +87,7 @@ typedef enum {
#define NAUTILUS_FILE_EMBLEM_NAME_TRASH "trash"
#define NAUTILUS_FILE_EMBLEM_NAME_NOTE "note"
#define NAUTILUS_FILE_EMBLEM_NAME_DESKTOP "desktop"
#define NAUTILUS_FILE_EMBLEM_NAME_SHARED "shared"
typedef void (*NautilusFileCallback) (NautilusFile *file,
gpointer callback_data);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment