From 7a3fa2425ad48613a652f5a4717c316d9ccbd575 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Thu, 15 May 2014 17:43:56 +0900 Subject: [PATCH] fix visiblity of entry cursor when selections exist this fixes T1229 - the other part about cursor visibility. @fix --- legacy/elementary/data/themes/edc/elm/entry.edc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/legacy/elementary/data/themes/edc/elm/entry.edc b/legacy/elementary/data/themes/edc/elm/entry.edc index 3a90c1c..f82b84e 100644 --- a/legacy/elementary/data/themes/edc/elm/entry.edc +++ b/legacy/elementary/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"; -- 2.7.4