[glade] Special case ignore gresource files in catalog path



commit 05b767855a4ed16c4b606cb493a3f2d7dca0fa55
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Sun Apr 14 00:18:46 2013 +0900

    Special case ignore gresource files in catalog path

 gladeui/glade-catalog.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/gladeui/glade-catalog.c b/gladeui/glade-catalog.c
index 0237bec..e7147a8 100644
--- a/gladeui/glade-catalog.c
+++ b/gladeui/glade-catalog.c
@@ -494,6 +494,12 @@ catalogs_from_path (GList *catalogs, const gchar *path)
           if (!g_str_has_suffix (filename, ".xml"))
             continue;
 
+         /* Special case, ignore gresource files (which are present
+          * while running tests)
+          */
+         if (g_str_has_suffix (filename, ".gresource.xml"))
+           continue;
+
           catalog_filename = g_build_filename (path, filename, NULL);
           catalog = catalog_open (catalog_filename);
           g_free (catalog_filename);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]