[gtk+/wip/css: 19/135] styleproperty: Add _gtk_style_property_get_initial_value()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/css: 19/135] styleproperty: Add _gtk_style_property_get_initial_value()
- Date: Wed, 4 Jan 2012 03:30:51 +0000 (UTC)
commit e313586991c90c57b1a417a60d71013d19c36592
Author: Benjamin Otte <otte redhat com>
Date: Thu Dec 29 14:04:19 2011 +0100
styleproperty: Add _gtk_style_property_get_initial_value()
gtk/gtkstyleproperty.c | 8 ++++++++
gtk/gtkstylepropertyprivate.h | 2 ++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c
index 518a0e4..5eade84 100644
--- a/gtk/gtkstyleproperty.c
+++ b/gtk/gtkstyleproperty.c
@@ -2605,6 +2605,14 @@ _gtk_style_property_resolve (const GtkStyleProperty *property,
g_value_copy (val, val_out);
}
+const GValue *
+_gtk_style_property_get_initial_value (const GtkStyleProperty *property)
+{
+ g_return_val_if_fail (property != NULL, NULL);
+
+ return &property->initial_value;
+}
+
gboolean
_gtk_style_property_is_shorthand (const GtkStyleProperty *property)
{
diff --git a/gtk/gtkstylepropertyprivate.h b/gtk/gtkstylepropertyprivate.h
index faa0e5b..e34c208 100644
--- a/gtk/gtkstylepropertyprivate.h
+++ b/gtk/gtkstylepropertyprivate.h
@@ -82,6 +82,8 @@ void _gtk_style_property_default_value (const GtkStyleProper
GtkStyleProperties *properties,
GtkStateFlags state,
GValue *value);
+const GValue * _gtk_style_property_get_initial_value
+ (const GtkStyleProperty *property);
void _gtk_style_property_resolve (const GtkStyleProperty *property,
GtkStyleProperties *properties,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]