Method

GrlMediaset_rating

since: 0.1.5

Declaration [src]

void
grl_media_set_rating (
  GrlMedia* media,
  gfloat rating,
  gfloat max
)

Description [src]

This method receives a rating and its scale and normalizes it on a scale from 0…5 to match the usual five-star rating.

Available since: 0.1.5

Parameters

rating

Type: gfloat

A rating value.

max

Type: gfloat

Maximum rating value.