[gnome-devel-docs] demos: Random small fixes
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] demos: Random small fixes
- Date: Sun, 20 Mar 2011 00:18:33 +0000 (UTC)
commit d14a1a65427234bc46ceb6726322094a9ea29850
Author: Johannes Schmid <jhs gnome org>
Date: Sat Mar 19 19:04:12 2011 -0400
demos: Random small fixes
demos/C/guitar-tuner.vala.page | 4 ++--
demos/C/image-viewer.c.page | 3 +++
.../{image_viewer.c => image-viewer.c} | 0
3 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/demos/C/guitar-tuner.vala.page b/demos/C/guitar-tuner.vala.page
index d2ae685..4505b73 100644
--- a/demos/C/guitar-tuner.vala.page
+++ b/demos/C/guitar-tuner.vala.page
@@ -51,7 +51,7 @@
<em>gstreamer-0.10</em> from the list to include the <app>GStreamer</app> library into your project.</p>
</item>
<item>
- <p>Click <gui>Finished</gui> and the project will be created for you. Open <file>src/main.c</file> from the <gui>Project</gui> or <gui>File</gui> tabs. You should see some code which starts with the lines:</p>
+ <p>Click <gui>Finished</gui> and the project will be created for you. Open <file>src/guitar_tuner.vala</file> from the <gui>Project</gui> or <gui>File</gui> tabs. You should see some code which starts with the lines:</p>
<code mime="text/x-valasrc"><![CDATA[
using GLib;
using Gtk;]]></code>
@@ -140,7 +140,7 @@ that need special treating while linking to be found at runtime.</p>
<title>Set up the pipeline</title>
<p>In this simple example we will use a tone generator source called <code>audiotestsrc</code> and send the output to the default system sound device, <code>autoaudiosink</code>. We only need to configure the frequency of the tone generator; this is accessible through the <code>freq</code> property of <code>audiotestsrc</code>.</p>
- <p>Insert the following line into <file>main.vala</file> inside our <code>Main</code> class:</p>
+ <p>Insert the following line into <file>guitar_tuner.vala</file> inside our <code>Main</code> class:</p>
<code mime="text/x-valasrc"><![CDATA[
Gst.Element sink;
Gst.Element source;
diff --git a/demos/C/image-viewer.c.page b/demos/C/image-viewer.c.page
index a213f44..04f4c87 100644
--- a/demos/C/image-viewer.c.page
+++ b/demos/C/image-viewer.c.page
@@ -135,6 +135,9 @@ create_window (void)
<item>
<p>The last <code>g_signal_connect()</code> makes sure that the application exits when the window is closed.</p>
</item>
+ <item>
+ <p>As a last step, make sure to replace the <code>gtk_widget_show</code> call in the <code>main()</code> function by
+ <code>gtk_widget_show_all()</code> to show the window and all the widgets it contains.</p>
</steps>
</section>
diff --git a/demos/C/image-viewer/image_viewer.c b/demos/C/image-viewer/image-viewer.c
similarity index 100%
rename from demos/C/image-viewer/image_viewer.c
rename to demos/C/image-viewer/image-viewer.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]