13
0

fix some gtk filechooser issues

This commit is contained in:
Robin Gareus 2015-05-05 18:35:58 +02:00
parent 7447843a33
commit 7005529886
3 changed files with 1 additions and 9 deletions

View 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 ()));
}

View 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

View 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