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:
Mike Blumenkrantz 2016-11-18 11:02:42 -05:00
parent 8a7c154a57
commit 7d720f5ede
1 changed files with 1 additions and 1 deletions

View File

@ -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