[seed] [examples] Clutter 1.0 is stable; there's no reason to hold around 0.8 or 0.9 examples anymore. Depr
- From: Tim Horton <hortont src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [seed] [examples] Clutter 1.0 is stable; there's no reason to hold around 0.8 or 0.9 examples anymore. Depr
- Date: Sat, 1 Aug 2009 03:06:21 +0000 (UTC)
commit 4760f2f970f7e35bba97f737696beee4b4084f95
Author: Tim Horton <hortont424 gmail com>
Date: Fri Jul 31 23:05:40 2009 -0400
[examples] Clutter 1.0 is stable; there's no reason to hold around 0.8 or 0.9 examples anymore. Deprecate pong because it's horrible and never got ported from 0.8.
examples/{ => broken}/pong/Makefile.am | 0
examples/{ => broken}/pong/ball.png | Bin 1570 -> 1570 bytes
examples/{ => broken}/pong/midline.png | Bin 4741 -> 4741 bytes
examples/{ => broken}/pong/player.png | Bin 1671 -> 1671 bytes
examples/{ => broken}/pong/player2.png | Bin 1491 -> 1491 bytes
examples/{ => broken}/pong/pong.js | 0
examples/clutter-0.8.js | 118 ------------------
examples/{clutter-0.9.js => clutter-1.0.js} | 4 +-
.../{clutter-cairo.js => clutter-cairo-1.0.js} | 2 +-
examples/clutter-cogl-0.8.js | 126 --------------------
.../{clutter-cogl-0.9.js => clutter-cogl-1.0.js} | 15 +--
examples/clutter-pad/main.js | 3 -
examples/clutter-shader/ShaderEditor.js | 2 -
examples/clutter-shader/ShaderView.js | 2 -
examples/clutter-shader/main.js | 8 +-
15 files changed, 10 insertions(+), 270 deletions(-)
---
diff --git a/examples/pong/Makefile.am b/examples/broken/pong/Makefile.am
similarity index 100%
rename from examples/pong/Makefile.am
rename to examples/broken/pong/Makefile.am
diff --git a/examples/pong/ball.png b/examples/broken/pong/ball.png
similarity index 100%
rename from examples/pong/ball.png
rename to examples/broken/pong/ball.png
diff --git a/examples/pong/midline.png b/examples/broken/pong/midline.png
similarity index 100%
rename from examples/pong/midline.png
rename to examples/broken/pong/midline.png
diff --git a/examples/pong/player.png b/examples/broken/pong/player.png
similarity index 100%
rename from examples/pong/player.png
rename to examples/broken/pong/player.png
diff --git a/examples/pong/player2.png b/examples/broken/pong/player2.png
similarity index 100%
rename from examples/pong/player2.png
rename to examples/broken/pong/player2.png
diff --git a/examples/pong/pong.js b/examples/broken/pong/pong.js
similarity index 100%
rename from examples/pong/pong.js
rename to examples/broken/pong/pong.js
diff --git a/examples/clutter-0.9.js b/examples/clutter-1.0.js
similarity index 98%
rename from examples/clutter-0.9.js
rename to examples/clutter-1.0.js
index 1d7e707..008a7d7 100755
--- a/examples/clutter-0.9.js
+++ b/examples/clutter-1.0.js
@@ -1,6 +1,6 @@
#!/usr/bin/env seed
-imports.gi.versions.Clutter = "0.9";
+imports.gi.versions.Clutter = "1.0";
Clutter = imports.gi.Clutter;
GObject = imports.gi.GObject;
@@ -102,5 +102,3 @@ animate_rectangles(rectangles);
Clutter.main();
-
-
diff --git a/examples/clutter-cairo.js b/examples/clutter-cairo-1.0.js
similarity index 93%
rename from examples/clutter-cairo.js
rename to examples/clutter-cairo-1.0.js
index a9a9148..7fe4f19 100755
--- a/examples/clutter-cairo.js
+++ b/examples/clutter-cairo-1.0.js
@@ -1,7 +1,7 @@
#!/usr/bin/env seed
Canvas = imports.canvas;
-imports.gi.versions.Clutter = "0.9"
+imports.gi.versions.Clutter = "1.0";
Clutter = imports.gi.Clutter;
diff --git a/examples/clutter-cogl-0.9.js b/examples/clutter-cogl-1.0.js
similarity index 87%
rename from examples/clutter-cogl-0.9.js
rename to examples/clutter-cogl-1.0.js
index 2809ce0..737180c 100755
--- a/examples/clutter-cogl-0.9.js
+++ b/examples/clutter-cogl-1.0.js
@@ -1,6 +1,6 @@
#!/usr/bin/env seed
-imports.gi.versions.Clutter = "0.9";
+imports.gi.versions.Clutter = "1.0";
Clutter = imports.gi.Clutter;
GLib = imports.gi.GLib;
@@ -18,10 +18,6 @@ const RIPPLE_WX = RIPPLE_W;
const SCREEN_W = 640;
const SCREEN_H = 480;
-function deg_to_rad(x){
- return (((x) * 1024.0) / 360.0);
-}
-
Clutter.init(Seed.argv);
function destroy_actor(actor){
@@ -35,14 +31,11 @@ function circle_paint (actor){
Cogl.set_source_color(actor.fill_color);
Cogl.path_move_to(radius, radius);
- Cogl.path_arc(radius, radius, radius, radius,
- deg_to_rad(0),
- deg_to_rad(360));
+ Cogl.path_arc(radius, radius, radius, radius, 0, 360);
Cogl.path_line_to(radius - RIPPLE_WX/2, radius);
Cogl.path_arc(radius, radius,
- radius-RIPPLE_WX/2, radius-RIPPLE_WX/2,
- deg_to_rad(0),
- deg_to_rad(360));
+ radius-RIPPLE_WX/2, radius-RIPPLE_WX/2,
+ 0, 360);
Cogl.path_close();
Cogl.path_fill();
}
diff --git a/examples/clutter-pad/main.js b/examples/clutter-pad/main.js
index b83c77d..4829d84 100755
--- a/examples/clutter-pad/main.js
+++ b/examples/clutter-pad/main.js
@@ -1,8 +1,5 @@
#!/usr/bin/env seed
-imports.gi.versions.Clutter = "0.9";
-imports.gi.versions.GtkClutter = "0.9";
-
Clutter = imports.gi.Clutter;
Gtk = imports.gi.Gtk;
GtkSource = imports.gi.GtkSource;
diff --git a/examples/clutter-shader/ShaderEditor.js b/examples/clutter-shader/ShaderEditor.js
index d573a37..0e29669 100644
--- a/examples/clutter-shader/ShaderEditor.js
+++ b/examples/clutter-shader/ShaderEditor.js
@@ -1,7 +1,5 @@
#!/usr/bin/env seed
-imports.gi.versions.Clutter = "0.9";
-
Gtk = imports.gi.Gtk;
Clutter = imports.gi.Clutter;
GtkSource = imports.gi.GtkSource;
diff --git a/examples/clutter-shader/ShaderView.js b/examples/clutter-shader/ShaderView.js
index 058a431..58c179c 100644
--- a/examples/clutter-shader/ShaderView.js
+++ b/examples/clutter-shader/ShaderView.js
@@ -1,7 +1,5 @@
#!/usr/bin/env seed
-imports.gi.versions.Clutter = "0.9";
-
Gtk = imports.gi.Gtk;
Clutter = imports.gi.Clutter;
GtkSource = imports.gi.GtkSource;
diff --git a/examples/clutter-shader/main.js b/examples/clutter-shader/main.js
index fd80303..998de7a 100755
--- a/examples/clutter-shader/main.js
+++ b/examples/clutter-shader/main.js
@@ -1,8 +1,5 @@
#!/usr/bin/env seed
-imports.gi.versions.Clutter = "0.9";
-imports.gi.versions.GtkClutter = "0.9";
-
Clutter = imports.gi.Clutter;
Gtk = imports.gi.Gtk;
GtkSource = imports.gi.GtkSource;
@@ -28,9 +25,12 @@ var shader_view = new ShaderView.ShaderView();
var editor = new ShaderEditor.ShaderEditor();
editor.connect_shader_view(shader_view);
+var edbin = new Gtk.Frame();
+edbin.add(editor);
+
var pane = new Gtk.VPaned({position: 400});
pane.add1(gtkstage);
-pane.add2(editor);
+pane.add2(edbin);
window.add(pane);
stage.add_actor(shader_view);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]