fixed task 514, show file/folder permissions with emblems. Added Susan's

fixed task 514, show file/folder permissions with emblems.  Added
	Susan's images for "can't read" and "can't write", and made
	get_emblem_names return their names when appropriate
This commit is contained in:
Andy Hertzfeld 2000-05-22 23:47:28 +00:00
parent 84bad88707
commit 938da8dee4
6 changed files with 46 additions and 0 deletions

View file

@ -1,3 +1,17 @@
2000-05-22 Andy Hertzfeld <andy@eazel.com>
fixed task 514, show file/folder permissions with emblems.
* icons/Makefile.am:
* icons/emblem-noread.png:
* icons/emblem-nowrite.png:
added Susan's emblems for "cant read" and "cant write"
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_get_emblem_names):
made get_emblem_names return appropriate keywords when we can't
read the file or we can't write it.
2000-05-22 John Sullivan <sullivan@eazel.com>
* src/ntl-app.c: (display_prototype_caveat): Tweaked

View file

@ -14,6 +14,8 @@ icon_DATA = \
emblem-generic.png \
emblem-important.gif \
emblem-new.gif \
emblem-noread.png \
emblem-nowrite.png \
emblem-personal.gif \
emblem-remote.gif \
emblem-symbolic-link.png \

BIN
icons/emblem-noread.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 742 B

BIN
icons/emblem-nowrite.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 B

View file

@ -58,6 +58,8 @@ typedef enum {
} NautilusDateType;
#define EMBLEM_NAME_SYMBOLIC_LINK "symbolic-link"
#define EMBLEM_NAME_CANT_READ "noread"
#define EMBLEM_NAME_CANT_WRITE "nowrite"
enum {
CHANGED,
@ -1790,6 +1792,19 @@ nautilus_file_get_emblem_names (NautilusFile *file)
GList *names;
names = nautilus_file_get_keywords (file);
if (!nautilus_file_can_read (file)) {
names = g_list_prepend
(names, g_strdup (EMBLEM_NAME_CANT_READ));
}
if (!nautilus_file_can_write (file)) {
names = g_list_prepend
(names, g_strdup (EMBLEM_NAME_CANT_WRITE));
}
if (nautilus_file_is_symbolic_link (file)) {
names = g_list_prepend
(names, g_strdup (EMBLEM_NAME_SYMBOLIC_LINK));

View file

@ -58,6 +58,8 @@ typedef enum {
} NautilusDateType;
#define EMBLEM_NAME_SYMBOLIC_LINK "symbolic-link"
#define EMBLEM_NAME_CANT_READ "noread"
#define EMBLEM_NAME_CANT_WRITE "nowrite"
enum {
CHANGED,
@ -1790,6 +1792,19 @@ nautilus_file_get_emblem_names (NautilusFile *file)
GList *names;
names = nautilus_file_get_keywords (file);
if (!nautilus_file_can_read (file)) {
names = g_list_prepend
(names, g_strdup (EMBLEM_NAME_CANT_READ));
}
if (!nautilus_file_can_write (file)) {
names = g_list_prepend
(names, g_strdup (EMBLEM_NAME_CANT_WRITE));
}
if (nautilus_file_is_symbolic_link (file)) {
names = g_list_prepend
(names, g_strdup (EMBLEM_NAME_SYMBOLIC_LINK));