summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-02-12 18:23:36 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-02-12 18:24:18 -0500
commitda827e343b12711449aff09f25f34d3ac3ea6ad1 (patch)
tree279153366af0f4aa09b40465d5c19a62ad8e9d10
parentfbcd2a561fb277805b903468e1996acc15ad63e3 (diff)
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
-rw-r--r--src/lib/els_tooltip.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/els_tooltip.c b/src/lib/els_tooltip.c
index 3cf56e6b8..f621e513a 100644
--- a/src/lib/els_tooltip.c
+++ b/src/lib/els_tooltip.c
@@ -156,6 +156,7 @@ _elm_tooltip_show(Elm_Tooltip *tt)
156 else 156 else
157 tt->tooltip = edje_object_add(tt->evas); 157 tt->tooltip = edje_object_add(tt->evas);
158 if (!tt->tooltip) return; 158 if (!tt->tooltip) return;
159 evas_object_pass_events_set(tt->tooltip, EINA_TRUE);
159 160
160 if (tt->free_size) 161 if (tt->free_size)
161 evas_object_layer_set(tt->tooltip, ELM_OBJECT_LAYER_TOOLTIP); 162 evas_object_layer_set(tt->tooltip, ELM_OBJECT_LAYER_TOOLTIP);
@@ -346,7 +347,6 @@ _elm_tooltip_reconfigure(Elm_Tooltip *tt)
346 if (tt->hide_timeout < 0.0) tt->hide_timeout = 0.0; 347 if (tt->hide_timeout < 0.0) tt->hide_timeout = 0.0;
347 } 348 }
348 349
349 evas_object_pass_events_set(tt->tooltip, EINA_TRUE);
350 tt->changed_style = EINA_FALSE; 350 tt->changed_style = EINA_FALSE;
351 if (tt->tooltip) 351 if (tt->tooltip)
352 edje_object_part_swallow(tt->tooltip, "elm.swallow.content", 352 edje_object_part_swallow(tt->tooltip, "elm.swallow.content",
@@ -377,7 +377,6 @@ _elm_tooltip_reconfigure(Elm_Tooltip *tt)
377 tt->tooltip = NULL; 377 tt->tooltip = NULL;
378 return; 378 return;
379 } 379 }
380 evas_object_pass_events_set(tt->content, EINA_TRUE);
381 edje_object_part_swallow 380 edje_object_part_swallow
382 (tt->tooltip, "elm.swallow.content", tt->content); 381 (tt->tooltip, "elm.swallow.content", tt->content);
383 evas_object_event_callback_add(tt->content, EVAS_CALLBACK_CHANGED_SIZE_HINTS, 382 evas_object_event_callback_add(tt->content, EVAS_CALLBACK_CHANGED_SIZE_HINTS,