[glib] Point out that g_type_init() is required
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Point out that g_type_init() is required
- Date: Thu, 26 Aug 2010 02:12:07 +0000 (UTC)
commit 925b4231dc7af90fa9ec2c442e640ebe20aedb5c
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Aug 25 22:07:59 2010 -0400
Point out that g_type_init() is required
docs/reference/gio/overview.xml | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/gio/overview.xml b/docs/reference/gio/overview.xml
index 0d5b057..5fdfbf8 100644
--- a/docs/reference/gio/overview.xml
+++ b/docs/reference/gio/overview.xml
@@ -182,6 +182,12 @@
To do so, use the <filename>gio-unix-2.0.pc</filename> file
instead of <filename>gio-2.0.pc</filename>
</para>
+
+ <para>
+ Since GIO is based on GObject, you need to call g_type_init()
+ before you can use any GIO functions. If your application uses
+ GTK+, this is already taken care of by gtk_init().
+ </para>
</chapter>
<chapter>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]