summaryrefslogtreecommitdiffstats
path: root/src/inkview-main.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2018-10-28 17:07:34 +0000
committerTavmjong Bah <tavmjong@free.fr>2018-11-04 09:37:02 +0000
commit422ea274ba9ed5b038c767bceead4c38d8d78152 (patch)
treedbe228fdc5e4fdd99ec70a9ca1bb98e50fee69b2 /src/inkview-main.cpp
parentMerge branch 'fix-knot-selection' of gitlab.com:ao2/inkscape (diff)
downloadinkscape-422ea274ba9ed5b038c767bceead4c38d8d78152.tar.gz
inkscape-422ea274ba9ed5b038c767bceead4c38d8d78152.zip
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).
Diffstat (limited to 'src/inkview-main.cpp')
-rw-r--r--src/inkview-main.cpp28
1 files changed, 28 insertions, 0 deletions
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 :