seed r155 - in trunk: doc libseed tests
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r155 - in trunk: doc libseed tests
- Date: Fri, 7 Nov 2008 06:38:17 +0000 (UTC)
Author: racarr
Date: Fri Nov 7 06:38:17 2008
New Revision: 155
URL: http://svn.gnome.org/viewvc/seed?rev=155&view=rev
Log:
Update runtime documentation. Change gobject_parent to gsuper.
Modified:
trunk/doc/runtime.html
trunk/libseed/seed-types.c
trunk/tests/subclass.js
Modified: trunk/doc/runtime.html
==============================================================================
--- trunk/doc/runtime.html (original)
+++ trunk/doc/runtime.html Fri Nov 7 06:38:17 2008
@@ -215,7 +215,9 @@
<li><b>InvalidPropertyValue</b> - a property was set to a value out of range</li>
<li><b>PropertyError</b> - an error occurred in GLib while trying to set a property</li>
<li><b>NamespaceError</b> - Seed.import_namespace() was called with a nonexistant namespace or namespace version</li>
-<li><b>ArgumentError</b> - a function was called with the wrong number/type of arguments</li>
+<li><b>ArgumentError</b> - a function was called with the wrong number of arguments</li>
+<li><b>ConversionError</b> - one of the type conversion functions threw an exception </li>
+<li><b>TypeError</b> - a required argument was of the wrong type </li>
<li><b>SyntaxError</b> - a syntax error was thrown from JavaScriptCore</li>
<li><b>ParseError</b> - a parsing error was thrown from JavaScriptCore (make sure you close all of your brackets!)</li>
</ul>
@@ -239,5 +241,9 @@
<li><b>line</b> - the line on which the exception took place</li>
<li><b>sourceURL</b> - the source file, if any, in which the exception took place</li>
</ul>
+<div class="section"><b>Inheritance</b></div>
+<p>
+Seed
+</p>
</body>
</html>
Modified: trunk/libseed/seed-types.c
==============================================================================
--- trunk/libseed/seed-types.c (original)
+++ trunk/libseed/seed-types.c Fri Nov 7 06:38:17 2008
@@ -1057,7 +1057,7 @@
JSValueRef object;
if(!JSValueIsObject(eng->context, val))
return NULL;
- object = seed_value_get_property(val, "gobject_parent");
+ object = seed_value_get_property(val, "gsuper");
if (val && object && JSValueIsObject(eng->context, object));
{
JSValueRef ref_data = 0;
Modified: trunk/tests/subclass.js
==============================================================================
--- trunk/tests/subclass.js (original)
+++ trunk/tests/subclass.js Fri Nov 7 06:38:17 2008
@@ -9,20 +9,20 @@
function HelloLabel()
{
- this.gobject_parent = new Gtk.Label({label: "Hello World"});
+ this.gsuper = new Gtk.Label({label: "Hello World"});
}
HelloLabel.prototype = Seed.prototype(Gtk.Label);
function FooedHelloLabel()
{
- this.gobject_parent = new HelloLabel();
+ this.gsuper = new HelloLabel();
this.fooed = true;
}
FooedHelloLabel.prototype = HelloLabel.prototype;
function NotALabel()
{
- this.gobject_parent = 3;
+ this.gsuper = 3;
}
var w = new Gtk.Window();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]