valueSetFraction

fnvoid valueSetFraction(gobject.value.Value value, int numerator, int denominator)

Sets value to the fraction specified by numerator over denominator. The fraction gets reduced to the smallest numerator and denominator, and if necessary the sign is moved to the numerator.

Parameters

valuea GValue initialized to #GST_TYPE_FRACTION
numeratorthe numerator of the fraction
denominatorthe denominator of the fraction