summaryrefslogtreecommitdiffstats
path: root/gtk/src
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/src')
-rw-r--r--gtk/src/callbacks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index 832551177..e4a0857a6 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -735,7 +735,7 @@ update_source_label(signal_user_data_t *ud, const gchar *source)
if (g_stat(filename, &stat_buf) == 0)
{
len = strlen(filename);
- if (stat_buf.st_mode & S_IFDIR)
+ if (S_ISDIR(stat_buf.st_mode))
{
// Skip dos drive letters
#if defined(_WIN32)
@@ -787,7 +787,7 @@ update_source_label(signal_user_data_t *ud, const gchar *source)
g_strfreev (path);
}
}
- else if (stat_buf.st_mode & S_IFBLK)
+ else if (S_ISBLK(stat_buf.st_mode))
{
// Is regular file or block dev.
// Check to see if it is a dvd image