forked from enlightenment/enlightenment
fix "long press" on label to triggewr rename after mouse release IF
held down for > 0.4 sec. SVN revision: 79472
This commit is contained in:
parent
e415356559
commit
1450c7a4c8
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue