forked from enlightenment/enlightenment
e17/evry: hope this help to set input focus for evry gadget
SVN revision: 62527
This commit is contained in:
parent
0ddcff0e5c
commit
827b7ee787
|
@ -159,7 +159,18 @@ _button_cb_mouse_down(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED_
|
|||
|
||||
if (inst->win)
|
||||
{
|
||||
evry_hide(inst->win, 0);
|
||||
win = inst->win;
|
||||
|
||||
if (ev->flags == EVAS_BUTTON_DOUBLE_CLICK)
|
||||
{
|
||||
evry_hide(win, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
e_win_show(win->ewin);
|
||||
e_border_focus_set(win->ewin->border, 1, 1);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -167,7 +178,7 @@ _button_cb_mouse_down(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED_
|
|||
if (!win) return;
|
||||
|
||||
e_win_show(win->ewin);
|
||||
|
||||
e_border_focus_set(win->ewin->border, 1, 1);
|
||||
|
||||
/* evas_object_geometry_get(inst->o_button, &x, &y, &w, &h);
|
||||
* e_gadcon_canvas_zone_geometry_get(inst->gcc->gadcon,
|
||||
|
|
Loading…
Reference in New Issue