This patch deal with two cases:
1- Setting text in Entry (elm_entry_entry_set) , as the one get using (elm_entry_entry_get), caused the entry to become empty.
- becase entry string was free inside the elm_entry_entry_set function, without checking new passed string.
Now we check if same string was passed to the function, then nothing need to be changed.
// Old Behaviour : Entry will become empty // New Behaviour : Entry will Skip setting same text elm_entry_entry_set(app->entry, elm_entry_entry_get(app->entry));
2- Setting text in Entry (elm_entry_entry_set) , with same content string.
- internally entry will set empty string then set passed string, which will case recalculation and re-render the entry element.
Now we check if same string data that is passed to the function is the same of the entry content, then nothing need to be changed.
// This will be skiped internally since same text is set elm_entry_entry_set(app->entry, "aaaaa"); elm_entry_entry_set(app->entry, "aaaaa"); //skipped