summaryrefslogtreecommitdiff
path: root/giscanner/giscannermodule.c
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2012-04-09 12:24:49 -0300
committerJohan Dahlin <jdahlin@litl.com>2012-04-09 12:24:49 -0300
commit47d4e9509a8ffde1cab4a6f8d2be4ce232ba1cfb (patch)
tree33f78cab3ccc42687411161be3cd05e08e847bea /giscanner/giscannermodule.c
parente63866c2aea4338667a7e86c46f05864a991000d (diff)
downloadgobject-introspection-47d4e9509a8ffde1cab4a6f8d2be4ce232ba1cfb.tar.gz
Compare filenames using g_file_equal()
Makes it work on case-sensitive file systems such as HFS+. https://bugzilla.gnome.org/show_bug.cgi?id=667405
Diffstat (limited to 'giscanner/giscannermodule.c')
-rw-r--r--giscanner/giscannermodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/giscanner/giscannermodule.c b/giscanner/giscannermodule.c
index 81adbd8c..0da20f18 100644
--- a/giscanner/giscannermodule.c
+++ b/giscanner/giscannermodule.c
@@ -38,6 +38,8 @@
#include <windows.h>
#endif
+#include <glib-object.h>
+
DL_EXPORT(void) init_giscanner(void);
#define NEW_CLASS(ctype, name, cname) \
@@ -720,6 +722,8 @@ init_giscanner(void)
PyObject *m, *d;
gboolean is_uninstalled;
+ g_type_init ();
+
/* Hack to avoid having to create a fake directory structure; when
* running uninstalled, the module will be in the top builddir,
* with no _giscanner prefix.