discomfitor pushed a commit to branch master.

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

commit 7d720f5edecdd15df0162a6c486ab696bc66724b
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri Nov 18 11:02:42 2016 -0500

    elm_cursor: use cursor owner object when applying theme
    
    the eventarea is not guaranteed to be an elm object, and the docs clearly
    state that the owner object is used for theming
    
    @fix
---
 src/lib/elementary/els_cursor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elementary/els_cursor.c b/src/lib/elementary/els_cursor.c
index 6c007c7..9ffc4b7 100644
--- a/src/lib/elementary/els_cursor.c
+++ b/src/lib/elementary/els_cursor.c
@@ -723,7 +723,7 @@ void
 elm_cursor_theme(Elm_Cursor *cur)
 {
    if ((!cur) || (!cur->obj)) return;
-   if (!_elm_theme_object_set(cur->eventarea, cur->obj, "cursor",
+   if (!_elm_theme_object_set(cur->owner, cur->obj, "cursor",
                               cur->cursor_name, cur->style))
      ERR("Could not apply the theme to the cursor style=%s", cur->style);
    else

-- 


Reply via email to