[ease] Type checking didn't work, so let's use strings for now.



commit 3071b81a280427bb678a0aa3430141adb01eb286
Author: Nate Stedman <natesm gmail com>
Date:   Fri Jun 11 02:43:33 2010 -0400

    Type checking didn't work, so let's use strings for now.

 src/JSONParser.vala |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/JSONParser.vala b/src/JSONParser.vala
index aeb36c7..34ac452 100644
--- a/src/JSONParser.vala
+++ b/src/JSONParser.vala
@@ -20,8 +20,8 @@
  */
 public static class Ease.JSONParser
 {
-	private const Type VIDEO_TYPE = typeof(VideoElement);
-	private const Type IMAGE_TYPE = typeof(ImageElement);
+	private const string VIDEO_TYPE = "EaseVideoElement";
+	private const string IMAGE_TYPE = "EaseImageElement";
 
 	/**
 	 * Parses a document JSON file, creating a { link Document}.
@@ -152,7 +152,7 @@ public static class Ease.JSONParser
 		Element element;
 		
 		// find the proper type
-		var type = Type.from_name(obj.get_string_member("element_type"));
+		var type = obj.get_string_member("element_type");
 		
 		// create the element
 		if (type == VIDEO_TYPE)



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