add API to FloatingTextEntry to force delete-on-focus-out

This commit is contained in:
Paul Davis 2025-07-09 21:57:40 -06:00
parent 5b56cef0a7
commit d6a74c4d96
2 changed files with 7 additions and 0 deletions

View file

@ -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 ()
{

View file

@ -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;