should set "hand2" cursor on links but doesn't work

This commit is contained in:
Boris Faure 2015-03-18 18:21:23 +01:00
parent 144053f882
commit 0895a1e608
2 changed files with 10 additions and 2 deletions

View File

@ -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;

View File

@ -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);