seed r302 - in trunk: doc libseed



Author: hortont
Date: Sat Nov 22 04:09:36 2008
New Revision: 302
URL: http://svn.gnome.org/viewvc/seed?rev=302&view=rev

Log:
Fix docs.


Modified:
   trunk/doc/runtime.html
   trunk/libseed/seed-builtins.c

Modified: trunk/doc/runtime.html
==============================================================================
--- trunk/doc/runtime.html	(original)
+++ trunk/doc/runtime.html	Sat Nov 22 04:09:36 2008
@@ -249,8 +249,10 @@
 <p>
 JavaScript being a prototypal language, rather than a class based language, has no strict inheritance model. A plethora of documentation can be found on the internet for implementing various inheritance models inside your program. However, a clear and common use case is to subclass GObjects, and Seed provides an interface to define and implement new GTypes.
 </p>
-<b>Type Objects</b>
+<p><b>Type Objects</b></p>
+<p>
 To implement a new GType, an object describing the type is required.
+</p>
 <pre>
   NewType = {
      parent: ParentTypeConstructor,
@@ -290,6 +292,8 @@
 label.show();
 label.say_goodbye();
 </pre>
+<p>
 The label inherits all the methods, signals, and properties of the Gtk.Label class and it's parents, and internally has it's own GType.
+</p>
 </body>
 </html>

Modified: trunk/libseed/seed-builtins.c
==============================================================================
--- trunk/libseed/seed-builtins.c	(original)
+++ trunk/libseed/seed-builtins.c	Sat Nov 22 04:09:36 2008
@@ -107,10 +107,10 @@
 
 JSValueRef
 seed_readline(JSContextRef ctx,
-	      JSObjectRef function,
-	      JSObjectRef this_object,
-	      size_t argumentCount,
-	      const JSValueRef arguments[], JSValueRef * exception)
+			  JSObjectRef function,
+			  JSObjectRef this_object,
+			  size_t argumentCount,
+			  const JSValueRef arguments[], JSValueRef * exception)
 {
     // TODO: Should add an interface to rl_bind_key
     // Perhaps Seed.readline_bind('a', function)
@@ -122,12 +122,12 @@
 
     if (argumentCount != 1)
     {
-	gchar *mes =
-	    g_strdup_printf("Seed.readline Expected 1 argument, "
-			    "got %d", argumentCount);
-	seed_make_exception(exception, "ArgumentError", mes);
-	g_free(mes);
-	return JSValueMakeNull(ctx);
+		gchar *mes =
+			g_strdup_printf("Seed.readline Expected 1 argument, "
+					"got %d", argumentCount);
+		seed_make_exception(exception, "ArgumentError", mes);
+		g_free(mes);
+		return JSValueMakeNull(ctx);
     }
 
     buf = seed_value_to_string(arguments[0], exception);
@@ -135,15 +135,15 @@
     str = readline(buf);
     if (str && *str)
     {
-	add_history(str);
-	valstr = seed_value_from_string(str, exception);
-	g_free(str);
+		add_history(str);
+		valstr = seed_value_from_string(str, exception);
+		g_free(str);
     }
 
     g_free(buf);
 
     if (valstr == 0)
-	valstr = JSValueMakeNull(ctx);
+		valstr = JSValueMakeNull(ctx);
 
     return valstr;
 }



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