fix some gtk filechooser issues
authorRobin Gareus <robin@gareus.org>
Tue, 5 May 2015 16:35:58 +0000 (18:35 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 5 May 2015 16:35:58 +0000 (18:35 +0200)
gtk2_ardour/option_editor.cc
gtk2_ardour/option_editor.h
gtk2_ardour/save_as_dialog.cc

index d49f8a3be0372864ab8d52691baa7205956cb4a3..54424b5ca3619a96677c2dbdc7bdadc4797f8e53 100644 (file)
@@ -485,7 +485,6 @@ DirectoryOption::DirectoryOption (string const & i, string const & n, sigc::slot
 {
        _file_chooser.set_action (Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER);
        _file_chooser.signal_selection_changed().connect (sigc::mem_fun (*this, &DirectoryOption::selection_changed));
-       _file_chooser.signal_current_folder_changed().connect (sigc::mem_fun (*this, &DirectoryOption::current_folder_set));
 }
 
 
@@ -509,9 +508,3 @@ DirectoryOption::selection_changed ()
 {
        _set (poor_mans_glob(_file_chooser.get_filename ()));
 }
-
-void
-DirectoryOption::current_folder_set ()
-{
-       _set (poor_mans_glob(_file_chooser.get_current_folder ()));
-}
index 9ab8132d2c116ea485a5c8bc0892553c0c6ccda2..13b0285c32a0c08c3aff73c67a36bb0341714615 100644 (file)
@@ -625,7 +625,6 @@ public:
 
 private:
        void selection_changed ();
-       void current_folder_set ();
        
        sigc::slot<std::string> _get; ///< slot to get the configuration variable's value
        sigc::slot<bool, std::string> _set;  ///< slot to set the configuration variable's value
index ca2c1f90fac18c0dcd769d12f54f2b5b503b9ba5..b537f85c1a2fe90548dae29b9a13e649939380d6 100644 (file)
@@ -85,7 +85,7 @@ SaveAsDialog::name_entry_changed ()
 string
 SaveAsDialog::new_parent_folder () const
 {
-       return new_parent_folder_selector.get_current_folder ();
+       return new_parent_folder_selector.get_filename ();
 }
 
 string