PyMaemo/UI tutorial/Additions to GTK+

Additions to GTK+

A Hildon application might use any Gtk widget but in some cases could be needed to adapt those widgets to get that they fit perfectly.

Hildon provides a set of convenience functions to do that. The next sections explains these addictions.

Hildon Size Types

Hildon defines the following sizes to be used as sizes for widgets such as buttons or entries in your Hildon application.

Const Description
HILDON_SIZE_HALFSCREEN_WIDTH set to 50% screen width
HILDON_SIZE_FULLSCREEN_WIDTH set to 100% screen width
HILDON_SIZE_AUTO_HEIGHT set to automatic height
HILDON_SIZE_FINGER_HEIGHT set to finger height
HILDON_SIZE_THUMB_HEIGHT set to thumb height
HILDON_SIZE_AUTO set to automatic width and automatic height