diff options
author | Carl Hetherington <carl@carlh.net> | 2011-11-19 12:01:52 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-11-19 12:01:52 +0000 |
commit | d7b263f8c21cfdefd3e55b08f39e64ca3b64e32c (patch) | |
tree | 2205c9b3dab9f57040c3b351519d4b3569950a4b /gtk2_ardour/option_editor.cc | |
parent | 965f77aaeb1117bd829690a54dd94c789a9c03dd (diff) |
Wrestle a little more with the comedy FileChooserButton API
(should fix #4488).
git-svn-id: svn://localhost/ardour2/branches/3.0@10702 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/option_editor.cc')
-rw-r--r-- | gtk2_ardour/option_editor.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk2_ardour/option_editor.cc b/gtk2_ardour/option_editor.cc index acb8551960..dcae19ef77 100644 --- a/gtk2_ardour/option_editor.cc +++ b/gtk2_ardour/option_editor.cc @@ -326,13 +326,14 @@ DirectoryOption::DirectoryOption (string const & i, string const & n, sigc::slot { _file_chooser.set_action (Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER); _file_chooser.signal_file_set().connect (sigc::mem_fun (*this, &DirectoryOption::file_set)); + _file_chooser.signal_current_folder_changed().connect (sigc::mem_fun (*this, &DirectoryOption::current_folder_set)); } void DirectoryOption::set_state_from_config () { - _file_chooser.set_filename (_get ()); + _file_chooser.set_current_folder (_get ()); } void @@ -346,3 +347,9 @@ DirectoryOption::file_set () { _set (_file_chooser.get_filename ()); } + +void +DirectoryOption::current_folder_set () +{ + _set (_file_chooser.get_current_folder ()); +} |