diff --git a/src/laview-core/object-plugins/ObjectDialog.vala b/src/laview-core/object-plugins/ObjectDialog.vala index 8e72a50..ddfa429 100644 --- a/src/laview-core/object-plugins/ObjectDialog.vala +++ b/src/laview-core/object-plugins/ObjectDialog.vala @@ -1,7 +1,7 @@ namespace LAview.ObjectExample { using Gtk, LAview; - class MainDialog : Object { + public class MainDialog : Object { Dialog dialog; PreferencesDialog preferences_dialog; diff --git a/src/laview-core/object-plugins/PreferencesDialog.vala b/src/laview-core/object-plugins/PreferencesDialog.vala index 79fd374..62beeed 100644 --- a/src/laview-core/object-plugins/PreferencesDialog.vala +++ b/src/laview-core/object-plugins/PreferencesDialog.vala @@ -1,7 +1,7 @@ namespace LAview.ObjectExample { using Gtk, LAview; - class PreferencesDialog : GLib.Object { + public class PreferencesDialog : GLib.Object { Dialog dialog; public bool apply { get; private set; default = false; } diff --git a/src/laview-core/object-plugins/main.vala b/src/laview-core/object-plugins/main.vala index e103f7a..3a472de 100644 --- a/src/laview-core/object-plugins/main.vala +++ b/src/laview-core/object-plugins/main.vala @@ -30,6 +30,7 @@ namespace LAview.ObjectExample { */ ~Plugin () { stdout.puts ("ObjectExample.Plugin deinit () called\n"); + AppDirs.terminate(); } /** @@ -104,7 +105,7 @@ namespace LAview.ObjectExample { } [ModuleInit] -Type plugin_init (GLib.TypeModule type_module) { +public Type plugin_init (GLib.TypeModule type_module) { stdout.puts ("---ModuleInit called()---\n"); return typeof (LAview.ObjectExample.Plugin); }