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/ui/desktop/menubar.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/ui/desktop/menubar.cpp')
| -rw-r--r-- | src/ui/desktop/menubar.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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 <iostream> #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<Gio::File> 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<Gtk::Application>* app = &(ConcreteInkscapeApplication<Gtk::Application>::get_instance()); + + app->create_window(file); } // =================== Main Menu ================ |
