discomfitor pushed a commit to branch elementary-1.17.

http://git.enlightenment.org/core/elementary.git/commit/?id=ea1ab8af110dac7f0826b9ffd658c77edb4db44f

commit ea1ab8af110dac7f0826b9ffd658c77edb4db44f
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri Feb 12 18:23:36 2016 -0500

    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
---
 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 3cf56e6..f621e51 100644
--- a/src/lib/els_tooltip.c
+++ b/src/lib/els_tooltip.c
@@ -156,6 +156,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);
@@ -346,7 +347,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",
@@ -377,7 +377,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,

-- 


Reply via email to