diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2019-03-15 14:21:30 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2019-03-15 14:21:30 +0000 |
| commit | 1602477dfd4371a17639b0b6e4f59f5a5ea9565a (patch) | |
| tree | 6f4561f58d15f8b6608897e232b37658143d46e6 /src/help.cpp | |
| parent | Improve deb generation and install scripts (diff) | |
| download | inkscape-1602477dfd4371a17639b0b6e4f59f5a5ea9565a.tar.gz inkscape-1602477dfd4371a17639b0b6e4f59f5a5ea9565a.zip | |
Make InkscapeApplication responsible for managing documents and windows.
Any change from previous behavior is a bug.
Diffstat (limited to 'src/help.cpp')
| -rw-r--r-- | src/help.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/help.cpp b/src/help.cpp index a32f8529a..5bfa282a9 100644 --- a/src/help.cpp +++ b/src/help.cpp @@ -15,7 +15,8 @@ #include <glibmm.h> #include <glibmm/i18n.h> -#include "file.h" +#include "inkscape-application.h" + #include "help.h" #include "io/resource.h" #include "io/sys.h" @@ -38,7 +39,9 @@ void sp_help_open_tutorial(Glib::ustring name) filename = get_filename(TUTORIALS, filename.c_str(), true); if (!filename.empty()) { - sp_file_open(filename.c_str(), nullptr, false, false); + Glib::RefPtr<Gio::File> file = Gio::File::create_for_path(filename); + ConcreteInkscapeApplication<Gtk::Application>* app = &(ConcreteInkscapeApplication<Gtk::Application>::get_instance()); + app->create_window(file, false, false); } else { sp_ui_error_dialog(_("The tutorial files are not installed.\nFor Linux, you may need to install " "'inkscape-tutorials'; for Windows, please re-run the setup and select 'Tutorials'.\nThe " |
