Creates a new NumberPairEntry widget, which is a GtkEntry that accepts two numbers separated by a separator.
Typical input example with a 'x' separator: "377x233".
The widget supports simplification of the entered ratio when the input ends in '=', if "allow-simplification" is TRUE.
The "separators" property contains a string of characters valid as separators when parsing input. The first separator is used when displaying the current values.
It is possible to specify what range of values that shall be considered as valid when parsing user input, by changing "min-valid-value" and "max-valid-value".
The first separator of separators is used to display the current value.
| separators |
The allowed separators. |
| allow_simplification |
Whether to do simplification on the entered term. |
| min_valid_value |
The minimum allowed result value. |
| max_valid_value |
The maximum allowed result value. |
|
The new NumberPairEntry widget. |