aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_evas/ecore_evas_ews.c
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/lib/ecore_evas/ecore_evas_ews.c
parentEvas masking: Add forgotten file in previous commit (diff)
downloadefl-7171135792b1f443ef9f27818ab08dadfe3bf267.tar.gz
ecore evas should not crash when unsetting pointer
Diffstat (limited to 'src/lib/ecore_evas/ecore_evas_ews.c')
-rw-r--r--src/lib/ecore_evas/ecore_evas_ews.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/ecore_evas/ecore_evas_ews.c b/src/lib/ecore_evas/ecore_evas_ews.c
index afffa5e9f2..cf4e6e3113 100644
--- a/src/lib/ecore_evas/ecore_evas_ews.c
+++ b/src/lib/ecore_evas/ecore_evas_ews.c
@@ -407,6 +407,12 @@ _ecore_evas_ews_object_cursor_del(void *data, Evas *e EINA_UNUSED, Evas_Object *
}
static void
+_ecore_evas_ews_object_cursor_unset(Ecore_Evas *ee)
+{
+ evas_object_event_callback_del_full(ee->prop.cursor.object, EVAS_CALLBACK_DEL, _ecore_evas_ews_object_cursor_del, ee);
+}
+
+static void
_ecore_evas_ews_object_cursor_set(Ecore_Evas *ee, Evas_Object *obj, int layer, int hot_x, int hot_y)
{
int x, y;
@@ -671,6 +677,7 @@ static const Ecore_Evas_Engine_Func _ecore_ews_engine_func =
_ecore_evas_ews_size_base_set,
_ecore_evas_ews_size_step_set,
_ecore_evas_ews_object_cursor_set,
+ _ecore_evas_ews_object_cursor_unset,
_ecore_evas_ews_layer_set,
_ecore_evas_ews_focus_set,
_ecore_evas_ews_iconified_set,