seed r602 - trunk/examples/lightsoff
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r602 - trunk/examples/lightsoff
- Date: Wed, 31 Dec 2008 05:40:59 +0000 (UTC)
Author: racarr
Date: Wed Dec 31 05:40:59 2008
New Revision: 602
URL: http://svn.gnome.org/viewvc/seed?rev=602&view=rev
Log:
Add some extra .shows to lightsoff that seem to be required in some
circumstances which I can not begin to comprehend.
Modified:
trunk/examples/lightsoff/arrow.js
trunk/examples/lightsoff/score.js
Modified: trunk/examples/lightsoff/arrow.js
==============================================================================
--- trunk/examples/lightsoff/arrow.js (original)
+++ trunk/examples/lightsoff/arrow.js Wed Dec 31 05:40:59 2008
@@ -16,8 +16,8 @@
bkg = Clutter.Texture.new_from_file("./arrow-l.svg");
bkg.filter_quality = Clutter.TextureQuality.High;
-
this.add_actor(bkg);
+ bkg.show();
}
var toggle_arrow = function (actor, event)
Modified: trunk/examples/lightsoff/score.js
==============================================================================
--- trunk/examples/lightsoff/score.js (original)
+++ trunk/examples/lightsoff/score.js Wed Dec 31 05:40:59 2008
@@ -48,12 +48,14 @@
texture = null;
var num = new Clutter.CloneTexture({parent_texture:texture});
+ num.show();
num.set_position(num_margin + num_offset * i, 5);
num.set_size(num_width, num_height);
current_set.add_actor(num);
}
this.add_actor(current_set);
+ current_set.show();
if(old_set)
old_set.destroy();
@@ -63,6 +65,7 @@
// Implementation
this.add_actor(bkg);
+ bkg.show();
for(var i = 0; i < 5; i++)
{
@@ -70,6 +73,7 @@
off_i.set_position(num_margin + num_offset * i, 5);
off_i.set_size(num_width, num_height);
this.add_actor(off_i);
+ off_i.show();
}
for(var i = 0; i <= 9; i++)
@@ -80,6 +84,7 @@
bkg_top.set_position(1, 1);
this.add_actor(bkg_top);
+ bkg_top.show();
this.set_value(initial_score);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]