summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk/gtkstyleproperty.c8
-rw-r--r--gtk/gtkstylepropertyprivate.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c
index f27cd730dc..f1738b15cc 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 5e33209b88..5692490e25 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,