From 1602477dfd4371a17639b0b6e4f59f5a5ea9565a Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Fri, 15 Mar 2019 15:21:30 +0100 Subject: Make InkscapeApplication responsible for managing documents and windows. Any change from previous behavior is a bug. --- src/help.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/help.cpp') 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 #include -#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 file = Gio::File::create_for_path(filename); + ConcreteInkscapeApplication* app = &(ConcreteInkscapeApplication::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 " -- cgit v1.2.3