fix visiblity of entry cursor when selections exist
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Thu, 15 May 2014 08:43:56 +0000 (17:43 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Thu, 15 May 2014 08:43:56 +0000 (17:43 +0900)
this fixes T1229 - the other part about cursor visibility. @fix

legacy/elementary/data/themes/edc/elm/entry.edc

index 3a90c1c..f82b84e 100644 (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,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";