test_enum_transformation (void)
{
GType type;
- GValue orig = { 0, };
- GValue xform = { 0, };
+ GValue orig = G_VALUE_INIT;
+ GValue xform = G_VALUE_INIT;
GEnumValue values[] = { {0,"0","0"}, {1,"1","1"}};
type = g_enum_register_static ("TestEnum", values);
test_gtype_value (void)
{
GType type;
- GValue value = { 0, };
- GValue copy = { 0, };
+ GValue value = G_VALUE_INIT;
+ GValue copy = G_VALUE_INIT;
g_value_init (&value, G_TYPE_GTYPE);
static void
test_collection (void)
{
- GValue value = { 0, };
+ GValue value = G_VALUE_INIT;
gchar *error;
g_value_init (&value, G_TYPE_CHAR);
static void
test_copying (void)
{
- GValue value = { 0, };
+ GValue value = G_VALUE_INIT;
gchar *error;
{
test_param_spec_char (void)
{
GParamSpec *pspec;
- GValue value = { 0, };
+ GValue value = G_VALUE_INIT;
gboolean modified;
pspec = g_param_spec_char ("char", "nick", "blurb",
test_param_spec_string (void)
{
GParamSpec *pspec;
- GValue value = { 0, };
+ GValue value = G_VALUE_INIT;
gboolean modified;
pspec = g_param_spec_string ("string", "nick", "blurb",
test_param_spec_override (void)
{
GParamSpec *ospec, *pspec;
- GValue value = { 0, };
+ GValue value = G_VALUE_INIT;
gboolean modified;
ospec = g_param_spec_char ("char", "nick", "blurb",
test_param_spec_gtype (void)
{
GParamSpec *pspec;
- GValue value = { 0, };
+ GValue value = G_VALUE_INIT;
gboolean modified;
pspec = g_param_spec_gtype ("gtype", "nick", "blurb",
test_param_spec_variant (void)
{
GParamSpec *pspec;
- GValue value = { 0, };
+ GValue value = G_VALUE_INIT;
gboolean modified;
pspec = g_param_spec_variant ("variant", "nick", "blurb",