live_edit: fix regression bug that introduced in 14a0e2cfd2

toggling context is corrupted but recovered again.
This commit is contained in:
ChunEon Park 2015-06-22 22:50:22 +09:00
parent 14a0e2cfd2
commit 772ffe2229
3 changed files with 7 additions and 7 deletions

View File

@ -912,7 +912,6 @@ live_edit_toggle(void)
{
live_data *ld = g_ld;
Eina_Bool on = !ld->on;
ld->on = on;
if (on)
{
@ -920,10 +919,12 @@ live_edit_toggle(void)
ld->live_view = enventor_object_live_view_get(ld->enventor);
ld->ctxpopup = ctxpopup_create(ld);
stats_info_msg_update("Select a part to add in Live View.");
tools_live_update(ld->enventor, EINA_FALSE);
tools_live_update(EINA_TRUE);
}
else
live_edit_cancel();
ld->on = on;
}
Eina_Bool
@ -979,7 +980,7 @@ live_edit_cancel(void)
ld->on = EINA_FALSE;
tools_live_update(ld->enventor, EINA_FALSE);
tools_live_update(EINA_FALSE);
}
void

View File

@ -399,13 +399,12 @@ tools_search_update(Evas_Object *enventor EINA_UNUSED,
}
void
tools_live_update(Evas_Object *enventor EINA_UNUSED,
Eina_Bool toggle EINA_UNUSED)
tools_live_update(Eina_Bool on)
{
tools_data *td = g_td;
if (!td) return;
if (live_edit_get())
if (on)
elm_object_signal_emit(td->live_btn, "icon,highlight,enabled", "");
else
elm_object_signal_emit(td->live_btn, "icon,highlight,disabled", "");

View File

@ -7,6 +7,6 @@ void tools_swallow_update(Evas_Object *enventor, Eina_Bool toggle);
void tools_status_update(Evas_Object *enventor, Eina_Bool toggle);
void tools_goto_update(Evas_Object *enventor, Eina_Bool toggle);
void tools_search_update(Evas_Object *enventor, Eina_Bool toggle);
void tools_live_update(Evas_Object *enventor, Eina_Bool toggle);
void tools_live_update(Eina_Bool on);
void tools_console_update(Eina_Bool on);
void tools_menu_update(Eina_Bool on);