From b160e08f3d88b1355922120e13059124a2388ee9 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 12 Feb 2016 18:23:36 -0500 Subject: [PATCH] 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 --- src/lib/els_tooltip.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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, -- 2.7.4