mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-08-25 02:36:07 +00:00
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:
parent
84bad88707
commit
938da8dee4
14
ChangeLog
14
ChangeLog
|
@ -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
|
||||
|
|
|
@ -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
BIN
icons/emblem-noread.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 742 B |
BIN
icons/emblem-nowrite.png
Normal file
BIN
icons/emblem-nowrite.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 442 B |
|
@ -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));
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue