[498748] Only invoke a text's callback when really needed

* Do not mark a text field as dirty when rendering the current model
  state. When setting up the text field's content to the current state
  of the model, we must call Text.setText(), which triggers the
  ModifyListeners. But in this context we don't want to mark the widget
  as dirty, otherwise leaving the page would trigger the associated
  edition tool (hopefully it would be a no-op if the tool is properly
  idempotent, but it's still bad for performance).

* Avoid calling the callback associated with the text widget on every
  focusLost is the text was not actually changed.

Bug: 498748
Change-Id: I9434e80b8a004e859b7373e728f9b69b4ca7dc86
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
1 file changed
tree: 7607c13e052e694e27c2ae939a4a5f69f4fa9eaa
  1. doc/
  2. features/
  3. plugins/
  4. prototypes/
  5. releng/
  6. samples/
  7. tests/
  8. .gitignore