Small fixes (upgrade Vala)

This commit is contained in:
Kolan Sh 2020-04-29 08:50:21 +03:00
parent 097e41f370
commit 090239180d
2 changed files with 3 additions and 2 deletions

View File

@ -34,7 +34,7 @@ namespace GObject {
* Loads the module. * Loads the module.
*/ */
public override bool load () { public override bool load () {
module = GLib.Module.open (path, GLib.ModuleFlags.BIND_LAZY); module = GLib.Module.open (path, GLib.ModuleFlags.LAZY);
if (null == module) { if (null == module) {
stderr.printf("Cannot load module %s\n", path); stderr.printf("Cannot load module %s\n", path);
return false; return false;

View File

@ -25,7 +25,8 @@ public class TypeA1 : PluginTypeA {
public override void method_a () { public override void method_a () {
stdout.puts ("TypeA1.method_a () called\n"); stdout.puts ("TypeA1.method_a () called\n");
stdout.puts ("Call IHostLoaderTest.method_host () from TypeA1:\n "); stdout.puts ("Call IHostLoaderTest.method_host () from TypeA1:\n ");
(host as IHostLoaderTest).method_host (); var test = host as IHostLoaderTest;
if (test != null) test.method_host ();
} }
} }