From 5dc460fc1a72a3dfe83453f4c6683be20a1a2a2d Mon Sep 17 00:00:00 2001 From: Marvin W Date: Thu, 4 May 2017 22:05:48 +0200 Subject: libdino: remove dependency to GTK+ (all GTK+ code is in main+plugins) --- libdino/src/application.vala | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'libdino/src/application.vala') diff --git a/libdino/src/application.vala b/libdino/src/application.vala index c8834288..72dbfeae 100644 --- a/libdino/src/application.vala +++ b/libdino/src/application.vala @@ -1,13 +1,11 @@ -using Gtk; - using Dino.Entities; -public class Dino.Application : Gtk.Application { +public interface Dino.Application : GLib.Application { - public Database db; - public StreamInteractor stream_interaction; - public Plugins.Registry plugin_registry = new Plugins.Registry(); - public SearchPathGenerator? search_path_generator { get; set; } + public abstract Database db { get; set; } + public abstract StreamInteractor stream_interaction { get; set; } + public abstract Plugins.Registry plugin_registry { get; set; } + public abstract SearchPathGenerator? search_path_generator { get; set; } static string print_xmpp; @@ -16,7 +14,7 @@ public class Dino.Application : Gtk.Application { { null } }; - public Application() throws Error { + public void init() throws Error { if (DirUtils.create_with_parents(get_storage_dir(), 0700) == -1) { throw new Error(-1, 0, "Could not create storage dir \"%s\": %s", get_storage_dir(), FileUtils.error_from_errno(errno).to_string()); } -- cgit v1.2.3-70-g09d2