static void
mex_media_controls_notify_download_cb (ClutterMedia     *media,
                                       gdouble           start,
                                       gdouble           stop,
                                       MexMediaControls *self)
{
    MexMediaControlsPrivate *priv = self->priv;

    mx_slider_set_buffer_value (MX_SLIDER (priv->slider), stop);
}
Beispiel #2
0
static void
mx_slider_set_property (GObject      *object,
                        guint         property_id,
                        const GValue *value,
                        GParamSpec   *pspec)
{
  MxSlider *self = MX_SLIDER (object);

  switch (property_id)
    {
    case PROP_VALUE:
      mx_slider_set_value (self, g_value_get_double (value));
      break;

    case PROP_BUFFER_VALUE:
      mx_slider_set_buffer_value (self, g_value_get_double (value));
      break;

    default:
      G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
    }
}