From 408cb49b5559a81ea803df64bf58457a5dd4bf16 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Mon, 12 Nov 2018 21:22:44 +0100 Subject: 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. --- src/inkscape-main.cpp | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/inkscape-main.cpp (limited to 'src/inkscape-main.cpp') 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 : -- cgit v1.2.3