From: Carsten Haitzler (Rasterman) Date: Tue, 1 Apr 2014 00:25:21 +0000 (+0900) Subject: elm widget - dont get focus if object is not an elm widget X-Git-Tag: upstream/1.20.0~7116^2~14^2~2769 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2599a6d4a7a61054821842c6d0eebe85c19bcbf;p=platform%2Fupstream%2Fefl.git 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) --- diff --git a/legacy/elementary/src/lib/elm_widget.c b/legacy/elementary/src/lib/elm_widget.c index aac52d4..b8fa685 100644 --- a/legacy/elementary/src/lib/elm_widget.c +++ b/legacy/elementary/src/lib/elm_widget.c @@ -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";