mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-22 06:36:29 +01:00
add API to FloatingTextEntry to force delete-on-focus-out
This commit is contained in:
parent
5b56cef0a7
commit
d6a74c4d96
2 changed files with 7 additions and 0 deletions
|
|
@ -61,6 +61,12 @@ FloatingTextEntry::changed ()
|
|||
entry_changed = true;
|
||||
}
|
||||
|
||||
void
|
||||
FloatingTextEntry::delete_on_focus_out ()
|
||||
{
|
||||
signal_focus_out_event().connect (sigc::mem_fun (*this, &FloatingTextEntry::entry_focus_out));
|
||||
}
|
||||
|
||||
void
|
||||
FloatingTextEntry::on_realize ()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ public:
|
|||
* - move to previous editable field.
|
||||
*/
|
||||
sigc::signal2<void,std::string,int> use_text;
|
||||
void delete_on_focus_out ();
|
||||
|
||||
private:
|
||||
Gtk::Entry entry;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue