hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=d57b173d394a28a954d57a7dc889c04faf71df59

commit d57b173d394a28a954d57a7dc889c04faf71df59
Author: Hermet Park <her...@hermet.pe.kr>
Date:   Wed Aug 3 18:34:48 2016 +0900

    file_tab: actually, list item allows to use tooltip.
---
 src/bin/file_tab.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/bin/file_tab.c b/src/bin/file_tab.c
index 514fcbe..e0cdb78 100644
--- a/src/bin/file_tab.c
+++ b/src/bin/file_tab.c
@@ -195,13 +195,11 @@ file_tab_it_add(Enventor_Item *enventor_it)
    elm_image_file_set(img, EDJE_PATH, "close");
    elm_object_content_set(btn, img);
 
-   //Tooltip Dummy object
-   Evas_Object *box = elm_image_add(fd->list);
-   elm_object_tooltip_text_set(box, ecore_file_realpath(filepath));
-   elm_object_tooltip_orient_set(box, ELM_TOOLTIP_ORIENT_TOP);
-
-   fti->it = elm_list_item_append(fd->list, filename, btn, box,
+   fti->it = elm_list_item_append(fd->list, filename, btn, NULL,
                                   list_item_selected_cb, fti);
+
+   elm_object_item_tooltip_text_set(fti->it, ecore_file_realpath(filepath));
+
    elm_list_go(fd->list);
 
    evas_object_smart_callback_add(btn, "clicked", close_btn_clicked_cb, fti);

-- 


Reply via email to