summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorLionel Landwerlin <llandwerlin@gmail.com>2013-03-27 12:15:03 +0000
committerLionel Landwerlin <llandwerlin@gmail.com>2013-03-27 12:15:03 +0000
commit7b9affcbe92351127cec21151f82f20bf0f49578 (patch)
tree212e918b13772680c80a306b480bdb43ebe1e94a /examples
parent3ebce92080647866cc60fe73cf5c5d7ce033538a (diff)
downloadclutter-gst-7b9affcbe92351127cec21151f82f20bf0f49578.tar.gz
Introduce ClutterGstBox to replace usage of (soon to be deprecated) ClutterActorBox
https://bugzilla.gnome.org/show_bug.cgi?id=696630
Diffstat (limited to 'examples')
-rw-r--r--examples/pieces.js10
-rw-r--r--examples/video-flip.js10
-rw-r--r--examples/video-flip2.js10
-rw-r--r--examples/video-wall.js10
4 files changed, 20 insertions, 20 deletions
diff --git a/examples/pieces.js b/examples/pieces.js
index 9415250..f7a0b0b 100644
--- a/examples/pieces.js
+++ b/examples/pieces.js
@@ -129,11 +129,11 @@ for (let i = 0; i < ROWS; i++) {
if ((i * ROWS + j) >= (ROWS * COLUMNS - 1))
break;
- let input = new Clutter.ActorBox({ x1: j / COLUMNS,
- x2: (j + 1) / COLUMNS,
- y1: i / ROWS,
- y2: (i + 1) / ROWS,
- })
+ let input = new ClutterGst.Box({ x1: j / COLUMNS,
+ x2: (j + 1) / COLUMNS,
+ y1: i / ROWS,
+ y2: (i + 1) / ROWS,
+ })
let actor = new ClutterGst.Crop({ width: BIT_WIDTH,
height: BIT_HEIGHT,
player: player,
diff --git a/examples/video-flip.js b/examples/video-flip.js
index a3d3387..ba720ea 100644
--- a/examples/video-flip.js
+++ b/examples/video-flip.js
@@ -122,11 +122,11 @@ let positionActors = function() {
for (let i = 0; i < ROWS; i++) {
for (let j = 0; j < COLUMNS; j++) {
- let input = new Clutter.ActorBox({ x1: j / COLUMNS,
- x2: (j + 1) / COLUMNS,
- y1: i / ROWS,
- y2: (i + 1) / ROWS,
- })
+ let input = new ClutterGst.Box({ x1: j / COLUMNS,
+ x2: (j + 1) / COLUMNS,
+ y1: i / ROWS,
+ y2: (i + 1) / ROWS,
+ })
let actor =
new ClutterGst.Crop({ reactive: true,
cull_backface: true,
diff --git a/examples/video-flip2.js b/examples/video-flip2.js
index e0226a3..79c17a7 100644
--- a/examples/video-flip2.js
+++ b/examples/video-flip2.js
@@ -238,11 +238,11 @@ let positionActors = function() {
for (let i = 0; i < ROWS; i++) {
for (let j = 0; j < COLUMNS; j++) {
- let input = new Clutter.ActorBox({ x1: j / COLUMNS,
- x2: (j + 1) / COLUMNS,
- y1: i / ROWS,
- y2: (i + 1) / ROWS,
- })
+ let input = new ClutterGst.Box({ x1: j / COLUMNS,
+ x2: (j + 1) / COLUMNS,
+ y1: i / ROWS,
+ y2: (i + 1) / ROWS,
+ })
let actor =
new ClutterGst.Crop({ cull_backface: true,
pivot_point: new Clutter.Point({ x: 0.5,
diff --git a/examples/video-wall.js b/examples/video-wall.js
index 66e5e82..9318c1d 100644
--- a/examples/video-wall.js
+++ b/examples/video-wall.js
@@ -134,11 +134,11 @@ let pushActorsToFront = function(duration) {
for (let i = 0; i < ROWS; i++) {
for (let j = 0; j < COLUMNS; j++) {
- let input = new Clutter.ActorBox({ x1: j / COLUMNS,
- x2: (j + 1) / COLUMNS,
- y1: i / ROWS,
- y2: (i + 1) / ROWS,
- })
+ let input = new ClutterGst.Box({ x1: j / COLUMNS,
+ x2: (j + 1) / COLUMNS,
+ y1: i / ROWS,
+ y2: (i + 1) / ROWS,
+ })
let subActor = new ClutterGst.Crop({ width: 200,
height: 200,
player: player,