[cheese: 6/13] Use ClutterActor rather than ClutterRectangle
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese: 6/13] Use ClutterActor rather than ClutterRectangle
- Date: Sat, 20 Apr 2013 21:48:25 +0000 (UTC)
commit 58d94cebbf9f24c5b10ad1ea9e25bd208dfee2b7
Author: David King <amigadave amigadave com>
Date: Fri Apr 19 18:42:24 2013 +0100
Use ClutterActor rather than ClutterRectangle
data/cheese-viewport.json | 4 ++--
src/cheese-window.vala | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/data/cheese-viewport.json b/data/cheese-viewport.json
index b5457ed..03745cd 100644
--- a/data/cheese-viewport.json
+++ b/data/cheese-viewport.json
@@ -7,8 +7,8 @@
},
{
"id": "background",
- "type": "ClutterRectangle",
- "color": "Black",
+ "type": "ClutterActor",
+ "background-color": "Black",
"x": 0,
"y": 0,
"width":768,
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index 6bddc09..d852514 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -70,7 +70,7 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow
private Clutter.Texture video_preview;
private Clutter.BinLayout viewport_layout_manager;
private Clutter.Text countdown_layer;
- private Clutter.Rectangle background_layer;
+ private Clutter.Actor background_layer;
private Clutter.Text error_layer;
private Clutter.Text timeout_layer;
@@ -1216,10 +1216,10 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow
var box = new Clutter.Actor ();
box.set_layout_manager (layout);
Clutter.Text text = new Clutter.Text ();
- Clutter.Rectangle rect = new Clutter.Rectangle ();
+ var rect = new Clutter.Actor ();
rect.opacity = 128;
- rect.color = Clutter.Color.from_string ("black");
+ rect.background_color = Clutter.Color.from_string ("black");
texture.keep_aspect_ratio = true;
box.add_child (texture);
@@ -1428,7 +1428,7 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow
viewport_layout = clutter_builder.get_object ("viewport_layout") as Clutter.Actor;
viewport_layout_manager = clutter_builder.get_object ("viewport_layout_manager") as Clutter.BinLayout;
countdown_layer = clutter_builder.get_object ("countdown_layer") as Clutter.Text;
- background_layer = clutter_builder.get_object ("background") as Clutter.Rectangle;
+ background_layer = clutter_builder.get_object ("background") as Clutter.Actor;
error_layer = clutter_builder.get_object ("error_layer") as Clutter.Text;
timeout_layer = clutter_builder.get_object ("timeout_layer") as Clutter.Text;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]