Ejemplo n.º 1
0
/**
 * rb_source_get_status:
 * @source: a #RBSource
 * @text: holds the returned status text (allocated)
 * @progress_text: holds the returned text for the progress bar (allocated)
 * @progress: holds the progress value
 *
 * Retrieves the details to display in the status bar for the source.
 * If the progress value returned is less than zero, the progress bar
 * will pulse.  If the progress value is greater than or equal to 1,
 * the progress bar will be hidden.
 **/
void
rb_source_get_status (RBSource *source,
		      char **text,
		      char **progress_text,
		      float *progress)
{
	RBSourceClass *klass = RB_SOURCE_GET_CLASS (source);

	klass->impl_get_status (source, text, progress_text, progress);
}