[gnome-devel-docs: 4/19] Proofread Guitar Tuner C code
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs: 4/19] Proofread Guitar Tuner C code
- Date: Mon, 21 Mar 2011 23:08:00 +0000 (UTC)
commit 4b76931aa46341981daaa69898bc1a21d7c632f3
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]