GtkStyle is a structure that is used to define
the colors displayed in any widget, or across an application. Being a
GtkWidget property, it is accessible through all
objects that take up screen space, using the syntax:
It is also possible to create a new GtkStyle object in the normal way,
e.g.
or to take the default application style:
in order to change the style across an application.
Setting a style across an application can also be achieved by using
rc files. There are two in the PHP-GTK test directory which are used
in gtk.php.
The style functions are generally not buggy, the only known exception
being where the text and
base properties are intended to
describe text and its normally-white background. In some cases this
has not worked, and you may find that you need to use
fg to color the text.
In all cases where the property type is given as
array, what is being referred to is an array
consisting of the five GtkStateType states.