[seed] Pango: Don't fail to clear actor selection if it's clicked twice
- From: Tim Horton <hortont src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] Pango: Don't fail to clear actor selection if it's clicked twice
- Date: Wed, 13 May 2009 18:15:26 -0400 (EDT)
commit f2adcd4207a7de64ca9e2064fb2911592bb3ccb2
Author: Tim Horton <hortont svn gnome org>
Date: Wed May 13 18:03:53 2009 -0400
Pango: Don't fail to clear actor selection if it's clicked twice
---
examples/pango.js | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/examples/pango.js b/examples/pango.js
index 86d18cf..d36c0d7 100755
--- a/examples/pango.js
+++ b/examples/pango.js
@@ -79,6 +79,12 @@ PangoActor = new GType({
for(var id in children)
if(children[id] != this)
children[id].set_selected(false);
+ else
+ {
+ if(this.timeline)
+ this.timeline.stop();
+ this.opacity = 255;
+ }
// Start a pulsing effect to indicate that this actor is selected
this.timeline = new Clutter.Timeline({fps:30, num_frames:628, loop:true});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]