mirror of
https://github.com/brl/mutter.git
synced 2025-08-02 22:54:44 +00:00
2007-11-14 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-clone-texture.c (set_parent_texture): Hide the clone texture only if it was visible, and show it again if we are adding a visible texture. * tests/test-script.json: Test the CloneTexture actor.
This commit is contained in:
@@ -10,13 +10,10 @@
|
||||
"id" : "red-button",
|
||||
"type" : "ClutterRectangle",
|
||||
"color" : "#ff0000ff",
|
||||
"x" : 50,
|
||||
"y" : 50,
|
||||
"width" : 100,
|
||||
"height" : 100,
|
||||
"x" : 50, "y" : 50, "width" : 100, "height" : 100,
|
||||
"visible" : true,
|
||||
"reactive" : true,
|
||||
"behaviours" : [ "fade-behaviour", "path-behaviour" ]
|
||||
"behaviours" : [ "fade-behaviour", "path-behaviour" ],
|
||||
},
|
||||
{
|
||||
"id" : "green-button",
|
||||
@@ -36,11 +33,20 @@
|
||||
"type" : "ClutterTexture",
|
||||
"pixbuf" : "redhand.png",
|
||||
"x" : 50,
|
||||
"y" : 50,
|
||||
"y" : 150,
|
||||
"opacity" : 100,
|
||||
"visible" : true,
|
||||
"behaviours" : [ "rotate-behaviour", "fade-behaviour" ]
|
||||
},
|
||||
{
|
||||
"id" : "red-hand-clone",
|
||||
"type" : "ClutterCloneTexture",
|
||||
"parent-texture" : "red-hand",
|
||||
"x" : 250,
|
||||
"y" : 150,
|
||||
"opacity" : 100,
|
||||
"visible" : true
|
||||
},
|
||||
{
|
||||
"id" : "label",
|
||||
"type" : "ClutterLabel",
|
||||
|
Reference in New Issue
Block a user