elm_entry: do not execute entry theme apply before finalized
authorBowon Ryu <bowon.ryu@samsung.com>
Wed, 20 May 2020 05:59:54 +0000 (14:59 +0900)
committerJongmin Lee <jm105.lee@samsung.com>
Sun, 24 May 2020 21:37:13 +0000 (06:37 +0900)
theme apply is called in layout's finalize function.
therefore, entry theme apply is called during finalize.
for performance, it is fixed not to execute entry theme apply before
finalized.

@tizen_only

Change-Id: I222de8020fb90cdcbefce9eadbe2e93c43b2b074
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
src/lib/elementary/elm_entry.c

index 66ade0e..eda3233 100644 (file)
@@ -1248,6 +1248,10 @@ _elm_entry_efl_ui_widget_theme_apply(Eo *obj, Elm_Entry_Data *sd)
    theme_apply = efl_ui_widget_theme_apply(efl_cast(obj, EFL_UI_WIDGET_CLASS));
    if (theme_apply == EFL_UI_THEME_APPLY_ERROR_GENERIC) return EFL_UI_THEME_APPLY_ERROR_GENERIC;
 
+   // TIZEN_ONLY(20200520): do not execute theme apply before finalized for performance
+   if (!efl_finalized_get(obj)) return theme_apply;
+   //
+
    evas_event_freeze(evas_object_evas_get(obj));
 
    /****************************************************************************************************