fix visiblity of entry cursor when selections exist

this fixes T1229 - the other part about cursor visibility. @fix
This commit is contained in:
Carsten Haitzler 2014-05-15 17:43:56 +09:00
parent c565ec1cde
commit 7a3fa2425a
1 changed files with 22 additions and 0 deletions

View File

@ -323,6 +323,7 @@ group { name: "elm/entry/cursor/default";
images.image: "white_bar_vert_glow.png" COMP;
parts {
part { name: "cursor"; mouse_events: 0;
clip_to: "clipper";
description { state: "default" 0.0;
rel1.offset: -4 -4;
rel2.offset: 3 3;
@ -337,8 +338,29 @@ group { name: "elm/entry/cursor/default";
color: 255 255 255 255;
}
}
part { name: "clipper"; type: RECT;
description { state: "default" 0.0;
rel1.to: "cursor";
rel2.to: "cursor";
fixed: 1 1;
}
description { state: "hidden" 0.0;
inherit: "default" 0.0;
visible: 0;
}
}
}
programs {
program {
signal: "selection,start"; source: "elm.text";
action: STATE_SET "hidden" 0.0;
target: "clipper";
}
program {
signal: "selection,cleared"; source: "elm.text";
action: STATE_SET "default" 0.0;
target: "clipper";
}
program {
signal: "elm,action,focus"; source: "elm";
action: ACTION_STOP;