From: Mikko Rasa Date: Tue, 17 Sep 2019 15:49:04 +0000 (+0300) Subject: Emit signal_text_changed from Entry::set_text X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=4ac5101da154d8130b606b4509c9750332365fef;p=libs%2Fgltk.git Emit signal_text_changed from Entry::set_text --- diff --git a/source/entry.cpp b/source/entry.cpp index 36658da..8b638de 100644 --- a/source/entry.cpp +++ b/source/entry.cpp @@ -56,7 +56,11 @@ void Entry::autosize_special(const Part &part, Geometry &ageom) const void Entry::set_text(const string &t) { - text = t; + if(t!=text.get()) + { + text = t; + signal_text_changed.emit(text.get()); + } set_edit_position(text.size()); }