hermet pushed a commit to branch master.

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

commit f177939cd2aef5c2d97226fde24f082b89e6991f
Author: Jaehyun Cho <[email protected]>
Date:   Fri Dec 12 19:48:30 2014 +0900

    enventor_main: Add "live_view,loaded" enventor callback.
    
    Summary:
    Add "live_view,loaded" enventor callback to notice that view layout is 
newly loaded.
    @feature
    
    Reviewers: Hermet
    
    Reviewed By: Hermet
    
    Differential Revision: https://phab.enlightenment.org/D1744
---
 src/lib/edj_viewer.c       | 2 ++
 src/lib/enventor_main.c    | 1 +
 src/lib/enventor_object.eo | 1 +
 src/lib/enventor_private.h | 1 +
 4 files changed, 5 insertions(+)

diff --git a/src/lib/edj_viewer.c b/src/lib/edj_viewer.c
index 409dd7a..caef7f0 100644
--- a/src/lib/edj_viewer.c
+++ b/src/lib/edj_viewer.c
@@ -303,6 +303,8 @@ view_obj_idler_cb(void *data)
    vd->idler = NULL;
    if (vd->part_name) view_part_highlight_set(vd, vd->part_name);
 
+   evas_object_smart_callback_call(vd->enventor, SIG_LIVE_VIEW_LOADED,
+                                   (void*)edj_mgr_obj_get());
    return ECORE_CALLBACK_CANCEL;
 }
 
diff --git a/src/lib/enventor_main.c b/src/lib/enventor_main.c
index d181bad..8a53cb8 100644
--- a/src/lib/enventor_main.c
+++ b/src/lib/enventor_main.c
@@ -11,6 +11,7 @@
 char EDJE_PATH[PATH_MAX];
 const char SIG_CURSOR_LINE_CHANGED[] = "cursor,line,changed";
 const char SIG_CURSOR_GROUP_CHANGED[]= "cursor,group,changed";
+const char SIG_LIVE_VIEW_LOADED[] = "live_view,loaded";
 const char SIG_LIVE_VIEW_CURSOR_MOVED[] = "live_view,cursor,moved";
 const char SIG_LIVE_VIEW_RESIZED[] = "live_view,resized";
 const char SIG_MAX_LINE_CHANGED[] = "max_line,changed";
diff --git a/src/lib/enventor_object.eo b/src/lib/enventor_object.eo
index a21b0b0..dc8805d 100644
--- a/src/lib/enventor_object.eo
+++ b/src/lib/enventor_object.eo
@@ -448,6 +448,7 @@ class Enventor.Object (Elm_Widget, Efl.File) {
    events {
       cursor,line,changed;
       cursor,group,changed;
+      live_view,loaded;
       live_view,cursor,moved;
       live_view,resized;
       max_line,changed;
diff --git a/src/lib/enventor_private.h b/src/lib/enventor_private.h
index 6787e9d..2c78646 100644
--- a/src/lib/enventor_private.h
+++ b/src/lib/enventor_private.h
@@ -21,6 +21,7 @@ extern const char SIG_CURSOR_LINE_CHANGED[];
 extern const char SIG_CURSOR_GROUP_CHANGED[];
 extern const char SIG_MAX_LINE_CHANGED[];
 extern const char SIG_COMPILE_ERROR[];
+extern const char SIG_LIVE_VIEW_LOADED[];
 extern const char SIG_LIVE_VIEW_CURSOR_MOVED[];
 extern const char SIG_LIVE_VIEW_RESIZED[];
 extern const char SIG_PROGRAM_RUN[];

-- 


Reply via email to