From 04afb5d398b2c6a43c5eba28deaa11f8a379c23e Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Wed, 20 Jun 2018 15:10:35 +0300 Subject: [PATCH] Remove warnings. --- src/laview-core/object-plugins/ObjectDialog.vala | 2 +- src/laview-core/object-plugins/PreferencesDialog.vala | 2 +- src/laview-core/object-plugins/main.vala | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) 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); }