[ease] Replace from_string usages.
- From: Nate Stedman <natesm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ease] Replace from_string usages.
- Date: Thu, 20 May 2010 20:10:13 +0000 (UTC)
commit 5a472519e17a00408af2427fb88bea575e254f59
Author: Nate Stedman <natesm gmail com>
Date: Thu May 20 16:10:09 2010 -0400
Replace from_string usages.
src/EditorEmbed.vala | 4 +---
src/Player.vala | 4 +---
src/WelcomeActor.vala | 4 +---
src/WelcomeWindow.vala | 13 +++++++------
4 files changed, 10 insertions(+), 15 deletions(-)
---
diff --git a/src/EditorEmbed.vala b/src/EditorEmbed.vala
index 531dda1..a2c1ce7 100644
--- a/src/EditorEmbed.vala
+++ b/src/EditorEmbed.vala
@@ -82,9 +82,7 @@ public class Ease.EditorEmbed : ScrollableEmbed
// set up the background
view_background = new Clutter.Rectangle();
- var color = Clutter.Color();
- color.from_string("Gray");
- view_background.color = color;
+ view_background.color = {200, 200, 200, 255};
contents.add_actor(view_background);
document = d;
diff --git a/src/Player.vala b/src/Player.vala
index 40f5388..bec0e7d 100644
--- a/src/Player.vala
+++ b/src/Player.vala
@@ -54,9 +54,7 @@ public class Ease.Player : GLib.Object
stage.hide_cursor();
stage.show_all();
- Clutter.Color color = Clutter.Color();
- color.from_string("Black");
- stage.color = color;
+ stage.color = {0, 0, 0, 255};
Clutter.grab_keyboard(stage);
// make the stacking container
diff --git a/src/WelcomeActor.vala b/src/WelcomeActor.vala
index 1bce654..df27dad 100644
--- a/src/WelcomeActor.vala
+++ b/src/WelcomeActor.vala
@@ -41,9 +41,7 @@ public class Ease.WelcomeActor : Clutter.Rectangle
height = w * 3 / 4; // 4:3
// TODO: make this an actual preview
- var col = Clutter.Color();
- col.from_string("Pink");
- color = col;
+ color = {200, 200, 200, 255};
border_color = {255, 255, 255, 255};
border_width = 2;
diff --git a/src/WelcomeWindow.vala b/src/WelcomeWindow.vala
index 54e467c..447c57c 100644
--- a/src/WelcomeWindow.vala
+++ b/src/WelcomeWindow.vala
@@ -119,9 +119,7 @@ public class Ease.WelcomeWindow : Gtk.Window
// the background for the previews
preview_background = new Clutter.Rectangle();
- var color = Clutter.Color();
- color.from_string("Black");
- preview_background.color = color;
+ preview_background.color = {0, 0, 0, 255};
preview_container.add_actor(preview_background);
// create the previews
@@ -154,11 +152,13 @@ public class Ease.WelcomeWindow : Gtk.Window
// ui signals
// changing resolution values
x_res.value_changed.connect(() => {
- set_resolution_box((int)(x_res.get_value()), (int)(y_res.get_value()));
+ set_resolution_box((int)(x_res.get_value()),
+ (int)(y_res.get_value()));
});
y_res.value_changed.connect(() => {
- set_resolution_box((int)(x_res.get_value()), (int)(y_res.get_value()));
+ set_resolution_box((int)(x_res.get_value()),
+ (int)(y_res.get_value()));
});
resolution.changed.connect(() => {
@@ -215,7 +215,8 @@ public class Ease.WelcomeWindow : Gtk.Window
// calculate the number of previews per line
var per_line = 2;
- for (; per_line * (preview_width + PREVIEW_PADDING) + PREVIEW_PADDING < embed.width;
+ for (; per_line * (preview_width + PREVIEW_PADDING) +
+ PREVIEW_PADDING < embed.width;
per_line++);
per_line--; // FIXME: the math is not strong in me at 2 AM
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]