}
///////////////////////////////////////////////////////////////////////////////
+ group { name: "elm/label/base/tooltip";
+ styles {
+ style { name: "tooltip_style";
+ base: "font=Sans font_size=8 color=#666 wrap=word";
+ tag: "br" "\n";
+ tag: "hilight" "+ font=Sans:style=Bold";
+ tag: "b" "+ font=Sans:style=Bold";
+ tag: "tab" "\t";
+ }
+ }
+ parts {
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ text {
+ style: "tooltip_style";
+ min: 1 1;
+ }
+ }
+ }
+ }
+ }
+
group { name: "elm/tooltip/base/default";
- //this group is a design similar to the inwin group
+ min: 30 30;
data {
- item: "pad_x" "5";
- item: "pad_y" "5";
- item: "pad_border_x" "10";
- item: "pad_border_y" "10";
+ item: "pad_x" "20";
+ item: "pad_y" "20";
+ item: "pad_border_x" "10";
+ item: "pad_border_y" "10";
+ item: "hide_timeout" "0.35"; /**< tooltip is hidden after this amount, keep in sync with hide animations */
}
images {
- image: "shad_circ.png" COMP;
- image: "bt_dis_base.png" COMP;
- image: "bt_dis_hilight.png" COMP;
+ image: "tooltip-base.png" COMP;
+ image: "tooltip-corner-top-left-tip.png" COMP;
+ image: "tooltip-corner-top-right-tip.png" COMP;
+ image: "tooltip-corner-bottom-left-tip.png" COMP;
+ image: "tooltip-corner-bottom-right-tip.png" COMP;
+ image: "tooltip-edge-left-tip.png" COMP;
+ image: "tooltip-edge-right-tip.png" COMP;
+ image: "tooltip-edge-bottom-tip.png" COMP;
+ image: "tooltip-edge-top-tip.png" COMP;
+ }
+ script {
+ hide_corners() {
+ set_state(PART:"corner-top-left", "default", 0.0);
+ set_state(PART:"corner-top-right", "default", 0.0);
+ set_state(PART:"corner-bottom-left", "default", 0.0);
+ set_state(PART:"corner-bottom-right", "default", 0.0);
+ }
+ hide_edges() {
+ set_state(PART:"clipper-edge-left", "default", 0.0);
+ set_state(PART:"clipper-edge-right", "default", 0.0);
+ set_state(PART:"clipper-edge-top", "default", 0.0);
+ set_state(PART:"clipper-edge-bottom", "default", 0.0);
+ }
+
+ show_corner_top_left() {
+ set_state(PART:"corner-top-left", "visible", 0.0);
+
+ set_state(PART:"corner-top-right", "default", 0.0);
+ set_state(PART:"corner-bottom-left", "default", 0.0);
+ set_state(PART:"corner-bottom-right", "default", 0.0);
+ hide_edges();
+ }
+ show_corner_top_right() {
+ set_state(PART:"corner-top-right", "visible", 0.0);
+
+ set_state(PART:"corner-top-left", "default", 0.0);
+ set_state(PART:"corner-bottom-left", "default", 0.0);
+ set_state(PART:"corner-bottom-right", "default", 0.0);
+ hide_edges();
+ }
+
+ show_corner_bottom_left() {
+ set_state(PART:"corner-bottom-left", "visible", 0.0);
+
+ set_state(PART:"corner-bottom-right", "default", 0.0);
+ set_state(PART:"corner-top-left", "default", 0.0);
+ set_state(PART:"corner-top-right", "default", 0.0);
+ hide_edges();
+ }
+ show_corner_bottom_right() {
+ set_state(PART:"corner-bottom-right", "visible", 0.0);
+
+ set_state(PART:"corner-bottom-left", "default", 0.0);
+ set_state(PART:"corner-top-left", "default", 0.0);
+ set_state(PART:"corner-top-right", "default", 0.0);
+ hide_edges();
+ }
+
+ show_edge_left(Float:val) {
+ set_state(PART:"clipper-edge-left", "visible", 0.0);
+ set_drag(PART:"edge-drag-left", 0.0, val);
+
+ set_state(PART:"clipper-edge-right", "default", 0.0);
+ set_state(PART:"clipper-edge-top", "default", 0.0);
+ set_state(PART:"clipper-edge-bottom", "default", 0.0);
+ hide_corners();
+ }
+ show_edge_right(Float:val) {
+ set_state(PART:"clipper-edge-right", "visible", 0.0);
+ set_drag(PART:"edge-drag-right", 0.0, val);
+
+ set_state(PART:"clipper-edge-left", "default", 0.0);
+ set_state(PART:"clipper-edge-top", "default", 0.0);
+ set_state(PART:"clipper-edge-bottom", "default", 0.0);
+ hide_corners();
+ }
+
+ show_edge_top(Float:val) {
+ set_state(PART:"clipper-edge-top", "visible", 0.0);
+ set_drag(PART:"edge-drag-top", val, 0.0);
+
+ set_state(PART:"clipper-edge-bottom", "default", 0.0);
+ set_state(PART:"clipper-edge-left", "default", 0.0);
+ set_state(PART:"clipper-edge-right", "default", 0.0);
+ hide_corners();
+ }
+ show_edge_bottom(Float:val) {
+ set_state(PART:"clipper-edge-bottom", "visible", 0.0);
+ set_drag(PART:"edge-drag-bottom", val, 0.0);
+
+ set_state(PART:"clipper-edge-top", "default", 0.0);
+ set_state(PART:"clipper-edge-left", "default", 0.0);
+ set_state(PART:"clipper-edge-right", "default", 0.0);
+ hide_corners();
+ }
+
+ public message(Msg_Type:type, id, ...) {
+ if ((type == MSG_FLOAT_SET) && (id == 1)) {
+ new Float:x, Float:y;
+
+ x = getfarg(2);
+ y = getfarg(3);
+
+ if (x < 0.0)
+ {
+ if (y < 0.0) show_corner_top_left();
+ else if (y > 1.0) show_corner_bottom_left();
+ else show_edge_left(y);
+ }
+ else if (x > 1.0)
+ {
+ if (y < 0.0) show_corner_top_right();
+ else if (y > 1.0) show_corner_bottom_right();
+ else show_edge_right(y);
+ }
+ else
+ {
+ if (y < 0.0) show_edge_top(x);
+ else if (y > 1.0) show_edge_bottom(x);
+ else
+ {
+ hide_corners();
+ hide_edges();
+ }
+ }
+ }
+ }
}
parts {
- part { name: "base";
+ part { name: "clipper";
type: RECT;
- mouse_events: 0;
- repeat_events: 1;
description { state: "default" 0.0;
- color: 0 0 0 64;
- rel1.offset: 10 10;
- rel2.offset: -10 -10;
- rel1.relative: 0.0 0.0;
- rel2.relative: 1.0 1.0;
- }
- }
- part { name: "shad";
- mouse_events: 0;
- description { state: "default" 0.0;
- image.normal: "shad_circ.png";
+ color: 255 255 255 0;
rel1.to: "elm.swallow.content";
rel1.offset: -64 -64;
rel2.to: "elm.swallow.content";
rel2.offset: 63 63;
- fill.smooth: 0;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
}
}
part { name: "pop";
- mouse_events: 1;
+ mouse_events: 0;
+ clip_to: "clipper";
description { state: "default" 0.0;
- rel1.to: "elm.swallow.content";
- rel1.offset: -5 -5;
- rel2.to: "elm.swallow.content";
- rel2.offset: 4 4;
+ min: 30 30;
+ rel1 {
+ to: "elm.swallow.content";
+ offset: -15 -15;
+ }
+ rel2 {
+ to: "elm.swallow.content";
+ offset: 14 14;
+ }
image {
- normal: "bt_dis_base.png";
- border: 4 4 4 4;
+ normal: "tooltip-base.png";
+ border: 14 14 14 14;
}
image.middle: SOLID;
}
}
- part { name: "popover";
- mouse_events: 0;
+
+#define TT_CORNER(name_, rx, ry, ax, ay, ox, oy) \
+ part { name: "corner-"name_; \
+ type: IMAGE; \
+ mouse_events: 0; \
+ clip_to: "clipper"; \
+ description { state: "default" 0.0; \
+ color: 255 255 255 0; \
+ visible: 0; \
+ min: 14 14; \
+ max: 14 14; \
+ align: ax ay; \
+ fixed: 1 1; \
+ rel1 { \
+ relative: rx ry; \
+ offset: ox oy; \
+ to: "elm.swallow.content"; \
+ } \
+ rel2 { \
+ relative: rx ry; \
+ offset: ox oy; \
+ to: "elm.swallow.content"; \
+ } \
+ image.normal: "tooltip-corner-"name_"-tip.png"; \
+ } \
+ description { state: "visible" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ visible: 1; \
+ } \
+ }
+ TT_CORNER("top-left", 0, 0, 1, 1, 4, 4);
+ TT_CORNER("top-right", 1, 0, 0, 1, -5, 4);
+ TT_CORNER("bottom-left", 0, 1, 1, 0, 4, -5);
+ TT_CORNER("bottom-right", 1, 1, 0, 0, -5, -5);
+#undef TT_CORNER
+
+#define TT_EDGE_VERT(name_, rx, ax, ox) \
+ part { name: "clipper-edge-"name_; \
+ type: RECT; \
+ clip_to: "clipper"; \
+ description { state: "default" 0.0; \
+ color: 255 255 255 0; \
+ visible: 0; \
+ min: 14 14; \
+ align: ax 0.5; \
+ fixed: 1 1; \
+ rel1 { \
+ relative: rx 0.0; \
+ offset: ox 0; \
+ to: "elm.swallow.content"; \
+ } \
+ rel2 { \
+ relative: rx 1.0; \
+ offset: ox 0; \
+ to: "elm.swallow.content"; \
+ } \
+ } \
+ description { state: "visible" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ visible: 1; \
+ } \
+ } \
+ part { name: "edge-area-"name_; \
+ type: RECT; \
+ mouse_events: 0; \
+ clip_to: "clipper-edge-"name_; \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ min: 14 14; \
+ align: ax 0.5; \
+ fixed: 1 1; \
+ rel1 { \
+ relative: rx 0.0; \
+ offset: ox 0; \
+ to: "elm.swallow.content"; \
+ } \
+ rel2 { \
+ relative: rx 1.0; \
+ offset: ox 0; \
+ to: "elm.swallow.content"; \
+ } \
+ } \
+ } \
+ part { name: "edge-drag-"name_; \
+ type: RECT; \
+ mouse_events: 0; \
+ clip_to: "clipper-edge-"name_; \
+ dragable { \
+ x: 0 0 0; \
+ y: 1 1 0; \
+ confine: "edge-area-"name_; \
+ } \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ min: 14 14; \
+ rel1.to: "edge-area-"name_; \
+ rel2.to: "edge-area-"name_; \
+ } \
+ } \
+ part { name: "edge-img-"name_; \
+ type: IMAGE; \
+ mouse_events: 0; \
+ clip_to: "clipper-edge-"name_; \
+ description { state: "default" 0.0; \
+ min: 14 14; \
+ max: 14 14; \
+ align: ax 0.5; \
+ fixed: 1 1; \
+ rel1.to: "edge-drag-"name_; \
+ rel2.to: "edge-drag-"name_; \
+ image.normal: "tooltip-edge-"name_"-tip.png"; \
+ } \
+ }
+ TT_EDGE_VERT("left", 0, 1, -2);
+ TT_EDGE_VERT("right", 1, 0, 1);
+#undef TT_EDGE_VERT
+
+#define TT_EDGE_HORIZ(name_, ry, ay, oy) \
+ part { name: "clipper-edge-"name_; \
+ type: RECT; \
+ clip_to: "clipper"; \
+ description { state: "default" 0.0; \
+ color: 255 255 255 0; \
+ visible: 0; \
+ min: 14 14; \
+ align: 0.5 ay; \
+ fixed: 1 1; \
+ rel1 { \
+ relative: 0.0 ry; \
+ offset: 0 oy; \
+ to: "elm.swallow.content"; \
+ } \
+ rel2 { \
+ relative: 1.0 ry; \
+ offset: 0 oy; \
+ to: "elm.swallow.content"; \
+ } \
+ } \
+ description { state: "visible" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ visible: 1; \
+ } \
+ } \
+ part { name: "edge-area-"name_; \
+ type: RECT; \
+ mouse_events: 0; \
+ clip_to: "clipper-edge-"name_; \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ min: 14 14; \
+ align: 0.5 ay; \
+ fixed: 1 1; \
+ rel1 { \
+ relative: 0.0 ry; \
+ offset: 0 oy; \
+ to: "elm.swallow.content"; \
+ } \
+ rel2 { \
+ relative: 1.0 ry; \
+ offset: 0 oy; \
+ to: "elm.swallow.content"; \
+ } \
+ } \
+ } \
+ part { name: "edge-drag-"name_; \
+ type: RECT; \
+ mouse_events: 0; \
+ clip_to: "clipper-edge-"name_; \
+ dragable { \
+ x: 1 1 0; \
+ y: 0 0 0; \
+ confine: "edge-area-"name_; \
+ } \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ min: 14 14; \
+ rel1.to: "edge-area-"name_; \
+ rel2.to: "edge-area-"name_; \
+ } \
+ } \
+ part { name: "edge-img-"name_; \
+ type: IMAGE; \
+ mouse_events: 0; \
+ clip_to: "clipper-edge-"name_; \
+ description { state: "default" 0.0; \
+ min: 14 14; \
+ max: 14 14; \
+ align: 0.5 ay; \
+ fixed: 1 1; \
+ rel1.to: "edge-drag-"name_; \
+ rel2.to: "edge-drag-"name_; \
+ image.normal: "tooltip-edge-"name_"-tip.png"; \
+ } \
+ }
+ TT_EDGE_HORIZ("top", 0, 1, -2);
+ TT_EDGE_HORIZ("bottom", 1, 0, 1);
+#undef TT_EDGE_HORIZ
+
+ part { name: "clipper_content";
+ type: RECT;
description { state: "default" 0.0;
- rel1.to: "pop";
- rel2.to: "pop";
- rel2.relative: 1.0 0.5;
- image {
- normal: "bt_dis_hilight.png";
- border: 4 4 4 0;
- }
+ color: 255 255 255 0;
+ rel1.to: "elm.swallow.content";
+ rel1.offset: -64 -64;
+ rel2.to: "elm.swallow.content";
+ rel2.offset: 63 63;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
}
}
part { name: "elm.swallow.content";
type: SWALLOW;
- description { state: "default" 0.0;
- rel1.to: "base";
- rel2.to: "base";
+ clip_to: "clipper_content";
+ description { state: "default" 0.0; }
+ }
+ programs {
+ program {
+ name: "show0";
+ signal: "elm,action,show";
+ source: "elm";
+ action: ACTION_STOP;
+ target: "hide0";
+ target: "hide1";
+ target: "hide2";
+ target: "hide3";
+ after: "show1";
+ after: "show2";
+ }
+ program {
+ name: "show1";
+ action: STATE_SET "visible" 0.0;
+ transition: LINEAR 0.15;
+ target: "clipper";
+ }
+ program {
+ name: "show2";
+ in: 0.1 0.0;
+ action: STATE_SET "visible" 0.0;
+ transition: LINEAR 0.15;
+ target: "clipper_content";
+ }
+
+ program {
+ name: "hide0";
+ signal: "elm,action,hide";
+ source: "elm";
+ action: ACTION_STOP;
+ target: "show0";
+ target: "show1";
+ target: "show2";
+ after: "hide1";
+ after: "hide2";
+ after: "hide3";
+ }
+ program {
+ name: "hide1";
+ script {
+ hide_corners();
+ hide_edges();
+ }
+ }
+ program {
+ name: "hide2";
+ action: STATE_SET "default" 0.0;
+ transition: LINEAR 0.1;
+ target: "clipper_content";
+ }
+ program {
+ name: "hide3";
+ in: 0.1 0.0;
+ action: STATE_SET "default" 0.0;
+ transition: LINEAR 0.1;
+ target: "clipper";
}
}
}
Evas_Object *owner;
Evas_Object *tooltip, *content;
Ecore_Timer *show_timer;
+ Ecore_Timer *hide_timer;
Ecore_Job *reconfigure_job;
- Ecore_Job *hide_job;
struct {
Evas_Coord x, y, bx, by;
} pad;
+ struct {
+ double x, y;
+ } rel_pos;
+ double hide_timeout; /* from theme */
Eina_Bool visible_lock:1;
Eina_Bool changed_style:1;
};
static void _elm_tooltip_reconfigure(Elm_Tooltip *tt);
static void _elm_tooltip_reconfigure_job_start(Elm_Tooltip *tt);
static void _elm_tooltip_reconfigure_job_stop(Elm_Tooltip *tt);
-static void _elm_tooltip_hide_job_start(Elm_Tooltip *tt);
-static void _elm_tooltip_hide_job_stop(Elm_Tooltip *tt);
+static void _elm_tooltip_hide_anim_start(Elm_Tooltip *tt);
+static void _elm_tooltip_hide_anim_stop(Elm_Tooltip *tt);
static void _elm_tooltip_show_timer_stop(Elm_Tooltip *tt);
static void _elm_tooltip_hide(Elm_Tooltip *tt);
static void
_elm_tooltip_show(Elm_Tooltip *tt)
{
+ if ((tt->hide_timer) && (tt->tooltip))
+ edje_object_signal_emit(tt->tooltip, "elm,action,show", "elm");
+
_elm_tooltip_show_timer_stop(tt);
- _elm_tooltip_hide_job_stop(tt);
+ _elm_tooltip_hide_anim_stop(tt);
if (tt->tooltip) return;
tt->tooltip = edje_object_add(tt->evas);
_elm_tooltip_hide(Elm_Tooltip *tt)
{
_elm_tooltip_show_timer_stop(tt);
- _elm_tooltip_hide_job_stop(tt);
+ _elm_tooltip_hide_anim_stop(tt);
_elm_tooltip_reconfigure_job_stop(tt);
if (!tt->tooltip) return;
(_elm_tooltip_reconfigure_job, tt);
}
-static void
-_elm_tooltip_hide_job(void *data)
+static Eina_Bool
+_elm_tooltip_hide_anim_cb(void *data)
{
Elm_Tooltip *tt = data;
- tt->hide_job = NULL;
- _elm_tooltip_hide(data);
+ tt->hide_timer = NULL;
+ _elm_tooltip_hide(tt);
+ return EINA_FALSE;
}
static void
-_elm_tooltip_hide_job_stop(Elm_Tooltip *tt)
+_elm_tooltip_hide_anim_start(Elm_Tooltip *tt)
{
- if (!tt->hide_job) return;
- ecore_job_del(tt->hide_job);
- tt->hide_job = NULL;
+ if (tt->hide_timer) return;
+ edje_object_signal_emit(tt->tooltip, "elm,action,hide", "elm");
+ tt->hide_timer = ecore_timer_add
+ (tt->hide_timeout, _elm_tooltip_hide_anim_cb, tt);
}
static void
-_elm_tooltip_hide_job_start(Elm_Tooltip *tt)
+_elm_tooltip_hide_anim_stop(Elm_Tooltip *tt)
{
- if (tt->hide_job) ecore_job_del(tt->hide_job);
- tt->hide_job = ecore_job_add(_elm_tooltip_hide_job, tt);
+ if (!tt->hide_timer) return;
+ ecore_timer_del(tt->hide_timer);
+ tt->hide_timer = NULL;
}
static void
{
Evas_Coord ox, oy, ow, oh, px, py, tx, ty, tw, th, cw, ch;
Evas_Coord eminw, eminh, ominw, ominh;
+ double rel_x, rel_y;
+ Eina_Bool inside_owner;
_elm_tooltip_reconfigure_job_stop(tt);
+ if (tt->hide_timer) return;
if (!tt->tooltip) return;
if (tt->changed_style)
{
return;
}
+ tt->rel_pos.x = 0;
+ tt->rel_pos.y = 0;
+
tt->pad.x = 0;
tt->pad.y = 0;
tt->pad.bx = 0;
tt->pad.by = 0;
+ tt->hide_timeout = 0.0;
str = edje_object_data_get(tt->tooltip, "pad_x");
if (str) tt->pad.x = atoi(str);
str = edje_object_data_get(tt->tooltip, "pad_border_y");
if (str) tt->pad.by = atoi(str);
+ str = edje_object_data_get(tt->tooltip, "hide_timeout");
+ if (str)
+ {
+ tt->hide_timeout = atof(str);
+ 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", tt->content);
+
+ edje_object_signal_emit(tt->tooltip, "elm,action,show", "elm");
}
if (!tt->content)
if (ominw < eminw) ominw = eminw;
if (ominh < eminh) ominh = eminh;
+ if (ominw < 1) ominw = 10; /* at least it is noticeable */
+ if (ominh < 1) ominh = 10; /* at least it is noticeable */
+
edje_object_size_min_restricted_calc
(tt->tooltip, &tw, &th, ominw, ominh);
evas_object_geometry_get(tt->owner, &ox, &oy, &ow, &oh);
- if ((px >= ox) && (py >= oy) && (px <= ox + ow) && (py <= oy + oh))
+ inside_owner = ((px >= ox) && (py >= oy) &&
+ (px <= ox + ow) && (py <= oy + oh));
+ if (inside_owner)
{
tx = px;
ty = py;
evas_object_move(tt->tooltip, tx, ty);
evas_object_resize(tt->tooltip, tw, th);
evas_object_show(tt->tooltip);
+
+ if (inside_owner)
+ {
+ rel_x = (px - tx) / (double)tw;
+ rel_y = (py - ty) / (double)th;
+ }
+ else
+ {
+ rel_x = (ox + (ow / 2) - tx) / (double)tw;
+ rel_y = (oy + (oh / 2) - ty) / (double)th;
+ }
+
+#define FDIF(a, b) (fabs((a) - (b)) > 0.0001)
+ if (FDIF(rel_x, tt->rel_pos.x) || FDIF(rel_y, tt->rel_pos.y))
+ {
+ Edje_Message_Float_Set *msg;
+
+ msg = alloca(sizeof(Edje_Message_Float_Set) + sizeof(double));
+ msg->count = 2;
+ msg->val[0] = rel_x;
+ msg->val[1] = rel_y;
+ tt->rel_pos.x = rel_x;
+ tt->rel_pos.y = rel_y;
+
+ edje_object_message_send(tt->tooltip, EDJE_MESSAGE_FLOAT_SET, 1, msg);
+ }
+#undef FDIF
}
static void
{
Elm_Tooltip *tt = data;
- _elm_tooltip_hide_job_stop(tt);
+ _elm_tooltip_hide_anim_stop(tt);
+
if ((tt->show_timer) || (tt->tooltip)) return;
tt->show_timer = ecore_timer_add
static void
_elm_tooltip_obj_mouse_out_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- _elm_tooltip_hide_job_start(data);
+ Elm_Tooltip *tt = data;
+
+ if (tt->visible_lock) return;
+
+ if (!tt->tooltip)
+ {
+ _elm_tooltip_show_timer_stop(tt);
+ return;
+ }
+
+ _elm_tooltip_hide_anim_start(tt);
}
static void
Evas_Object *label = elm_label_add(obj);
if (!label)
return NULL;
+ elm_object_style_set(label, "tooltip");
elm_label_label_set(label, data);
return label;
}
{
ELM_TOOLTIP_GET_OR_RETURN(tt, obj);
tt->visible_lock = EINA_FALSE;
- _elm_tooltip_hide_job_start(tt);
+ _elm_tooltip_hide_anim_start(tt);
}
/**
tt->data = data;
tt->del_cb = del_cb;
- if (!just_created)
- {
- _elm_tooltip_hide_job_stop(tt);
- _elm_tooltip_reconfigure_job_start(tt);
- }
+ if (!just_created) _elm_tooltip_reconfigure_job_start(tt);
return;
error: