forked from enlightenment/efl
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
This commit is contained in:
parent
8a7c154a57
commit
7d720f5ede
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue