forked from enlightenment/enventor
Error notification: dismiss ctxpopup when error happen.
Callback build_err_noti_cb uses for reset the error state. Dismiss context popup with attribute values in case when the error happened.
This commit is contained in:
parent
460dfed226
commit
bce72d3f44
|
@ -159,11 +159,16 @@ build_err_noti_cb(void *data, const char *msg)
|
|||
call_error:
|
||||
free(utf8);
|
||||
edit_error_set(pd->ed, line_num - 1, target);
|
||||
edit_ctxpopup_dismiss(pd->ed);
|
||||
if (line_num || target)
|
||||
edit_syntax_color_full_apply(pd->ed, EINA_TRUE);
|
||||
|
||||
// When msg == NULL it mean, that needed to reset error state
|
||||
if (msg)
|
||||
evas_object_smart_callback_call(pd->obj, SIG_COMPILE_ERROR, (char *)msg);
|
||||
{
|
||||
// Ctxpopup should be dismissed only in cases when error happens
|
||||
edit_ctxpopup_dismiss(pd->ed);
|
||||
evas_object_smart_callback_call(pd->obj, SIG_COMPILE_ERROR, (char *)msg);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue