[Goodies-commits] r6119 - xfburn/trunk/xfburn
David Mohr
squisher at xfce.org
Sun Nov 16 18:46:41 CET 2008
Author: squisher
Date: 2008-11-16 17:46:41 +0000 (Sun, 16 Nov 2008)
New Revision: 6119
Modified:
xfburn/trunk/xfburn/xfburn-data-composition.c
Log:
Allowing also special files to get added to the composition - does not completely work yet
Modified: xfburn/trunk/xfburn/xfburn-data-composition.c
===================================================================
--- xfburn/trunk/xfburn/xfburn-data-composition.c 2008-11-16 17:04:41 UTC (rev 6118)
+++ xfburn/trunk/xfburn/xfburn-data-composition.c 2008-11-16 17:46:41 UTC (rev 6119)
@@ -1009,13 +1009,13 @@
struct stat s;
- if ((stat (path, &s) == 0)) {
+ if ((g_lstat (path, &s) == 0)) {
gchar *basename = NULL;
gchar *humansize = NULL;
GtkTreeIter *parent = NULL;
GtkTreePath *tree_path = NULL;
- if (!S_ISDIR (s.st_mode) && !S_ISREG (s.st_mode)) {
+ if (!(S_ISDIR (s.st_mode) ||S_ISREG (s.st_mode) || S_ISCHR(s.st_mode) || S_ISBLK(s.st_mode) || S_ISLNK (s.st_mode))) {
return FALSE;
}
@@ -1076,7 +1076,7 @@
gdk_threads_leave ();
/* new directory */
- if (S_ISDIR (s.st_mode)) {
+ if (S_ISDIR (s.st_mode) && !S_ISLNK (s.st_mode)) {
GDir *dir = NULL;
GError *error = NULL;
const gchar *filename = NULL;
@@ -1132,7 +1132,7 @@
g_dir_close (dir);
}
/* new file */
- else if (S_ISREG (s.st_mode)) {
+ else if (S_ISREG (s.st_mode) || S_ISCHR(s.st_mode) || S_ISBLK(s.st_mode) || S_ISLNK (s.st_mode)) {
#ifdef HAVE_THUNAR_VFS
GdkScreen *screen;
GtkIconTheme *icon_theme;
More information about the Goodies-commits
mailing list