[gtk+/wip/cssvalue] xxx: arrayvalue
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/cssvalue] xxx: arrayvalue
- Date: Mon, 2 Apr 2012 09:19:07 +0000 (UTC)
commit ba67a9ebb849eaa00210fac8ddce57ed52905899
Author: Benjamin Otte <otte redhat com>
Date: Sun Apr 1 06:27:29 2012 +0200
xxx: arrayvalue
gtk/gtkcssarrayvalue.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssarrayvalue.c b/gtk/gtkcssarrayvalue.c
index 34f2e26..5260eaf 100644
--- a/gtk/gtkcssarrayvalue.c
+++ b/gtk/gtkcssarrayvalue.c
@@ -83,7 +83,7 @@ gtk_css_value_array_print (const GtkCssValue *value,
{
if (i > 0)
g_string_append (string, ", ");
- _gtk_css_value_print (value->values[i]);
+ _gtk_css_value_print (value->values[i], string);
}
}
@@ -115,6 +115,7 @@ _gtk_css_array_value_get_nth (const GtkCssValue *value,
{
g_return_val_if_fail (value != NULL, NULL);
g_return_val_if_fail (value->class == >K_CSS_VALUE_ARRAY, NULL);
+ g_return_val_if_fail (value->n_values > 0, NULL);
return value->values[i % value->n_values];
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]