From eb38591c917f2eee733a04efddbfcfe31c460a18 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 23 Dec 2011 14:12:04 +0100 Subject: [PATCH] css: Add _gtk_style_property_get_id() --- gtk/gtkstyleproperty.c | 8 ++++++++ gtk/gtkstylepropertyprivate.h | 1 + 2 files changed, 9 insertions(+) diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c index f27cd730d..f1738b15c 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 5e33209b8..5692490e2 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, -- 2.43.2