The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Fix file chooser on Windows

These changes was commited to the Birdfont repository Tue, 14 Apr 2015 11:25:19 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Tue, 14 Apr 2015 11:25:19 +0000]

Updated Files

libbirdfont/FileDialogTab.vala
--- a/libbirdfont/FileDialogTab.vala +++ b/libbirdfont/FileDialogTab.vala @@ -105,8 +105,13 @@ } else if (row.get_index () == DIRECTORY) { return_if_fail (row.get_row_data () is SelectedFile); f = (SelectedFile) row.get_row_data (); + + if (f.file_name.index_of (":") > -1) { + propagate_files (f.file_name); + } else { + propagate_files (((!) current_dir.get_path ()) + "\\" + f.file_name); + } selected_filename = ""; - propagate_files (f.file_name); } show_text_area (selected_filename); @@ -171,6 +176,7 @@ layout (); base.selected_canvas (); + scroll_to (0); } public void show_text_area (string text) {