nikawhite pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=bce72d3f441f444534f213489a87f7d91aa1a92b

commit bce72d3f441f444534f213489a87f7d91aa1a92b
Author: Mykyta Biliavskyi <m.biliavs...@samsung.com>
Date:   Tue Dec 29 18:15:12 2015 +0900

    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.
---
 src/lib/enventor_smart.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/lib/enventor_smart.c b/src/lib/enventor_smart.c
index 3ae1431..7ba9cdf 100644
--- a/src/lib/enventor_smart.c
+++ b/src/lib/enventor_smart.c
@@ -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);
+     }
 
 }
 

-- 


Reply via email to