summaryrefslogtreecommitdiffstats
path: root/src/inkscape-main.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2018-11-12 20:22:44 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2018-11-18 12:39:15 +0000
commit408cb49b5559a81ea803df64bf58457a5dd4bf16 (patch)
treece3eac6a8bf8f641ba1c71b72f228080d201bb6d /src/inkscape-main.cpp
parentFix stream class locations (diff)
downloadinkscape-408cb49b5559a81ea803df64bf58457a5dd4bf16.tar.gz
inkscape-408cb49b5559a81ea803df64bf58457a5dd4bf16.zip
Rewrite of main.cpp using InkscapeApplication (Gtk::Application)
Use Gio::File for accessing files. Use Gio options to handle command line arguments. Use Gio::Actions for some command line arguments. Move file export code to src/io/file-export-cmd.h/.cpp. Make into class.
Diffstat (limited to 'src/inkscape-main.cpp')
-rw-r--r--src/inkscape-main.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/inkscape-main.cpp b/src/inkscape-main.cpp
new file mode 100644
index 000000000..52d3e7873
--- /dev/null
+++ b/src/inkscape-main.cpp
@@ -0,0 +1,36 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Inkscape - an ambitious vector drawing program
+ *
+ * Authors:
+ * Tavmjong Bah
+ *
+ * (C) 2018 Tavmjong Bah
+ *
+ * Released under GNU GPL v2+, read the file 'COPYING' for more information.
+ */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include "inkscape-application.h"
+
+
+int main(int argc, char *argv[])
+{
+ auto application = InkscapeApplication::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 :