forked from AuroraMiddleware/gtk
Make the use of S_ISFIFO and S_ISSOCK conditional. (#150146, Gustavo
Sun Aug 15 02:31:55 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkfilesystemunix.c (get_icon_type_from_stat): Make the use of S_ISFIFO and S_ISSOCK conditional. (#150146, Gustavo Carneiro)
This commit is contained in:
parent
ae6d3a2214
commit
daf36bda93
@ -1,3 +1,9 @@
|
||||
Sun Aug 15 02:31:55 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkfilesystemunix.c (get_icon_type_from_stat): Make
|
||||
the use of S_ISFIFO and S_ISSOCK conditional. (#150146,
|
||||
Gustavo Carneiro)
|
||||
|
||||
2004-08-14 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (shortcuts_append_home,
|
||||
|
@ -1,3 +1,9 @@
|
||||
Sun Aug 15 02:31:55 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkfilesystemunix.c (get_icon_type_from_stat): Make
|
||||
the use of S_ISFIFO and S_ISSOCK conditional. (#150146,
|
||||
Gustavo Carneiro)
|
||||
|
||||
2004-08-14 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (shortcuts_append_home,
|
||||
|
@ -1,3 +1,9 @@
|
||||
Sun Aug 15 02:31:55 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkfilesystemunix.c (get_icon_type_from_stat): Make
|
||||
the use of S_ISFIFO and S_ISSOCK conditional. (#150146,
|
||||
Gustavo Carneiro)
|
||||
|
||||
2004-08-14 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (shortcuts_append_home,
|
||||
|
@ -1,3 +1,9 @@
|
||||
Sun Aug 15 02:31:55 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkfilesystemunix.c (get_icon_type_from_stat): Make
|
||||
the use of S_ISFIFO and S_ISSOCK conditional. (#150146,
|
||||
Gustavo Carneiro)
|
||||
|
||||
2004-08-14 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (shortcuts_append_home,
|
||||
|
@ -590,10 +590,14 @@ get_icon_type_from_stat (struct stat *statp)
|
||||
return ICON_CHARACTER_DEVICE;
|
||||
else if (S_ISDIR (statp->st_mode))
|
||||
return ICON_DIRECTORY;
|
||||
#ifdef S_ISFIFO
|
||||
else if (S_ISFIFO (statp->st_mode))
|
||||
return ICON_FIFO;
|
||||
#endif
|
||||
#ifdef S_ISSOCK
|
||||
else if (S_ISSOCK (statp->st_mode))
|
||||
return ICON_SOCKET;
|
||||
#endif
|
||||
else
|
||||
return ICON_REGULAR;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user