GimpUnitMenu
Widget for selecting a #GimpUnit.
This widget provides a #GtkOptionMenu which contains a list of #GimpUnit's.
You can specify the string that will be displayed for each unit by
passing a printf-like @format string to gimp_unit_menu_new().
The constructor also lets you choose if the menu should contain items
for GIMP_UNIT_PIXEL, GIMP_UNIT_PERCENT and a "More..." item which will
pop up a dialog for selecting user-defined units.
Whenever the user selects a unit from the menu or the dialog, the
"unit_changed" signal will be emitted.
#GimpUnit
#GimpSizeEntry
gimp_coordinates_new()
% f
Factor (how many units make up an inch)
% y
Symbol (e.g. "''" for GIMP_UNIT_INCH)
% a
Abbreviation
% s
Singular
% p
Plural
%%
Literal percent
@format:
@unit:
@show_pixels:
@show_percent:
@show_custom:
@Returns:
@gum:
@unit:
@gum:
@Returns:
This signal is emitted whenever the user selects a #GimpUnit from the
#GimpUnitMenu.
@gimpunitmenu: the object which received the signal.