From 5e26fb75a074ca1c641a94ddca53296300fb79a5 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 21 Nov 2010 18:00:30 -0500 Subject: [PATCH] Add GtkStyleProperties to the docs --- docs/reference/gtk/gtk-docs.sgml | 1 + docs/reference/gtk/tmpl/gtkenums.sgml | 13 +++++++++++++ gtk/gtkstyleproperties.c | 19 +++++++++++++++++++ 3 files changed, 33 insertions(+) diff --git a/docs/reference/gtk/gtk-docs.sgml b/docs/reference/gtk/gtk-docs.sgml index bb9f0cd7fc..5214878f87 100644 --- a/docs/reference/gtk/gtk-docs.sgml +++ b/docs/reference/gtk/gtk-docs.sgml @@ -55,6 +55,7 @@ Theming in GTK+ + diff --git a/docs/reference/gtk/tmpl/gtkenums.sgml b/docs/reference/gtk/tmpl/gtkenums.sgml index 4f37bace74..24b4d335af 100644 --- a/docs/reference/gtk/tmpl/gtkenums.sgml +++ b/docs/reference/gtk/tmpl/gtkenums.sgml @@ -313,6 +313,19 @@ Used to change the appearance of an outline typically provided by a #GtkFrame. @GTK_SHADOW_ETCHED_IN: The outline has a sunken 3d appearance. @GTK_SHADOW_ETCHED_OUT: The outline has a raised 3d appearance + + + + + +@GTK_STATE_NORMAL: +@GTK_STATE_ACTIVE: +@GTK_STATE_PRELIGHT: +@GTK_STATE_SELECTED: +@GTK_STATE_INSENSITIVE: +@GTK_STATE_INCONSISTENT: +@GTK_STATE_FOCUSED: + Used to customize the appearance of a #GtkToolbar. Note that diff --git a/gtk/gtkstyleproperties.c b/gtk/gtkstyleproperties.c index 3adad1f373..5c54b21da8 100644 --- a/gtk/gtkstyleproperties.c +++ b/gtk/gtkstyleproperties.c @@ -32,6 +32,25 @@ #include "gtk9slice.h" #include "gtkintl.h" +/** + * SECTION:gtkstyleproperties + * @Short_description: Store for style property information + * @Title: GtkStyleProperties + * + * GtkStyleProperties provides the storage for style information + * that is used by #GtkStyleContext and other #GtkStyleProvider + * implementations. + * + * Before style properties can be stored in GtkStyleProperties, they + * must be registered with gtk_style_properties_register_property(). + * + * Unless you are writing a #GtkStyleProvider implementation, you + * are unlikely to use this API directly, as gtk_style_context_get() + * and its variants are the preferred way to access styling information + * from widget implementations and theming engine implementations + * should use the APIs provided by #GtkThemingEngine instead. + */ + typedef struct GtkStylePropertiesPrivate GtkStylePropertiesPrivate; typedef struct PropertyData PropertyData; typedef struct PropertyNode PropertyNode;