diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2019-02-15 12:07:06 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2019-02-15 12:07:06 +0000 |
| commit | 93ae542b95b3708e49a75aaa6f81943819e95f7e (patch) | |
| tree | 1fdb0613de56280bd1036e8eb2f7b96896ded948 /src/inkscape-main.cpp | |
| parent | Move all files except inkscape_main and inkview_main into shared library. (diff) | |
| download | inkscape-93ae542b95b3708e49a75aaa6f81943819e95f7e.tar.gz inkscape-93ae542b95b3708e49a75aaa6f81943819e95f7e.zip | |
Turn InkscapeApplication into singleton.
Diffstat (limited to 'src/inkscape-main.cpp')
| -rw-r--r-- | src/inkscape-main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inkscape-main.cpp b/src/inkscape-main.cpp index d4fe68bb8..3e008558f 100644 --- a/src/inkscape-main.cpp +++ b/src/inkscape-main.cpp @@ -21,9 +21,9 @@ int main(int argc, char *argv[]) { if (gtk_init_check(NULL, NULL)) - return (new ConcreteInkscapeApplication<Gtk::Application>())->run(argc, argv); + return (ConcreteInkscapeApplication<Gtk::Application>::get_instance()).run(argc, argv); else - return (new ConcreteInkscapeApplication<Gio::Application>())->run(argc, argv); + return (ConcreteInkscapeApplication<Gio::Application>::get_instance()).run(argc, argv); } /* |
