[ease/themes] [themes] Fix colors in themes.



commit 4da6fee8cbca9fc71cc476e6a39082af6aeda103
Author: Nate Stedman <natesm gmail com>
Date:   Thu Jul 22 01:07:00 2010 -0400

    [themes] Fix colors in themes.

 src/ease-theme.vala |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/src/ease-theme.vala b/src/ease-theme.vala
index 2ac06d4..ba124f8 100644
--- a/src/ease-theme.vala
+++ b/src/ease-theme.vala
@@ -253,9 +253,8 @@ mk	 * The path to the theme's extracted files.
 		Slide slide = new Slide();
 		
 		// set the slide background property
-		Clutter.Color color = {255, 255, 255, 255};	
-		color.from_string(master_get(master, BACKGROUND_COLOR));
-		slide.background_color = color;
+		slide.background_color = Clutter.Color.from_string(master_get(master,
+		                                                   BACKGROUND_COLOR));
 		
 		switch (master)
 		{
@@ -357,9 +356,7 @@ mk	 * The path to the theme's extracted files.
 		}
 		
 		// set the color property
-		Clutter.Color color = {0, 0, 0, 255};	
-		color.from_string(element_get(type, TEXT_COLOR));
-		text.color = color;
+		text.color = Clutter.Color.from_string(element_get(type, TEXT_COLOR));
 		
 		// set size properties
 		text.x = x;
@@ -429,7 +426,7 @@ mk	 * The path to the theme's extracted files.
 		if (defaults == this)
 		{
 			error(_("Could not find property %s on master type %s."),
-			      master, prop);
+			      prop, master);
 		}
 		
 		return defaults.master_get(master, prop);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]