tooltip: set pass events on the tooltip, not the content 74/65074/1
authorMike Blumenkrantz <zmike@osg.samsung.com>
Fri, 12 Feb 2016 23:23:36 +0000 (18:23 -0500)
committerShinwoo Kim <cinoo.kim@samsung.com>
Thu, 7 Apr 2016 07:03:43 +0000 (16:03 +0900)
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

index 32a8dca..df19ade 100644 (file)
@@ -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,