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
This commit is contained in:
Jaehyun Cho 2014-12-12 19:48:30 +09:00 committed by ChunEon Park
parent 6b8cebe8b5
commit f177939cd2
4 changed files with 5 additions and 0 deletions

View File

@ -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;
}

View File

@ -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";

View File

@ -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;

View File

@ -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[];