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/ui/desktop/menubar.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/ui/desktop') diff --git a/src/ui/desktop/menubar.cpp b/src/ui/desktop/menubar.cpp index e9ef9e897..7300e8c3b 100644 --- a/src/ui/desktop/menubar.cpp +++ b/src/ui/desktop/menubar.cpp @@ -24,7 +24,8 @@ #include #include "inkscape.h" -#include "file.h" // sp_file_open +#include "inkscape-application.h" // Open recent + #include "message-context.h" #include "shortcuts.h" @@ -322,9 +323,9 @@ sp_recent_open(Gtk::RecentChooser* recentchooser) Glib::RefPtr file = Gio::File::create_for_uri(uri); - // To do: change sp_file_open to use Gio::File. - // To do: get rid of sp_file_open - sp_file_open(file->get_parse_name(), nullptr); + ConcreteInkscapeApplication* app = &(ConcreteInkscapeApplication::get_instance()); + + app->create_window(file); } // =================== Main Menu ================ -- cgit v1.2.3