[shotwell] Fix a warning with newer valac
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] Fix a warning with newer valac
- Date: Wed, 19 Feb 2020 20:37:55 +0000 (UTC)
commit f4649d0558b3a293c3b69735094900c562d653da
Author: Jens Georg <mail jensge org>
Date: Wed Feb 19 21:37:25 2020 +0100
Fix a warning with newer valac
src/plugins/Plugins.vala | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/Plugins.vala b/src/plugins/Plugins.vala
index 6aff4616..fc566d38 100644
--- a/src/plugins/Plugins.vala
+++ b/src/plugins/Plugins.vala
@@ -39,8 +39,12 @@ private class ModuleRep {
private ModuleRep(File file) {
this.file = file;
-
+
+#if VALA_0_46
+ module = Module.open(file.get_path(), ModuleFlags.LAZY);
+#else
module = Module.open(file.get_path(), ModuleFlags.BIND_LAZY);
+#endif
}
~ModuleRep() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]