enventor: Do not highlight part during live edit mode.

Previously, part highlighting worked if part highlighting button is
clicked or enventor window moves during live edit mode.
Now, part highlighting does not work during live edit mode.

@fix T3653
This commit is contained in:
Jaehyun Cho 2016-06-02 19:02:03 +09:00
parent 79ee03693c
commit 567a38d5e5
1 changed files with 3 additions and 1 deletions

View File

@ -134,7 +134,7 @@ edit_view_sync_cb(void *data, Eina_Stringshare *state_name, double state_value,
evas_object_smart_callback_call(pd->obj, SIG_CURSOR_GROUP_CHANGED,
(void *) group_name);
}
if (pd->part_highlight)
if (pd->part_highlight && !pd->disabled)
view_part_highlight_set(VIEW_DATA, part_name);
else
view_part_highlight_set(VIEW_DATA, NULL);
@ -599,6 +599,8 @@ _enventor_object_part_highlight_set(Eo *obj EINA_UNUSED,
Enventor_Object_Data *pd,
Eina_Bool part_highlight)
{
if (pd->disabled) return;
part_highlight = !!part_highlight;
if (pd->part_highlight == part_highlight) return;
pd->part_highlight = part_highlight;