billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=0895a1e608b55e34826cf64715479f8261a1c28b

commit 0895a1e608b55e34826cf64715479f8261a1c28b
Author: Boris Faure <bill...@gmail.com>
Date:   Wed Mar 18 18:21:23 2015 +0100

    should set "hand2" cursor on links but doesn't work
---
 data/themes/default.edc | 7 +++++++
 src/bin/termio.c        | 5 +++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/data/themes/default.edc b/data/themes/default.edc
index 37d1d9f..5bac2cd 100644
--- a/data/themes/default.edc
+++ b/data/themes/default.edc
@@ -3783,6 +3783,7 @@ target: "0.clip"; target: "1.clip"; target: "2.clip"; 
target: "3.clip"; target:
          part { name: "bottom";
             mouse_events: 0;
             description { state: "default" 0.0;
+               fixed: 1 1;
                image.normal: "lk_bottom.png";
                image.border: 9 9 0 0;
                align: 0.5 1.0;
@@ -3797,6 +3798,7 @@ target: "0.clip"; target: "1.clip"; target: "2.clip"; 
target: "3.clip"; target:
          part { name: "l";
             mouse_events: 0;
             description { state: "default" 0.0;
+               fixed: 1 1;
                image.normal: "lk_left.png";
                align: 0.0 1.0;
                min: 4 4;
@@ -3807,6 +3809,7 @@ target: "0.clip"; target: "1.clip"; target: "2.clip"; 
target: "3.clip"; target:
                color: 51 153 255 0;
             }
             description { state: "out" 0.0;
+               fixed: 1 1;
                inherit: "default" 0.0;
                min: 16 16;
                rel1.offset: -10 -1;
@@ -3814,6 +3817,7 @@ target: "0.clip"; target: "1.clip"; target: "2.clip"; 
target: "3.clip"; target:
                color: 51 153 255 255;
             }
             description { state: "out2" 0.0;
+               fixed: 1 1;
                inherit: "default" 0.0;
                min: 32 32;
                rel1.offset: -26 -1;
@@ -3824,6 +3828,7 @@ target: "0.clip"; target: "1.clip"; target: "2.clip"; 
target: "3.clip"; target:
          part { name: "r";
             mouse_events: 0;
             description { state: "default" 0.0;
+               fixed: 1 1;
                image.normal: "lk_right.png";
                align: 1.0 1.0;
                min: 4 4;
@@ -3834,6 +3839,7 @@ target: "0.clip"; target: "1.clip"; target: "2.clip"; 
target: "3.clip"; target:
                color: 51 153 255 0;
             }
             description { state: "out" 0.0;
+               fixed: 1 1;
                inherit: "default" 0.0;
                min: 16 16;
                rel1.offset: 9 -1;
@@ -3841,6 +3847,7 @@ target: "0.clip"; target: "1.clip"; target: "2.clip"; 
target: "3.clip"; target:
                color: 51 153 255 255;
             }
             description { state: "out2" 0.0;
+               fixed: 1 1;
                inherit: "default" 0.0;
                min: 32 32;
                rel1.offset: 25 -1;
diff --git a/src/bin/termio.c b/src/bin/termio.c
index 64e4f44..dc5c2dd 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -1156,9 +1156,9 @@ _update_link(Evas_Object *obj, Termio *sd,
      }
    for (y = sd->link.y1; y <= sd->link.y2; y++)
      {
-        o = edje_object_add(evas_object_evas_get(obj));
+        o = elm_layout_add(obj);
         evas_object_smart_member_add(o, obj);
-        theme_apply(o, sd->config, "terminology/link");
+        theme_apply(elm_layout_edje_get(o), sd->config, "terminology/link");
 
         if (y == sd->link.y1)
           {
@@ -1188,6 +1188,7 @@ _update_link(Evas_Object *obj, Termio *sd,
           }
 
         sd->link.objs = eina_list_append(sd->link.objs, o);
+        elm_object_cursor_set(o, "hand2");
         evas_object_show(o);
         evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_DOWN,
                                        _cb_link_down, obj);

-- 


Reply via email to