elm widget - dont get focus if object is not an elm widget

this islences lots of missing method complaints from eo (yes - we
wantmixed elm + non elm widgets to work, thus this has to be handled)
This commit is contained in:
Carsten Haitzler 2014-04-01 09:25:21 +09:00
parent 02590f4877
commit e2599a6d4a
1 changed files with 4 additions and 3 deletions

View File

@ -23,9 +23,10 @@
ELM_WIDGET_DATA_GET(obj, sd); \
if (!sd) return
#define ELM_WIDGET_FOCUS_GET(obj) \
((_elm_access_auto_highlight_get()) ? (elm_widget_highlight_get(obj)) : \
(elm_widget_focus_get(obj)))
#define ELM_WIDGET_FOCUS_GET(obj) \
(eo_isa(obj, ELM_OBJ_WIDGET_CLASS) && \
((_elm_access_auto_highlight_get()) ? (elm_widget_highlight_get(obj)) : \
(elm_widget_focus_get(obj))))
const char SIG_WIDGET_FOCUSED[] = "focused";
const char SIG_WIDGET_UNFOCUSED[] = "unfocused";