aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_win.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-08-26 17:09:38 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-08-26 17:15:05 +0900
commit3b175fd7e9e3e251d1f53909aa6a32e8e3a54461 (patch)
treed0a6363ace3e90e4737fe5ad18ab0c69b06bd6a1 /src/lib/elementary/efl_ui_win.c
parentevas3d examples: Add EFL_EO_API_SUPPORT where needed (diff)
downloadefl-3b175fd7e9e3e251d1f53909aa6a32e8e3a54461.tar.gz
elm: Fix some ERR messages following previous patch
This simply avoids calling functions on NULL objects, since the previous patch would ERR out rather than silently ignore the problem. I just add explicit NULL checks before calling the functions, so it's clear the object could be NULL (in the widget).
Diffstat (limited to 'src/lib/elementary/efl_ui_win.c')
-rw-r--r--src/lib/elementary/efl_ui_win.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index aced7badc3..1177bec033 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -1102,9 +1102,12 @@ the_end:
_elm_win_focus_highlight_visible_set(sd, common_visible);
sd->focus_highlight.geometry_changed = EINA_FALSE;
sd->focus_highlight.prev = sd->focus_highlight.cur;
- evas_object_event_callback_add
- (sd->focus_highlight.prev.target,
- EVAS_CALLBACK_DEL, _elm_win_focus_prev_target_del, data);
+ if (sd->focus_highlight.prev.target)
+ {
+ evas_object_event_callback_add
+ (sd->focus_highlight.prev.target,
+ EVAS_CALLBACK_DEL, _elm_win_focus_prev_target_del, data);
+ }
}
static void