[gtk+/wip/css: 6/153] css: Add _gtk_style_property_get_count()



commit 31cad1ecc922225e3cb895dc5b52a9fafd503b73
Author: Benjamin Otte <otte redhat com>
Date:   Fri Dec 23 14:30:59 2011 +0100

    css: Add _gtk_style_property_get_count()

 gtk/gtkstyleproperty.c        |    6 ++++++
 gtk/gtkstylepropertyprivate.h |    2 ++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c
index f1738b1..681acf6 100644
--- a/gtk/gtkstyleproperty.c
+++ b/gtk/gtkstyleproperty.c
@@ -2241,6 +2241,12 @@ border_color_default_value (GtkStyleProperties *props,
 
 /*** API ***/
 
+guint
+_gtk_style_property_get_count (void)
+{
+  return __n_style_properties;
+}
+
 static void
 css_string_funcs_init (void)
 {
diff --git a/gtk/gtkstylepropertyprivate.h b/gtk/gtkstylepropertyprivate.h
index 5692490..fc52ae5 100644
--- a/gtk/gtkstylepropertyprivate.h
+++ b/gtk/gtkstylepropertyprivate.h
@@ -63,6 +63,8 @@ struct _GtkStyleProperty
   GtkStyleUnsetFunc         unset_func;
 };
 
+guint                    _gtk_style_property_get_count     (void);
+
 const GtkStyleProperty * _gtk_style_property_lookup        (const char             *name);
 
 void                     _gtk_style_property_register      (GParamSpec             *pspec,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]