APPENDIX AGTK+ Properties

GObject provides a property system, which allows you to customize how widgets interact with the user and how they are drawn on the screen. In the following sections, you will be provided with a complete reference to widget and child properties available in GTK+ 2.10.

GTK+ Properties

Every class derived from GObject can create any number of properties. In GTK+, these properties store information about the current state of the widget. For example, GtkButton has a property called relief that defines the type of relief border used by the button in its normal state.

In the following code, g_object_get() was used to retrieve the current value stored by the button's relief property. This function accepts a NULL-terminated ...

Get Foundations of GTK+ Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.