[gtk+/wip/css: 4/167] css: Add _gtk_style_property_get_id()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/css: 4/167] css: Add _gtk_style_property_get_id()
- Date: Sun, 8 Jan 2012 04:43:05 +0000 (UTC)
commit c6a6deaf4b8a138f5d65cf7ab9563106d73bd69f
Author: Benjamin Otte <otte redhat com>
Date: Fri Dec 23 14:12:04 2011 +0100
css: Add _gtk_style_property_get_id()
gtk/gtkstyleproperty.c | 8 ++++++++
gtk/gtkstylepropertyprivate.h | 1 +
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c
index f27cd73..f1738b1 100644
--- a/gtk/gtkstyleproperty.c
+++ b/gtk/gtkstyleproperty.c
@@ -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)
diff --git a/gtk/gtkstylepropertyprivate.h b/gtk/gtkstylepropertyprivate.h
index 5e33209..5692490 100644
--- a/gtk/gtkstylepropertyprivate.h
+++ b/gtk/gtkstylepropertyprivate.h
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]