diff options
author | David Robillard <d@drobilla.net> | 2018-01-21 00:41:34 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-01-21 00:56:50 +0100 |
commit | a99b72e4adbc4c28fadc08d29299d99405f72db9 (patch) | |
tree | fb21f2cea8f5db1dc187cdbdd01f43e73bbddfff /src/gui/LoadGraphWindow.cpp | |
parent | 329f498d901f9be9c0c820749850f5277a17df5d (diff) | |
download | ingen-a99b72e4adbc4c28fadc08d29299d99405f72db9.tar.gz ingen-a99b72e4adbc4c28fadc08d29299d99405f72db9.tar.bz2 ingen-a99b72e4adbc4c28fadc08d29299d99405f72db9.zip |
Add FilePath class and remove use of glib path utilities
Diffstat (limited to 'src/gui/LoadGraphWindow.cpp')
-rw-r--r-- | src/gui/LoadGraphWindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/LoadGraphWindow.cpp b/src/gui/LoadGraphWindow.cpp index 10ddf436..b02ca510 100644 --- a/src/gui/LoadGraphWindow.cpp +++ b/src/gui/LoadGraphWindow.cpp @@ -88,9 +88,9 @@ LoadGraphWindow::LoadGraphWindow(BaseObjectType* cobject, property_select_multiple() = true; // Add global examples directory to "shortcut folders" (bookmarks) - const std::string examples_dir = Ingen::data_file_path("graphs"); + const FilePath examples_dir = Ingen::data_file_path("graphs"); if (Glib::file_test(examples_dir, Glib::FILE_TEST_IS_DIR)) { - add_shortcut_folder(examples_dir); + add_shortcut_folder(examples_dir.string()); } } @@ -175,7 +175,7 @@ LoadGraphWindow::ok_clicked() } _app->loader()->load_graph( - true, get_filename(), parent, symbol, _initial_data); + true, FilePath(get_filename()), parent, symbol, _initial_data); } else { std::list<Glib::ustring> uri_list = get_filenames(); @@ -194,7 +194,7 @@ LoadGraphWindow::ok_clicked() symbol = avoid_symbol_clash(symbol); _app->loader()->load_graph( - false, u, _graph->path(), symbol, _initial_data); + false, FilePath(URI(u).path()), _graph->path(), symbol, _initial_data); } } |