Lines Matching refs:type_spec
750 GthTypeSpec *type_spec; in _gth_main_create_type_spec() local
754 type_spec = gth_type_spec_new (object_type); in _gth_main_create_type_spec()
762 if (type_spec->n_params == max_params - 1) { in _gth_main_create_type_spec()
767 if (type_spec->names == NULL) { in _gth_main_create_type_spec()
770 type_spec->names = g_new (const char *, max_params); in _gth_main_create_type_spec()
772 type_spec->names[i] = NULL; in _gth_main_create_type_spec()
775 if (type_spec->values == NULL) { in _gth_main_create_type_spec()
778 type_spec->values = g_new (GValue, max_params); in _gth_main_create_type_spec()
780 type_spec->values[i].g_type = 0; in _gth_main_create_type_spec()
792 type_spec->names[type_spec->n_params] = name; in _gth_main_create_type_spec()
793 g_value_init (&type_spec->values[type_spec->n_params], G_PARAM_SPEC_VALUE_TYPE (pspec)); in _gth_main_create_type_spec()
794 G_VALUE_COLLECT (&type_spec->values[type_spec->n_params], var_args, 0, &error); in _gth_main_create_type_spec()
798 g_value_unset (&type_spec->values[type_spec->n_params]); in _gth_main_create_type_spec()
801 type_spec->n_params++; in _gth_main_create_type_spec()
806 return type_spec; in _gth_main_create_type_spec()