]> Pileus Git - ~andy/gtk/commitdiff
css: Add _gtk_style_property_get_id()
authorBenjamin Otte <otte@redhat.com>
Fri, 23 Dec 2011 13:12:04 +0000 (14:12 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 9 Jan 2012 17:37:49 +0000 (18:37 +0100)
gtk/gtkstyleproperty.c
gtk/gtkstylepropertyprivate.h

index f27cd730dcd9caf023495a634aeb43ba53987004..f1738b15cc4384684a4ce3857bd875e29de05e57 100644 (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)
index 5e33209b88b825ec79f20aad2ca72f53b4a8e700..5692490e2577a06499629c5046e8f8776922d1dc 100644 (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,