seed r736 - trunk/examples
- From: hortont svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r736 - trunk/examples
- Date: Wed, 14 Jan 2009 20:48:52 +0000 (UTC)
Author: hortont
Date: Wed Jan 14 20:48:52 2009
New Revision: 736
URL: http://svn.gnome.org/viewvc/seed?rev=736&view=rev
Log:
Fixing examples to match new enum typing.
Modified:
trunk/examples/Gnio-server.js
trunk/examples/clutter-cogl.js
trunk/examples/json-packing.js
trunk/examples/n-oscillator.js
Modified: trunk/examples/Gnio-server.js
==============================================================================
--- trunk/examples/Gnio-server.js (original)
+++ trunk/examples/Gnio-server.js Wed Jan 14 20:48:52 2009
@@ -4,8 +4,8 @@
// I don't think this is the right way of doing things.
var r = new Gnio.Resolver();
-var sock = new Gnio.Socket({domain: Gnio.SocketDomain.Inet,
- type: Gnio.SocketType.Stream});
+var sock = new Gnio.Socket({domain: Gnio.SocketDomain.INET,
+ type: Gnio.SocketType.STREAM});
var addr = r.lookup_name("localhost");
Modified: trunk/examples/clutter-cogl.js
==============================================================================
--- trunk/examples/clutter-cogl.js (original)
+++ trunk/examples/clutter-cogl.js Wed Jan 14 20:48:52 2009
@@ -86,7 +86,7 @@
var size = ((RIPPLE_W * 2) * (i+1)) + (RIPPLE_G * i);
actor.width = actor.height = size;
- actor.set_anchor_point_from_gravity(Clutter.Gravity.Center);
+ actor.set_anchor_point_from_gravity(Clutter.Gravity.CENTER);
actor.x = x;
actor.y = y;
actor.opacity = 0x80;
Modified: trunk/examples/json-packing.js
==============================================================================
--- trunk/examples/json-packing.js (original)
+++ trunk/examples/json-packing.js Wed Jan 14 20:48:52 2009
@@ -13,10 +13,10 @@
child: label,
fill: false,
padding: 10,
- position: Gtk.PackType.End
+ position: Gtk.PackType.END
},
{
- child:button,
+ child: button,
fill: false,
padding: 100,
expand: true
Modified: trunk/examples/n-oscillator.js
==============================================================================
--- trunk/examples/n-oscillator.js (original)
+++ trunk/examples/n-oscillator.js Wed Jan 14 20:48:52 2009
@@ -49,12 +49,12 @@
{
if (playing == false)
{
- pipeline.set_state(Gst.State.Playing);
+ pipeline.set_state(Gst.State.PLAYING);
playing = true;
}
else
{
- pipeline.set_state(Gst.State.Paused);
+ pipeline.set_state(Gst.State.PAUSED);
playing = false;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]