summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-11-18 11:02:42 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-11-18 11:05:27 -0500
commit7d720f5edecdd15df0162a6c486ab696bc66724b (patch)
tree3af893435d45363ca74e3f11d5ff94024b0cf86e
parent8a7c154a57861afab62b4f87b250831df84d4f99 (diff)
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
-rw-r--r--src/lib/elementary/els_cursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/els_cursor.c b/src/lib/elementary/els_cursor.c
index 6c007c74ff..9ffc4b768a 100644
--- a/src/lib/elementary/els_cursor.c
+++ b/src/lib/elementary/els_cursor.c
@@ -723,7 +723,7 @@ void
723elm_cursor_theme(Elm_Cursor *cur) 723elm_cursor_theme(Elm_Cursor *cur)
724{ 724{
725 if ((!cur) || (!cur->obj)) return; 725 if ((!cur) || (!cur->obj)) return;
726 if (!_elm_theme_object_set(cur->eventarea, cur->obj, "cursor", 726 if (!_elm_theme_object_set(cur->owner, cur->obj, "cursor",
727 cur->cursor_name, cur->style)) 727 cur->cursor_name, cur->style))
728 ERR("Could not apply the theme to the cursor style=%s", cur->style); 728 ERR("Could not apply the theme to the cursor style=%s", cur->style);
729 else 729 else