fix some gtk filechooser issues
This commit is contained in:
parent
7447843a33
commit
7005529886
@ -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.set_action (Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER);
|
||||||
_file_chooser.signal_selection_changed().connect (sigc::mem_fun (*this, &DirectoryOption::selection_changed));
|
_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 ()));
|
_set (poor_mans_glob(_file_chooser.get_filename ()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
DirectoryOption::current_folder_set ()
|
|
||||||
{
|
|
||||||
_set (poor_mans_glob(_file_chooser.get_current_folder ()));
|
|
||||||
}
|
|
||||||
|
@ -625,7 +625,6 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
void selection_changed ();
|
void selection_changed ();
|
||||||
void current_folder_set ();
|
|
||||||
|
|
||||||
sigc::slot<std::string> _get; ///< slot to get the configuration variable's value
|
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
|
sigc::slot<bool, std::string> _set; ///< slot to set the configuration variable's value
|
||||||
|
@ -85,7 +85,7 @@ SaveAsDialog::name_entry_changed ()
|
|||||||
string
|
string
|
||||||
SaveAsDialog::new_parent_folder () const
|
SaveAsDialog::new_parent_folder () const
|
||||||
{
|
{
|
||||||
return new_parent_folder_selector.get_current_folder ();
|
return new_parent_folder_selector.get_filename ();
|
||||||
}
|
}
|
||||||
|
|
||||||
string
|
string
|
||||||
|
Loading…
Reference in New Issue
Block a user