X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fentry.cpp;h=8b638dea2206f07fd4fb6bace8353c336fcc67c5;hb=4ac5101da154d8130b606b4509c9750332365fef;hp=36658dae18c0cf90bf73642a8ea77eab364f9ef1;hpb=01d30637b393b2f8a932b1d943076db580b1e951;p=libs%2Fgltk.git 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()); }