diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2014-05-15 17:43:56 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2014-05-15 17:43:56 +0900 |
commit | 6cfabc290bcfcfb01dd18b7c78ae48bf47edf604 (patch) | |
tree | bf8a86a6f6f3c9c88fdcaf5b1e5f118c4fe0caa5 | |
parent | 4701f8255ded781ccf253e4b1f01aceefa18f570 (diff) | |
download | elementary-6cfabc290bcfcfb01dd18b7c78ae48bf47edf604.tar.gz |
fix visiblity of entry cursor when selections exist
this fixes T1229 - the other part about cursor visibility. @fix
-rw-r--r-- | data/themes/edc/elm/entry.edc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/data/themes/edc/elm/entry.edc b/data/themes/edc/elm/entry.edc index 3a90c1c96..f82b84e20 100644 --- a/data/themes/edc/elm/entry.edc +++ b/data/themes/edc/elm/entry.edc @@ -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,9 +338,30 @@ 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; target: "cursor_show"; |