discomfitor pushed a commit to branch master.

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

commit f37b96a1de80c6f65306c96c6ebcdc69bafdbfa1
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Wed Apr 25 12:09:25 2018 -0400

    efl_ui_win: simplify checking theme version when adding frame
    
    Summary:
    the win has no theme set, so this would always return null
    Depends on D5956
    
    Reviewers: cedric
    
    Reviewed By: cedric
    
    Differential Revision: https://phab.enlightenment.org/D5957
---
 src/lib/elementary/efl_ui_win.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 9df122c193..ee9932c4d6 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -4245,7 +4245,7 @@ _elm_win_frame_add(Efl_Ui_Win_Data *sd, const char 
*element, const char *style)
    sd->frame_obj = edje_object_add(sd->evas);
 
    // Verify theme version. Border requires an exact theme API.
-   version = elm_theme_data_get(elm_widget_theme_get(sd->obj), "version");
+   version = elm_theme_data_get(NULL, "version");
    v = version ? atoi(version) : 0;
    if (EINA_LIKELY(v >= FRAME_OBJ_THEME_MIN_VERSION))
      {

-- 


Reply via email to