[gnome-devel-docs: 12/19] Proofread Guitar Tuner C code
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs: 12/19] Proofread Guitar Tuner C code
- Date: Mon, 21 Mar 2011 23:08:40 +0000 (UTC)
commit c4057bc7531f9a6ceb40d5bf9648b1f5da4b27d2
Author: P. F. Chimento <philip chimento gmail com>
Date: Mon Mar 21 00:13:20 2011 +0100
Proofread Guitar Tuner C code
Proofread the comments in the guitar-tuner.c file; and gst_init() should
be called before any GLib functions, which are presumably called in
gtk_init(), so moved gst_init() before gtk_init(). Besides, the tutorial
also says to put gst_init() first.
platform-demos/C/guitar-tuner/guitar-tuner.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/platform-demos/C/guitar-tuner/guitar-tuner.c b/platform-demos/C/guitar-tuner/guitar-tuner.c
index 5c06f68..98a97c9 100644
--- a/platform-demos/C/guitar-tuner/guitar-tuner.c
+++ b/platform-demos/C/guitar-tuner/guitar-tuner.c
@@ -5,7 +5,7 @@
#include <gst/gst.h>
#include <glib/gi18n.h>
-/* For testing propose use the local (not installed) ui file */
+/* For testing purposes, use the local (not installed) ui file */
/* #define UI_FILE PACKAGE_DATA_DIR"/guitar_tuner/ui/guitar_tuner.ui" */
#define UI_FILE "src/guitar_tuner.ui"
@@ -82,10 +82,9 @@ main (int argc, char *argv[])
GtkWidget *window;
GtkBuilder *builder;
-
/* Initialize gtk+ and gstreamer */
- gtk_init (&argc, &argv);
gst_init (&argc, &argv);
+ gtk_init (&argc, &argv);
builder = gtk_builder_new ();
gtk_builder_add_from_file (builder, UI_FILE, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]