From a7e8ddfda30ecc1f7c9d448084efd5b472e34a1a Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 26 May 2015 14:00:40 +0800 Subject: [PATCH] src/Project/Gtk.vala --- src/Project/Gtk.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Project/Gtk.vala b/src/Project/Gtk.vala index a8712aa99..cbb017b56 100644 --- a/src/Project/Gtk.vala +++ b/src/Project/Gtk.vala @@ -194,7 +194,7 @@ namespace Project { var fn = next_file.get_display_name(); GLib.debug("SCAN %s - checking %s\n", dirname, fn); - if (!GLib.FileUtils.text(in_path + "/" + fn, GLib.FileTest.IS_REGULAR)) { + if (!GLib.FileUtils.test(in_path + "/" + fn, GLib.FileTest.IS_REGULAR)) { continue; } ret.add(in_path + "/" + fn); @@ -277,10 +277,10 @@ namespace Project { if (Regex.match_simple("\\.o$", fn)) { continue; } - if (Regex.match_simple("~$", fn)) { + if (Regex.match_simple("\\~$", fn)) { continue; } - if (Regex.match_simple("^.", GLib.File.get_basename(fn))) { + if (Regex.match_simple("^\\.", GLib.Path.get_basename(fn))) { continue; } if (Regex.match_simple("\\.vala$", fn)) { -- 2.39.2