Exemplo n.º 1
0
void
arv_gc_enumeration_set_int_value (ArvGcEnumeration *enumeration, gint64 value)
{
	g_return_if_fail (ARV_IS_GC_ENUMERATION (enumeration));

	if (enumeration->value)
		arv_gc_property_node_set_int64 (enumeration->value, value);
}
Exemplo n.º 2
0
void
arv_gc_boolean_set_value (ArvGcBoolean *gc_boolean, gboolean v_boolean)
{
	g_return_if_fail (ARV_IS_GC_BOOLEAN (gc_boolean));

	if (gc_boolean->value != NULL)
		arv_gc_property_node_set_int64 (gc_boolean->value,
						v_boolean ?
						arv_gc_boolean_get_on_value (gc_boolean) :
						arv_gc_boolean_get_off_value (gc_boolean));
}
Exemplo n.º 3
0
void
arv_gc_enumeration_set_int_value (ArvGcEnumeration *enumeration, gint64 value, GError **error)
{
	g_return_if_fail (ARV_IS_GC_ENUMERATION (enumeration));
	g_return_if_fail (error == NULL || *error == NULL);

	if (enumeration->value) {
		GError *local_error = NULL;

		arv_gc_property_node_set_int64 (enumeration->value, value, &local_error);

		if (local_error != NULL)
			g_propagate_error (error, local_error);
	}
}
Exemplo n.º 4
0
void
arv_gc_boolean_set_value (ArvGcBoolean *gc_boolean, gboolean v_boolean, GError **error)
{
	gboolean value;
	GError *local_error = NULL;

	g_return_if_fail (ARV_IS_GC_BOOLEAN (gc_boolean));
	g_return_if_fail (error == NULL || *error == NULL);

	if (v_boolean)
		value = arv_gc_boolean_get_on_value (gc_boolean, &local_error);
	else
		value = arv_gc_boolean_get_off_value (gc_boolean, &local_error);

	if (local_error != NULL) {
		g_propagate_error (error, local_error);
		return;
	}

	arv_gc_property_node_set_int64 (gc_boolean->value, value, &local_error);

	if (local_error != NULL)
		g_propagate_error (error, local_error);
}