bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1ff0d6462bf26864b43fac37c494e7c6ed513486

commit 1ff0d6462bf26864b43fac37c494e7c6ed513486
Author: Marcel Hollerbach <[email protected]>
Date:   Fri Nov 10 15:15:57 2017 +0100

    elm_widget: add a new api for directly reevalulating widgets
    
    usefull if the provider changes
---
 src/lib/elementary/elm_priv.h   | 3 +++
 src/lib/elementary/elm_widget.c | 8 ++++++++
 2 files changed, 11 insertions(+)

diff --git a/src/lib/elementary/elm_priv.h b/src/lib/elementary/elm_priv.h
index 6097f0e0e1..c5a631f4d9 100644
--- a/src/lib/elementary/elm_priv.h
+++ b/src/lib/elementary/elm_priv.h
@@ -706,6 +706,9 @@ void                
*_elm_icon_signal_callback_del(Evas_Object *obj,
  void                _efl_ui_image_sizing_eval(Evas_Object *obj);
 /* end of DEPRECATED */
 
+/* DO NOT USE THIS this is only for performance optimization! */
+void                 _elm_widget_full_eval(Eo *obj);
+
 Eina_Bool _elm_config_accel_preference_parse(const char *pref, 
Eina_Stringshare **accel, int *gl_depth, int *gl_stencil, int *gl_msaa);
 
 extern char *_elm_appname;
diff --git a/src/lib/elementary/elm_widget.c b/src/lib/elementary/elm_widget.c
index cf0e8fd84e..c38c20228d 100644
--- a/src/lib/elementary/elm_widget.c
+++ b/src/lib/elementary/elm_widget.c
@@ -577,6 +577,14 @@ _full_eval(Eo *obj, Elm_Widget_Smart_Data *pd)
 
 }
 
+void
+_elm_widget_full_eval(Eo *obj)
+{
+   ELM_WIDGET_DATA_GET(obj, pd);
+
+   _full_eval(obj, pd);
+}
+
 /**
  * @internal
  *

-- 


Reply via email to