hermet pushed a commit to branch master.

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

commit d06a07b5745c37828adf38544bb51c3fdea67171
Author: Hermet Park <her...@hermet.pe.kr>
Date:   Fri Jan 8 15:27:50 2016 +0900

    fix the incorrect tooltip positor for tools.
    
    i have no idea when this bug was introduced.
    But previously, it worked perfectly.
    
    Anyhow, putting new code for fixing.
---
 src/bin/tools.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/bin/tools.c b/src/bin/tools.c
index 9789865..379643b 100644
--- a/src/bin/tools.c
+++ b/src/bin/tools.c
@@ -252,12 +252,18 @@ tools_init(Evas_Object *parent, Evas_Object *enventor)
 
    btn = tools_btn_create(box, "live_edit", _("Live View Edit (Ctrl + E)"),
                           live_edit_cb, enventor);
-   evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+   evas_object_size_hint_weight_set(btn, 0.0, EVAS_HINT_EXPAND);
    evas_object_size_hint_align_set(btn, 0.0, EVAS_HINT_FILL);
    elm_box_pack_end(box, btn);
    evas_object_data_set(box, "live_edit", btn);
    td->live_btn = btn;
 
+   //For a empty space
+   Evas_Object *rect = evas_object_rectangle_add(evas_object_evas_get(box));
+   evas_object_size_hint_weight_set(rect, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+   evas_object_size_hint_align_set(rect, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   elm_box_pack_end(box, rect);
+
    sp = elm_separator_add(box);
    evas_object_show(sp);
    elm_box_pack_end(box, sp);

-- 


Reply via email to