hermet pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=4e6be710301e3aa2545d835c96dc133511e1bc3c
commit 4e6be710301e3aa2545d835c96dc133511e1bc3c Author: ChunEon Park <[email protected]> Date: Mon Feb 16 19:23:10 2015 +0900 bin/live_edit: code refactoring. just clean up code --- src/bin/live_edit.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/bin/live_edit.c b/src/bin/live_edit.c index b32e4cd..dfbde93 100644 --- a/src/bin/live_edit.c +++ b/src/bin/live_edit.c @@ -305,6 +305,8 @@ live_edit_toggle(void) Evas_Object *live_view = enventor_object_live_view_get(ld->enventor); if (!live_view) return; + enventor_object_disabled_set(ld->enventor, ld->on); + if (ld->on) { ld->ctxpopup = ctxpopup_create(live_view, ld); @@ -315,8 +317,6 @@ live_edit_toggle(void) live_edit_reset(ld); stats_info_msg_update("Live View Edit Mode Disabled."); } - - enventor_object_disabled_set(ld->enventor, ld->on); } Eina_Bool @@ -344,16 +344,11 @@ live_edit_init(Evas_Object *enventor) return; } g_ld = ld; - ld->enventor = enventor; - - ld->ctxpopup = NULL; - ld->layout = NULL; - ld->key_down_handler = NULL; } void -live_edit_term() +live_edit_term(void) { live_data *ld = g_ld; evas_object_del(ld->ctxpopup); --
