summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines/sdl
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2015-02-06 17:54:08 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-02-06 17:54:08 -0500
commit7171135792b1f443ef9f27818ab08dadfe3bf267 (patch)
tree9b383682dff96ef24a32cd5df21f3cd843b930ac /src/modules/ecore_evas/engines/sdl
parent88e5369eeeba803d44374a577b09f34d5d0f3016 (diff)
ecore evas should not crash when unsetting pointer
ref D812 disappointed.jpg
Diffstat (limited to 'src/modules/ecore_evas/engines/sdl')
-rw-r--r--src/modules/ecore_evas/engines/sdl/ecore_evas_sdl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/ecore_evas/engines/sdl/ecore_evas_sdl.c b/src/modules/ecore_evas/engines/sdl/ecore_evas_sdl.c
index 4ffbf3d02e..9a0e69b712 100644
--- a/src/modules/ecore_evas/engines/sdl/ecore_evas_sdl.c
+++ b/src/modules/ecore_evas/engines/sdl/ecore_evas_sdl.c
@@ -404,6 +404,12 @@ _ecore_evas_object_cursor_del(void *data, Evas *e EINA_UNUSED, Evas_Object *obj
404} 404}
405 405
406static void 406static void
407_ecore_evas_object_cursor_unset(Ecore_Evas *ee)
408{
409 evas_object_event_callback_del_full(ee->prop.cursor.object, EVAS_CALLBACK_DEL, _ecore_evas_object_cursor_del, ee);
410}
411
412static void
407_ecore_evas_object_cursor_set(Ecore_Evas *ee, Evas_Object *obj, int layer, int hot_x, int hot_y) 413_ecore_evas_object_cursor_set(Ecore_Evas *ee, Evas_Object *obj, int layer, int hot_x, int hot_y)
408{ 414{
409 int x, y; 415 int x, y;
@@ -483,6 +489,7 @@ static Ecore_Evas_Engine_Func _ecore_sdl_engine_func =
483 NULL, 489 NULL,
484 NULL, 490 NULL,
485 _ecore_evas_object_cursor_set, 491 _ecore_evas_object_cursor_set,
492 _ecore_evas_object_cursor_unset,
486 NULL, 493 NULL,
487 NULL, 494 NULL,
488 NULL, 495 NULL,