From: Mike Blumenkrantz Date: Fri, 12 Feb 2016 23:23:36 +0000 (-0500) Subject: tooltip: set pass events on the tooltip, not the content X-Git-Tag: accepted/tizen/common/20160408.185631~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F74%2F65074%2F1;p=platform%2Fupstream%2Felementary.git tooltip: set pass events on the tooltip, not the content tooltip content is swallowed, meaning that edje will be setting pass events based on the theme @fix Change-Id: I2ebae1c466d5dddf129812bcf13cae0aa3126011 --- diff --git a/src/lib/els_tooltip.c b/src/lib/els_tooltip.c index 32a8dca..df19ade 100644 --- a/src/lib/els_tooltip.c +++ b/src/lib/els_tooltip.c @@ -153,6 +153,7 @@ _elm_tooltip_show(Elm_Tooltip *tt) else tt->tooltip = edje_object_add(tt->evas); if (!tt->tooltip) return; + evas_object_pass_events_set(tt->tooltip, EINA_TRUE); if (tt->free_size) evas_object_layer_set(tt->tooltip, ELM_OBJECT_LAYER_TOOLTIP); @@ -343,7 +344,6 @@ _elm_tooltip_reconfigure(Elm_Tooltip *tt) if (tt->hide_timeout < 0.0) tt->hide_timeout = 0.0; } - evas_object_pass_events_set(tt->tooltip, EINA_TRUE); tt->changed_style = EINA_FALSE; if (tt->tooltip) edje_object_part_swallow(tt->tooltip, "elm.swallow.content", @@ -366,7 +366,6 @@ _elm_tooltip_reconfigure(Elm_Tooltip *tt) tt->tooltip = NULL; return; } - evas_object_pass_events_set(tt->content, EINA_TRUE); edje_object_part_swallow (tt->tooltip, "elm.swallow.content", tt->content); evas_object_event_callback_add(tt->content, EVAS_CALLBACK_CHANGED_SIZE_HINTS,