The Birdfont Source Code


All Repositories / birdfont.git / commit – 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
author Johan Mattsson <johan.mattsson.m@gmail.com>
Tue, 14 Apr 2015 11:25:19 +0000 (13:25 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Tue, 14 Apr 2015 11:25:19 +0000 (13:25 +0200)
commit 3aef5c99a8057aeb428c5de396f28a1006ab0fd0
tree 96d7dde11c4d257765e0c20a83dd98b1fc6bcfb4
parent a01904e684d0adf2016970bb96b0e1cc2d41b6be
Fix file chooser on Windows

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) {