diff options
-rw-r--r-- | docs/reference/gobject/tut_gobject.xml | 2 | ||||
-rw-r--r-- | 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 f5fe43a00..b34441b17 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 2745fd7f8..c18fbc43e 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); |