aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/elementary/test_tooltip.c
diff options
context:
space:
mode:
authorJeonghyun Yun <jh0506.yun@samsung.com>2017-09-19 17:05:15 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-19 17:05:15 +0900
commitcc691776f31f09e3012272c5bb02579efaaf1dc7 (patch)
treeaac2d3701ab6ed39f241b2275ee816ffb232e10d /src/bin/elementary/test_tooltip.c
parentanimation2: fix compile instruction (diff)
downloadefl-cc691776f31f09e3012272c5bb02579efaaf1dc7.tar.gz
els_tooltip: Fix to use some functions before tooltip_test_set or tooltip_content_cb_set
Summary: If user call tooltip_orient_set or tooltip_style_set or tooltip_window_mode_set before tooltip_test_set or tooltip_content_cb_set, those functions doesn't work. Because elm_tooltip will be created when tooltip_content_cb_set is called. I fixed logic to use some functions before tooltip_test_set or tooltip_content_cb_set. Test Plan: elementary_test -> Popups -> Tooltip Reviewers: jpeg, Jaehyun Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5183
Diffstat (limited to 'src/bin/elementary/test_tooltip.c')
-rw-r--r--src/bin/elementary/test_tooltip.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/elementary/test_tooltip.c b/src/bin/elementary/test_tooltip.c
index b93ffcc2a6..eb4ce890c1 100644
--- a/src/bin/elementary/test_tooltip.c
+++ b/src/bin/elementary/test_tooltip.c
@@ -231,8 +231,8 @@ _tt_orient_text_replace(void *data EINA_UNUSED,
{
case ELM_TOOLTIP_ORIENT_TOP_LEFT:
{
- elm_object_tooltip_text_set(obj, "Top Left");
elm_object_tooltip_orient_set(obj, ELM_TOOLTIP_ORIENT_TOP_LEFT);
+ elm_object_tooltip_text_set(obj, "Top Left");
printf("elm_object_tooltip_orient_get :: Orientation: ELM_TOOLTIP_ORIENT_TOP_LEFT\n");
break;
}
@@ -526,8 +526,8 @@ test_tooltip(void *data EINA_UNUSED,
bt = elm_button_add(win);
elm_object_text_set(bt, "Orient Tooltip, click to change");
- elm_object_tooltip_text_set(bt, "Top Left");
elm_object_tooltip_orient_set(bt, ELM_TOOLTIP_ORIENT_TOP_LEFT);
+ elm_object_tooltip_text_set(bt, "Top Left");
evas_object_smart_callback_add(bt, "clicked", _tt_orient_text_replace, NULL);
elm_box_pack_end(bx, bt);
evas_object_show(bt);
@@ -572,8 +572,8 @@ test_tooltip(void *data EINA_UNUSED,
bt = elm_button_add(win);
elm_object_text_set(bt, "Transparent Icon tooltip");
- elm_object_tooltip_content_cb_set(bt, _tt_icon, NULL, NULL);
elm_object_tooltip_style_set(bt, "transparent");
+ elm_object_tooltip_content_cb_set(bt, _tt_icon, NULL, NULL);
elm_box_pack_end(bx, bt);
evas_object_show(bt);
@@ -611,8 +611,8 @@ test_tooltip(void *data EINA_UNUSED,
lst = elm_list_add(win);
lit = elm_list_item_append(lst, "Hello", NULL, NULL, NULL, NULL);
- elm_object_item_tooltip_content_cb_set(lit, _tt_item_label, NULL, NULL);
elm_object_item_tooltip_window_mode_set(lit, EINA_TRUE);
+ elm_object_item_tooltip_content_cb_set(lit, _tt_item_label, NULL, NULL);
lit = elm_list_item_append(lst, "Icon Tooltip", NULL, NULL, NULL, NULL);
elm_object_item_tooltip_content_cb_set(lit, _tt_item_icon, NULL, NULL);
lit = elm_list_item_append(lst, "Big Icon Tooltip", NULL, NULL, NULL, NULL);