summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Hirt <daniel.hirt@samsung.com>2016-07-03 16:38:03 +0000
committerDaniel Hirt <daniel.hirt@samsung.com>2016-07-03 17:10:57 +0000
commit5c776eb534f33c8f0da5419a912e5935cec084b0 (patch)
tree4e9f8fe657906a2a5b19efe97e22f25a931db5f3 /src
parenteaee2413487c9ca31744cd3de4dc498189c7926c (diff)
Ui text: move defer call to a function
Make it easier to call/debug this.
Diffstat (limited to 'src')
-rw-r--r--src/lib/elementary/efl_ui_text.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/lib/elementary/efl_ui_text.c b/src/lib/elementary/efl_ui_text.c
index 87f1236..87c51f9 100644
--- a/src/lib/elementary/efl_ui_text.c
+++ b/src/lib/elementary/efl_ui_text.c
@@ -1192,6 +1192,15 @@ _deferred_recalc_job(void *data)
1192 _update_decorations(data); 1192 _update_decorations(data);
1193} 1193}
1194 1194
1195static inline void
1196_recalc_defer(Eo *obj)
1197{
1198 EFL_UI_TEXT_DATA_GET(obj, sd);
1199 ecore_job_del(sd->deferred_recalc_job);
1200 sd->deferred_recalc_job =
1201 ecore_job_add(_deferred_recalc_job, obj);
1202}
1203
1195EOLIAN static void 1204EOLIAN static void
1196_efl_ui_text_elm_layout_sizing_eval(Eo *obj, Efl_Ui_Text_Data *sd) 1205_efl_ui_text_elm_layout_sizing_eval(Eo *obj, Efl_Ui_Text_Data *sd)
1197{ 1206{
@@ -1268,9 +1277,7 @@ _efl_ui_text_elm_layout_sizing_eval(Eo *obj, Efl_Ui_Text_Data *sd)
1268 } 1277 }
1269 else 1278 else
1270 { 1279 {
1271 ecore_job_del(sd->deferred_recalc_job); 1280 _recalc_defer(obj);
1272 sd->deferred_recalc_job =
1273 ecore_job_add(_deferred_recalc_job, obj);
1274 } 1281 }
1275 1282
1276 evas_event_thaw(evas_object_evas_get(obj)); 1283 evas_event_thaw(evas_object_evas_get(obj));