docs: Use G_VALUE_INIT

This commit is contained in:
Javier Jardón 2011-09-30 17:04:23 +01:00
parent 406f7d2b39
commit 91713e950f
2 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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 (&amp;obj_vala, MAMAN_TYPE_BAR);