forked from enlightenment/efl
Better focus next get to elm panes.
The previous have too much code. SVN revision: 53459
This commit is contained in:
parent
fbf5ae5368
commit
82a28dafb9
|
@ -98,31 +98,22 @@ _elm_panes_focus_next_hook(const Evas_Object *obj, Elm_Focus_Direction dir, Evas
|
|||
else
|
||||
return EINA_FALSE;
|
||||
|
||||
if (elm_widget_focus_get(chain[1]))
|
||||
{
|
||||
unsigned char i = elm_widget_focus_get(chain[1]);
|
||||
|
||||
if (elm_widget_focus_next_get(chain[i], dir, next))
|
||||
return TRUE;
|
||||
|
||||
i = !i;
|
||||
|
||||
Evas_Object *to_focus;
|
||||
if (elm_widget_focus_next_get(chain[1], dir, next))
|
||||
return EINA_TRUE;
|
||||
elm_widget_focus_next_get(chain[0], dir, &to_focus);
|
||||
if (to_focus)
|
||||
*next = to_focus;
|
||||
return EINA_FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
Evas_Object *to_focus;
|
||||
if (elm_widget_focus_next_get(chain[0], dir, next))
|
||||
return EINA_TRUE;
|
||||
if (elm_widget_focus_next_get(chain[1], dir, &to_focus))
|
||||
if (elm_widget_focus_next_get(chain[i], dir, &to_focus))
|
||||
{
|
||||
*next = to_focus;
|
||||
return EINA_TRUE;
|
||||
return !!i;
|
||||
}
|
||||
if (!(*next))
|
||||
*next = to_focus;
|
||||
|
||||
return EINA_FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
_sizing_eval(Evas_Object *obj)
|
||||
|
|
Loading…
Reference in New Issue