aboutsummaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2017-03-11 01:25:45 +0100
committerMarvin W <git@larma.de>2017-03-11 02:04:38 +0100
commit4c48bdc07291f55d7320721a5b0a29c092f7daa0 (patch)
tree2b7debd52adbbf25ebceb2721014e5dc6c61679f /main/src
parent1ccad732b9a783d8f0140373602b7c1b84d04198 (diff)
downloaddino-4c48bdc07291f55d7320721a5b0a29c092f7daa0.tar.gz
dino-4c48bdc07291f55d7320721a5b0a29c092f7daa0.zip
Improve Plugin API (allow to move encryption into plugin)
Diffstat (limited to 'main/src')
-rw-r--r--main/src/main.vala7
1 files changed, 4 insertions, 3 deletions
diff --git a/main/src/main.vala b/main/src/main.vala
index 80f9bea5..21e45bf4 100644
--- a/main/src/main.vala
+++ b/main/src/main.vala
@@ -5,16 +5,17 @@ namespace Dino {
void main(string[] args) {
Gtk.init(ref args);
- Dino.Ui.Application app = new Dino.Ui.Application();
- PluginLoader loader = new PluginLoader();
+ Application app = new Application();
+ Plugins.Loader loader = new Plugins.Loader();
foreach(string plugin in new string[]{}) {
try {
loader.load(plugin, app);
- } catch (Dino.PluginError e) {
+ } catch (Plugins.Error e) {
print(@"Error loading plugin $plugin: $(e.message)\n");
}
}
app.run(args);
+ loader.shutdown();
}
} \ No newline at end of file