css: Add _gtk_style_property_get_id()

This commit is contained in:
Benjamin Otte 2011-12-23 14:12:04 +01:00
parent f6cf447cad
commit eb38591c91
2 changed files with 9 additions and 0 deletions

View File

@ -2444,6 +2444,14 @@ _gtk_style_property_is_inherit (const GtkStyleProperty *property)
return property->flags & GTK_STYLE_PROPERTY_INHERIT ? TRUE : FALSE;
}
guint
_gtk_style_property_get_id (const GtkStyleProperty *property)
{
g_return_val_if_fail (property != NULL, FALSE);
return property->id;
}
static gboolean
resolve_color (GtkStyleProperties *props,
GValue *value)

View File

@ -76,6 +76,7 @@ void _gtk_style_property_register (GParamSpec
GtkStyleUnsetFunc unset_func);
gboolean _gtk_style_property_is_inherit (const GtkStyleProperty *property);
guint _gtk_style_property_get_id (const GtkStyleProperty *property);
void _gtk_style_property_default_value (const GtkStyleProperty *property,
GtkStyleProperties *properties,