Re: style properties



Matthias Clasen wrote:

While looking into property documentation I came across the notion
of style properties. Can somebody explain these a bit ?

How are they different from ordinary properties ? (I have the suspicion that themes are relevant here) Should they be documented ? If yes, it seems that we're missing a bit of reflection API in this area,
namely

gtk_widget_class_find_style_property
gtk_widget_class_list_style_properties

analogous to what we have for child properties. Adding these
would allow me to cover style properties in gtkdoc-scangobj.
Style properties come from the gtkrc file, yes.

So for instance, I can set the "GtkScrollbar::has_secondary_backward_stepper" style property like so:
 style "scrollbar" {
     GtkScrollbar::has_secondary_backward_stepper = 1
 }
 class "GtkScrollbar" style "scrollbar"

So, yes they should be documented.

James.




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