[gnome-devel-docs: 6/19] Correct placement of play_sound()



commit 8eea58c4a11930a891d88bde956a9a5b18032ea6
Author: P. F. Chimento <philip chimento gmail com>
Date:   Mon Mar 21 01:18:58 2011 +0100

    Correct placement of play_sound()
    
    Should be above the signal handler, since it's static and will be called
    in the signal handler.

 platform-demos/C/guitar-tuner.c.page |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/platform-demos/C/guitar-tuner.c.page b/platform-demos/C/guitar-tuner.c.page
index 05405b2..237eb42 100644
--- a/platform-demos/C/guitar-tuner.c.page
+++ b/platform-demos/C/guitar-tuner.c.page
@@ -147,7 +147,7 @@ void on_button_clicked (GtkWidget* button, gpointer user_data)
   <code mime="text/x-csrc"><![CDATA[#include <gst/gst.h>]]></code>
   <p>This includes the GStreamer library. You also need to add a line to initialize GStreamer; put the following code on the line above the <code>gtk_init</code> call in the <code>main</code> function:</p>
   <code><![CDATA[gst_init (&argc, &argv);]]></code>
-  <p>Then, copy the following function into <file>main.c</file> somewhere:</p>
+  <p>Then, copy the following function into <file>main.c</file> above the empty <code>on_button_clicked</code> function:</p>
   <code mime="text/x-csrc"><![CDATA[static void 
 play_sound (gdouble frequency)
 {



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