Next: , Previous: Property Structure Definitions, Up: Property Editor Widgets



7.6.2 Unit Lists

File: gui/units.c

The unit editor widgets are combo boxes containing the list of units for the particular property quantity. These lists are stored in GtkListStore objects and maintained using the kernel unit hooks. The same list objects are used in the Unit Manager (see The Unit Manager) to make all editing changes appear in all lists at once. If the user adds, deletes, or changes a unit, then the GtkListStore itself emits signals for all widgets that display its contents; we do not have to do anything more.