edje_cc: Add copy item for proxy part 32/139232/2
authorjiin.moon <jiin.moon@samsung.com>
Mon, 17 Jul 2017 08:24:11 +0000 (17:24 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Tue, 18 Jul 2017 05:09:04 +0000 (05:09 +0000)
Refs: master, <origin/HEAD>, <origin/master>, v1.20.0-beta2-43-g4211822
Author:     jiin.moon <jiin.moon@samsung.com>
AuthorDate: Fri Jul 14 11:29:50 2017 +0900
Commit:     Jean-Philippe Andre <jp.andre@samsung.com>
CommitDate: Fri Jul 14 11:39:44 2017 +0900

    edje_cc: Add copy item for proxy part

    Summary:
    Although user use "inherit" in a state of proxy part,
    the inherit function does not copy the source_visible and
    the source_clip value of parent to the state.

    Test Plan: {F1751132}sample

    Reviewers: jpeg, cedric

    Differential Revision: https://phab.enlightenment.org/D5017

    @fix

Change-Id: I35e7eafd558d1e41b6d49e70ab0ebf8f63e93ae5

src/bin/edje/edje_cc_handlers.c

index 9ef57d8..34587e6 100644 (file)
@@ -7749,6 +7749,8 @@ st_collections_group_parts_part_description_inherit(void)
               Edje_Part_Description_Proxy *pparent = (Edje_Part_Description_Proxy*) parent;
 
               data_queue_copied_part_lookup(pc, &(pparent->proxy.id), &(ped->proxy.id));
+              ped->proxy.source_clip = pparent->proxy.source_clip;
+              ped->proxy.source_visible = pparent->proxy.source_visible;
 
               /* Filters stuff */
               ped->filter.code = STRDUP(pparent->filter.code);