forked from enlightenment/enlightenment
- close typebuffer if we click on an icon (mouse up) or on the canvas (mouse down). the reason i have mouse up on the icon is that sometimes you click and wait (read it or look at it) then raise you finger off the mouse button. this doesnt apply to the bg because then you can click and drag to show the rubber band so we hide it directly.
SVN revision: 18382
This commit is contained in:
parent
d2524a5d54
commit
5c90321ccd
|
@ -1739,6 +1739,12 @@ _e_fm_mouse_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
|
|||
ev = event_info;
|
||||
sd = data;
|
||||
|
||||
if(!strcmp(edje_object_part_state_get(sd->edje_obj, "typebuffer", NULL), "shown"))
|
||||
{
|
||||
edje_object_signal_emit(sd->edje_obj, "typebuf_hide", "");
|
||||
edje_object_part_text_set(sd->edje_obj, "text", "");
|
||||
}
|
||||
|
||||
switch (ev->button)
|
||||
{
|
||||
case 1:
|
||||
|
@ -1940,7 +1946,7 @@ _e_fm_mouse_up_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
|
|||
|
||||
sd = data;
|
||||
ev = event_info;
|
||||
|
||||
|
||||
if (sd->selection.band.enabled)
|
||||
{
|
||||
sd->selection.band.enabled = 0;
|
||||
|
@ -2127,6 +2133,12 @@ _e_fm_icon_mouse_up_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
|
|||
ev = event_info;
|
||||
icon = data;
|
||||
|
||||
if(!strcmp(edje_object_part_state_get(icon->sd->edje_obj, "typebuffer", NULL), "shown"))
|
||||
{
|
||||
edje_object_signal_emit(icon->sd->edje_obj, "typebuf_hide", "");
|
||||
edje_object_part_text_set(icon->sd->edje_obj, "text", "");
|
||||
}
|
||||
|
||||
if(icon->sd->win)
|
||||
icon->sd->drag.start = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue