seed r164 - in trunk: . examples/shader
- From: hortont svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r164 - in trunk: . examples/shader
- Date: Fri, 7 Nov 2008 16:30:55 +0000 (UTC)
Author: hortont
Date: Fri Nov 7 16:30:55 2008
New Revision: 164
URL: http://svn.gnome.org/viewvc/seed?rev=164&view=rev
Log:
Re-added authors file; added splitview and fixed positioning of shader example.
Modified:
trunk/AUTHORS
trunk/examples/shader/main.js
Modified: trunk/AUTHORS
==============================================================================
--- trunk/AUTHORS (original)
+++ trunk/AUTHORS Fri Nov 7 16:30:55 2008
@@ -0,0 +1,3 @@
+* Robert Carr <racarr svn gnome org>
+* Tim Horton <hortont svn gnome org>
+* Matt Arsenault <arsenm2 rpi edu>
Modified: trunk/examples/shader/main.js
==============================================================================
--- trunk/examples/shader/main.js (original)
+++ trunk/examples/shader/main.js Fri Nov 7 16:30:55 2008
@@ -24,28 +24,33 @@
notebook.append_page(shaderfield.hbox, new Gtk.Label({label:"Fragment"}));
reflection.width = reflection.height = texture.width = texture.height = 300;
+var pane = new Gtk.VPaned();
+
+pane.add1(gtkstage);
+pane.add2(notebook);
+
+pane.set_position(400);
gtkstage.set_size_request(500,500);
-vbox.pack_start(gtkstage, false, true);
-vbox.pack_start(notebook, true, true);
+vbox.pack_start(pane, true, true);
window.add(vbox);
stage.add_actor(texture);
stage.add_actor(reflection);
+window.show_all();
+stage.show_all();
+
reflection.anchor_x = texture.anchor_x = texture.width/2;
reflection.anchor_y = texture.anchor_y = texture.height/2;
-texture.x = stage.width/2-texture.width/4;
+texture.x = stage.width/2;
texture.y = stage.height/2;
-reflection.x = stage.width/2-texture.width/4;
+reflection.x = stage.width/2;
reflection.y = stage.height/2+texture.height;
reflection.rotation_angle_z = 180;
reflection.opacity = 80;
stage.color = c;
-window.show_all();
-stage.show_all();
-
Gtk.main();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]