aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2018-01-11 16:22:27 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2018-01-11 16:24:00 -0500
commit94270ffd939554d288ac93c346190490a375a54f (patch)
treead2598cba5bfadde3f4b8f4e9df792e8b423ed93
parentexplicitly show sandbox gadget extracted surfaces (diff)
downloadenlightenment-94270ffd939554d288ac93c346190490a375a54f.tar.gz
pass correct pointer to sandbox gadget tooltip destructor
fix crash when hiding tooltips
-rw-r--r--src/bin/e_gadget_runner.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/e_gadget_runner.c b/src/bin/e_gadget_runner.c
index b790ba4ae..b90da0e76 100644
--- a/src/bin/e_gadget_runner.c
+++ b/src/bin/e_gadget_runner.c
@@ -633,9 +633,9 @@ tooltip_hide(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info
Tooltip *tt = data;
elm_box_unpack_all(obj);
+ if (tt->tooltip_content) evas_object_hide(tt->tooltip_content);
tt->tooltip_content = NULL;
tt->tooltip_surface = NULL;
- evas_object_hide(data);
}
static Evas_Object *
@@ -646,7 +646,7 @@ tooltip_content_cb(void *data, Evas_Object *obj EINA_UNUSED, Evas_Object *toolti
bx = elm_box_add(tooltip);
evas_object_pass_events_set(bx, 1);
- evas_object_event_callback_add(bx, EVAS_CALLBACK_DEL, tooltip_hide, tt->tooltip_content);
+ evas_object_event_callback_add(bx, EVAS_CALLBACK_DEL, tooltip_hide, tt);
elm_box_pack_end(bx, tt->tooltip_content);
evas_object_show(tt->tooltip_content);
elm_box_recalculate(bx);