add API to FloatingTextEntry to force delete-on-focus-out
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user