[gtk+/wip/css: 12/36] styleproperties: Add a warning
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/css: 12/36] styleproperties: Add a warning
- Date: Wed, 18 Jan 2012 09:39:31 +0000 (UTC)
commit 3cfc8251cbbc0ffbeae70a93f41170ff378cdc52
Author: Benjamin Otte <otte redhat com>
Date: Sat Jan 14 17:20:15 2012 +0100
styleproperties: Add a warning
GtkStyleProperties stores computed values. Make sure it does.
gtk/gtkstyleproperties.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstyleproperties.c b/gtk/gtkstyleproperties.c
index a92d722..4643a93 100644
--- a/gtk/gtkstyleproperties.c
+++ b/gtk/gtkstyleproperties.c
@@ -439,6 +439,8 @@ _gtk_style_properties_set_property_by_property (GtkStyleProperties *props,
PropertyData *prop;
GValue *val;
+ g_return_if_fail (G_VALUE_TYPE (value) == _gtk_css_style_property_get_computed_type (style_prop));
+
priv = props->priv;
prop = g_hash_table_lookup (priv->properties, style_prop);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]