summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2015-03-05 11:35:03 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-03-05 11:35:41 -0500
commitbf96aadb2db50a14d6233aa6cdbe2b24a1351180 (patch)
treecea3935df7bf984f75f5152668602a496d37b43e
parentcb656ec20cfdc729a691b0201c6133188cbc9820 (diff)
cursor theme setting should use cur->owner instead of cur->eventarea for parent
owner is required to be an elm widget, eventarea is not
-rw-r--r--src/lib/els_cursor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/els_cursor.c b/src/lib/els_cursor.c
index 3e18fdeaa..c4eae4733 100644
--- a/src/lib/els_cursor.c
+++ b/src/lib/els_cursor.c
@@ -242,7 +242,7 @@ _elm_cursor_set(Elm_Cursor *cur)
242 if (!cur->use_engine) 242 if (!cur->use_engine)
243 { 243 {
244 if (!cur->obj) 244 if (!cur->obj)
245 _elm_cursor_obj_add(cur->eventarea, cur); 245 _elm_cursor_obj_add(cur->owner, cur);
246 if (cur->obj) 246 if (cur->obj)
247 ecore_evas_object_cursor_set(cur->ee, cur->obj, 247 ecore_evas_object_cursor_set(cur->ee, cur->obj,
248 ELM_OBJECT_LAYER_CURSOR, cur->hot_x, 248 ELM_OBJECT_LAYER_CURSOR, cur->hot_x,
@@ -355,7 +355,7 @@ _elm_cursor_cur_set(Elm_Cursor *cur)
355 INF("Using only engine cursors"); 355 INF("Using only engine cursors");
356 cur->use_engine = EINA_TRUE; 356 cur->use_engine = EINA_TRUE;
357 } 357 }
358 else if (_elm_cursor_obj_add(cur->eventarea, cur)) 358 else if (_elm_cursor_obj_add(cur->owner, cur))
359 { 359 {
360 _elm_cursor_set_hot_spots(cur); 360 _elm_cursor_set_hot_spots(cur);
361 cur->use_engine = EINA_FALSE; 361 cur->use_engine = EINA_FALSE;
@@ -541,7 +541,7 @@ elm_object_cursor_style_set(Evas_Object *obj, const char *style)
541 541
542 if (!cur->obj) 542 if (!cur->obj)
543 { 543 {
544 if (!_elm_cursor_obj_add(obj, cur)) 544 if (!_elm_cursor_obj_add(cur->owner, cur))
545 ERR("Could not create cursor object"); 545 ERR("Could not create cursor object");
546 else 546 else
547 _elm_cursor_set_hot_spots(cur); 547 _elm_cursor_set_hot_spots(cur);