forked from enlightenment/efl
elm: fix legacy code
earlier elm_object_focused_object_get returned gengrid genlist toolbar objects if a item of them is focused. This should fix that. thank you @davemds for the report!
This commit is contained in:
parent
83c292ffc4
commit
bed67ef0d0
|
@ -21,6 +21,10 @@
|
|||
#include "ecore_internal.h"
|
||||
#include "elm_interface_scrollable.h"
|
||||
|
||||
//we need those for legacy compatible code
|
||||
#include "elm_genlist.eo.h"
|
||||
#include "elm_gengrid.eo.h"
|
||||
|
||||
#define SEMI_BROKEN_QUICKLAUNCH 1
|
||||
|
||||
#ifdef __CYGWIN__
|
||||
|
@ -1763,6 +1767,11 @@ elm_object_focused_object_get(const Evas_Object *obj)
|
|||
while(efl_ui_focus_manager_redirect_get(man))
|
||||
{
|
||||
man = efl_ui_focus_manager_redirect_get(man);
|
||||
|
||||
// legacy compatible code, earlier those containers have not exposed theire items
|
||||
if (efl_isa(man, ELM_GENGRID_CLASS) ||
|
||||
efl_isa(man, ELM_TOOLBAR_CLASS) ||
|
||||
efl_isa(man, ELM_GENLIST_CLASS)) return man;
|
||||
}
|
||||
|
||||
return efl_ui_focus_manager_focus_get(man);
|
||||
|
|
Loading…
Reference in New Issue