summaryrefslogtreecommitdiff
path: root/src/lib/elementary/els_tooltip.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/els_tooltip.c')
-rw-r--r--src/lib/elementary/els_tooltip.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/lib/elementary/els_tooltip.c b/src/lib/elementary/els_tooltip.c
index e4e53523ba..2defddeaa4 100644
--- a/src/lib/elementary/els_tooltip.c
+++ b/src/lib/elementary/els_tooltip.c
@@ -491,8 +491,14 @@ _elm_tooltip_reconfigure(Elm_Tooltip *tt)
491 491
492 tt->changed_style = EINA_FALSE; 492 tt->changed_style = EINA_FALSE;
493 if (tt->tooltip) 493 if (tt->tooltip)
494 edje_object_part_swallow(tt->tooltip, "elm.swallow.content", 494 {
495 tt->content); 495 if (elm_widget_is_legacy(tt->owner))
496 edje_object_part_swallow(tt->tooltip, "elm.swallow.content",
497 tt->content);
498 else
499 edje_object_part_swallow(tt->tooltip, "efl.content",
500 tt->content);
501 }
496 502
497 edje_object_signal_emit(tt->tooltip, "elm,action,show", "elm"); 503 edje_object_signal_emit(tt->tooltip, "elm,action,show", "elm");
498 } 504 }
@@ -519,11 +525,15 @@ _elm_tooltip_reconfigure(Elm_Tooltip *tt)
519 tt->tooltip = NULL; 525 tt->tooltip = NULL;
520 return; 526 return;
521 } 527 }
522 edje_object_part_swallow 528 if (elm_widget_is_legacy(tt->owner))
523 (tt->tooltip, "elm.swallow.content", tt->content); 529 edje_object_part_swallow
530 (tt->tooltip, "elm.swallow.content", tt->content);
531 else
532 edje_object_part_swallow
533 (tt->tooltip, "efl.content", tt->content);
524 new_content = EINA_TRUE; 534 new_content = EINA_TRUE;
525 evas_object_event_callback_add(tt->content, EVAS_CALLBACK_DEL, 535 evas_object_event_callback_add(tt->content, EVAS_CALLBACK_DEL,
526 _elm_tooltip_content_del_cb, tt); 536 _elm_tooltip_content_del_cb, tt);
527 537
528 /* tooltip has to use layer tooltip */ 538 /* tooltip has to use layer tooltip */
529 evas_object_layer_set(tt->tooltip, ELM_OBJECT_LAYER_TOOLTIP); 539 evas_object_layer_set(tt->tooltip, ELM_OBJECT_LAYER_TOOLTIP);