[gnome-devel-docs] platform-demos: guitar-tuner.js, fix bug 689707



commit b08f1d232694604722bc4a09fb641e7852e67183
Author: David King <amigadave amigadave com>
Date:   Sat Feb 23 10:01:26 2013 +0000

    platform-demos: guitar-tuner.js, fix bug 689707
    
    Reword signal handler description slightly to fix bug 689707.

 platform-demos/C/guitar-tuner.js.page |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/platform-demos/C/guitar-tuner.js.page b/platform-demos/C/guitar-tuner.js.page
index b9cdde9..f4c5a8d 100644
--- a/platform-demos/C/guitar-tuner.js.page
+++ b/platform-demos/C/guitar-tuner.js.page
@@ -143,7 +143,14 @@ B.connect("clicked", function(){
 e.connect("clicked", function(){
   playSound(frequencies.e);
 });]]></code>
-   <p>The method of connecting button clicks to playSound with the correct tune is by using the connect 
method of the button widget. So we choose a button to be connected and type E.connect("clicked", 
function(){playSound(frequencies.E);}); The connect tells that when pushing E, something should happen. The 
"clicked" tells the type of something happening to E and then in the function(){}; we the playSound happen 
with the correct tune that should be associated to the button.</p>
+   <p>The method of connecting button clicks to playSound with the correct tune
+   is by using the connect method of the button widget. So we choose a button
+   to be connected and type <code>E.connect("clicked",
+   function(){playSound(frequencies.E);});</code> The <code>connect</code>
+   tells that when pushing E, something should happen. The <code>clicked</code>
+   tells the type of the signal happening to E and then in the
+   <code>function(){};</code> we call playSound with the correct note that
+   should be associated with the button.</p>
   </section>
   <section id="guitarjs">
     <title>The whole program</title>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]