forked from enlightenment/efl
Elementary genlist: Applied reorder effect patch from Seunggyun
<sgyun.kim@samsung.com>. Now reorder effect is enalbed :) Btw, I changed signal name before commit. SVN revision: 59940
This commit is contained in:
parent
91bc4fa79f
commit
629a67e86b
|
@ -15926,6 +15926,30 @@ collections {
|
||||||
color: 0 0 0 0;
|
color: 0 0 0 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
part { name: "reorder_bg";
|
||||||
|
mouse_events: 0;
|
||||||
|
description { state: "default" 0.0;
|
||||||
|
visible: 0;
|
||||||
|
color: 255 255 255 0;
|
||||||
|
rel1 {
|
||||||
|
relative: 0.0 0.0;
|
||||||
|
offset: -7 -7;
|
||||||
|
}
|
||||||
|
rel2 {
|
||||||
|
relative: 1.0 1.0;
|
||||||
|
offset: 9 9;
|
||||||
|
}
|
||||||
|
image {
|
||||||
|
normal: "bt_bases.png";
|
||||||
|
border: 6 6 6 6;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
description { state: "enabled" 0.0;
|
||||||
|
inherit: "default" 0.0;
|
||||||
|
visible: 1;
|
||||||
|
color: 255 255 255 255;
|
||||||
|
}
|
||||||
|
}
|
||||||
part {
|
part {
|
||||||
name: "base_sh";
|
name: "base_sh";
|
||||||
mouse_events: 0;
|
mouse_events: 0;
|
||||||
|
@ -16227,6 +16251,22 @@ collections {
|
||||||
action: STATE_SET "default" 0.0;
|
action: STATE_SET "default" 0.0;
|
||||||
target: "disclip";
|
target: "disclip";
|
||||||
}
|
}
|
||||||
|
program {
|
||||||
|
name: "go_reorder_disabled";
|
||||||
|
signal: "elm,state,reorder,disable";
|
||||||
|
source: "elm";
|
||||||
|
action: STATE_SET "default" 0.0;
|
||||||
|
target: "reorder_bg";
|
||||||
|
transition: DECELERATE 0.5;
|
||||||
|
}
|
||||||
|
program {
|
||||||
|
name: "go_reorder_enabled";
|
||||||
|
signal: "elm,state,reorder,enable";
|
||||||
|
source: "elm";
|
||||||
|
action: STATE_SET "enabled" 0.0;
|
||||||
|
target: "reorder_bg";
|
||||||
|
transition: DECELERATE 0.5;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
group { name: "elm/genlist/item/group_index/default";
|
group { name: "elm/genlist/item/group_index/default";
|
||||||
|
|
|
@ -1189,6 +1189,7 @@ _long_press(void *data)
|
||||||
elm_genlist_item_expanded_set(it, EINA_FALSE);
|
elm_genlist_item_expanded_set(it, EINA_FALSE);
|
||||||
return ECORE_CALLBACK_RENEW;
|
return ECORE_CALLBACK_RENEW;
|
||||||
}
|
}
|
||||||
|
edje_object_signal_emit(it->base.view, "elm,state,reorder,enable", "elm");
|
||||||
}
|
}
|
||||||
return ECORE_CALLBACK_CANCEL;
|
return ECORE_CALLBACK_CANCEL;
|
||||||
}
|
}
|
||||||
|
@ -1494,6 +1495,7 @@ _mouse_up(void *data,
|
||||||
it->wd->calc_job = ecore_job_add(_calc_job, it->wd);
|
it->wd->calc_job = ecore_job_add(_calc_job, it->wd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
edje_object_signal_emit(it->base.view, "elm,state,reorder,disable", "elm");
|
||||||
it->wd->reorder_it = it->wd->reorder_rel = NULL;
|
it->wd->reorder_it = it->wd->reorder_rel = NULL;
|
||||||
elm_smart_scroller_hold_set(it->wd->scr, EINA_FALSE);
|
elm_smart_scroller_hold_set(it->wd->scr, EINA_FALSE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue