Commit daf36bda authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

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)
parent ae6d3a22
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> 2004-08-14 Tor Lillqvist <tml@iki.fi>
* gtk/gtkfilechooserdefault.c (shortcuts_append_home, * gtk/gtkfilechooserdefault.c (shortcuts_append_home,
......
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> 2004-08-14 Tor Lillqvist <tml@iki.fi>
* gtk/gtkfilechooserdefault.c (shortcuts_append_home, * gtk/gtkfilechooserdefault.c (shortcuts_append_home,
......
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> 2004-08-14 Tor Lillqvist <tml@iki.fi>
* gtk/gtkfilechooserdefault.c (shortcuts_append_home, * gtk/gtkfilechooserdefault.c (shortcuts_append_home,
......
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> 2004-08-14 Tor Lillqvist <tml@iki.fi>
* gtk/gtkfilechooserdefault.c (shortcuts_append_home, * gtk/gtkfilechooserdefault.c (shortcuts_append_home,
......
...@@ -590,10 +590,14 @@ get_icon_type_from_stat (struct stat *statp) ...@@ -590,10 +590,14 @@ get_icon_type_from_stat (struct stat *statp)
return ICON_CHARACTER_DEVICE; return ICON_CHARACTER_DEVICE;
else if (S_ISDIR (statp->st_mode)) else if (S_ISDIR (statp->st_mode))
return ICON_DIRECTORY; return ICON_DIRECTORY;
#ifdef S_ISFIFO
else if (S_ISFIFO (statp->st_mode)) else if (S_ISFIFO (statp->st_mode))
return ICON_FIFO; return ICON_FIFO;
#endif
#ifdef S_ISSOCK
else if (S_ISSOCK (statp->st_mode)) else if (S_ISSOCK (statp->st_mode))
return ICON_SOCKET; return ICON_SOCKET;
#endif
else else
return ICON_REGULAR; return ICON_REGULAR;
} }
......
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