From 3cd1aa83f5b1493891b064c792b3f735a2a12278 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 26 May 2015 14:17:07 +0800 Subject: [PATCH] src/Project/Gtk.vala --- src/Project/Gtk.vala | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Project/Gtk.vala b/src/Project/Gtk.vala index 722da71ec..b8c07453d 100644 --- a/src/Project/Gtk.vala +++ b/src/Project/Gtk.vala @@ -183,7 +183,7 @@ namespace Project { try { var file_enum = dir.enumerate_children( - GLib.FileAttribute.STANDARD_DISPLAY_NAME, + "standard::*", GLib.FileQueryInfoFlags.NONE, null ); @@ -198,7 +198,10 @@ namespace Project { GLib.debug("SKIP %s not regular ", fn); continue; } - GLib.debug("SCAN ADD %s : %s", fn, fn.get_content_type()); + if (Regex.match_simple("^text\/", next_file.get_content_type()) { + continue; + } + GLib.debug("SCAN ADD %s : %s", fn, next_file.get_content_type()); ret.add(in_path + "/" + fn); // any other valid types??? -- 2.39.2