From 422ea274ba9ed5b038c767bceead4c38d8d78152 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Sun, 28 Oct 2018 18:07:34 +0100 Subject: Rewrite of inkview using InkApplication (Gtk::Application). Use Gio::File for accessing files. Use Gio options to handle command line arguments. Use Gio::Action's. Use Gtk::Builder for control window. Only create SPDocument when requested for display and then cache it (should speed up start-up). --- src/inkview-main.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/inkview-main.cpp (limited to 'src/inkview-main.cpp') diff --git a/src/inkview-main.cpp b/src/inkview-main.cpp new file mode 100644 index 000000000..ed694596d --- /dev/null +++ b/src/inkview-main.cpp @@ -0,0 +1,28 @@ +/* + * Inkview - An SVG file viewer. + * + * Copyright (C) 2018 Tavmjong Bah + * + * The contents of this file may be used under the GNU General Public License Version 2 or later. + * + */ + +#include "inkview-application.h" + +int main(int argc, char *argv[]) +{ + auto application = InkviewApplication::create(); + + return application->run(argc, argv); +} + +/* + Local Variables: + mode:c++ + c-file-style:"stroustrup" + c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) + indent-tabs-mode:nil + fill-column:99 + End: +*/ +// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 : -- cgit v1.2.3