aboutsummaryrefslogtreecommitdiffstats
path: root/data/themes/edc/fileman.edc
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-11-20 14:54:49 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-11-20 14:54:49 +0000
commit1450c7a4c886c50b2e2de6a1c924beb1337e0db8 (patch)
treecf0ee4567a2ac65aab2f817c77b5594503c921e0 /data/themes/edc/fileman.edc
parente415356559ccda72caf676620d21ed01b0ab9fd0 (diff)
downloadenlightenment-1450c7a4c886c50b2e2de6a1c924beb1337e0db8.tar.gz
enlightenment-1450c7a4c886c50b2e2de6a1c924beb1337e0db8.tar.xz
enlightenment-1450c7a4c886c50b2e2de6a1c924beb1337e0db8.zip
fix "long press" on label to triggewr rename after mouse release IF
held down for > 0.4 sec. SVN revision: 79472
Diffstat (limited to 'data/themes/edc/fileman.edc')
-rw-r--r--data/themes/edc/fileman.edc50
1 files changed, 46 insertions, 4 deletions
diff --git a/data/themes/edc/fileman.edc b/data/themes/edc/fileman.edc
index 0070b5126..b461e3fb8 100644
--- a/data/themes/edc/fileman.edc
+++ b/data/themes/edc/fileman.edc
@@ -11,6 +11,9 @@ group { name: "e/fileman/default/list/variable";
images.image: "shadow_square_tiny.png" COMP;
images.image: "ball_small_glow.png" COMP;
images.image: "ball_small_glow_intense.png" COMP;
+ script {
+ public longpressed;
+ }
parts {
part { name: "base"; type: RECT; mouse_events: 0;
description { state: "default" 0.0;
@@ -291,9 +294,27 @@ group { name: "e/fileman/default/list/variable";
target: "label2";
target: "label3";
}
- program { name: "rename";
+ program {
+ signal: "mouse,down,1"; source: "label_event";
+ script {
+ set_int(longpressed, 0);
+ }
+ }
+ program { name: "rename1";
+ signal: "mouse,down,1"; source: "label_event";
+ in: 0.4 0.0;
+ script {
+ set_int(longpressed, 1);
+ }
+ }
+ program { name: "rename2";
signal: "mouse,up,1"; source: "label_event";
- action: SIGNAL_EMIT "e,action,label,click" "e";
+ script {
+ if (get_int(longpressed)) {
+ set_int(longpressed, 0);
+ emit("e,action,label,click", "e");
+ }
+ }
}
program {
signal: "e,action,thumb,gen"; source: "e";
@@ -388,6 +409,9 @@ group { name: "e/fileman/default/icon/fixed";
base: "font=Sans font_size=10 text_class=fileman_icon align=center color=#3399ffff wrap=mixed style=glow glow_color=#3399ff18 align=center glow2_color=#3399ff12 ellipsis=1.0";
}
}
+ script {
+ public longpressed;
+ }
parts {
part { name: "shadow"; mouse_events: 0;
description { state: "default" 0.0;
@@ -667,9 +691,27 @@ group { name: "e/fileman/default/icon/fixed";
target: "sel_shine";
target: "sel_glow";
}
- program { name: "rename";
+ program {
+ signal: "mouse,down,1"; source: "label_event";
+ script {
+ set_int(longpressed, 0);
+ }
+ }
+ program { name: "rename1";
+ signal: "mouse,down,1"; source: "label_event";
+ in: 0.4 0.0;
+ script {
+ set_int(longpressed, 1);
+ }
+ }
+ program { name: "rename2";
signal: "mouse,up,1"; source: "label_event";
- action: SIGNAL_EMIT "e,action,label,click" "e";
+ script {
+ if (get_int(longpressed)) {
+ set_int(longpressed, 0);
+ emit("e,action,label,click", "e");
+ }
+ }
}
program {
signal: "e,action,thumb,gen"; source: "e";