[glib] docs: Use G_VALUE_INIT
- From: Javier JardÃn <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] docs: Use G_VALUE_INIT
- Date: Sun, 2 Oct 2011 16:23:19 +0000 (UTC)
commit 91713e950ff20b6330ca66fe51c32beb1453e87e
Author: Javier JardÃn <jjardon gnome org>
Date: Fri Sep 30 17:04:23 2011 +0100
docs: Use G_VALUE_INIT
docs/reference/gobject/tut_gobject.xml | 2 +-
docs/reference/gobject/tut_gtype.xml | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/docs/reference/gobject/tut_gobject.xml b/docs/reference/gobject/tut_gobject.xml
index f5fe43a..b34441b 100644
--- a/docs/reference/gobject/tut_gobject.xml
+++ b/docs/reference/gobject/tut_gobject.xml
@@ -603,7 +603,7 @@ maman_bar_class_init (MamanBarClass *klass)
/************************************************/
GObject *bar;
-GValue val = { 0, };
+GValue val = G_VALUE_INIT;
bar = g_object_new (MAMAN_TYPE_SUBBAR, NULL);
diff --git a/docs/reference/gobject/tut_gtype.xml b/docs/reference/gobject/tut_gtype.xml
index 2745fd7..c18fbc4 100644
--- a/docs/reference/gobject/tut_gtype.xml
+++ b/docs/reference/gobject/tut_gtype.xml
@@ -136,8 +136,8 @@ GType g_type_register_fundamental (GType type_id,
<programlisting>
static void test_int (void)
{
- GValue a_value = {0, };
- GValue b_value = {0, };
+ GValue a_value = G_VALUE_INIT;
+ GValue b_value = G_VALUE_INIT;
guint64 a, b;
a = 0xdeadbeaf;
@@ -160,8 +160,8 @@ static void test_int (void)
static void test_object (void)
{
GObject *obj;
- GValue obj_vala = {0, };
- GValue obj_valb = {0, };
+ GValue obj_vala = G_VALUE_INIT;
+ GValue obj_valb = G_VALUE_INIT;
obj = g_object_new (MAMAN_TYPE_BAR, NULL);
g_value_init (&obj_vala, MAMAN_TYPE_BAR);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]