![]() |
![]() |
![]() |
Rhythmbox Development Reference Manual | ![]() |
---|---|---|---|---|
typedef RBStatusbarPrivate; RBStatusbar* rb_statusbar_new (RhythmDB *db, GtkUIManager *ui_manager); void rb_statusbar_set_source (RBStatusbar *statusbar, RBSource *source); void rb_statusbar_set_progress (RBStatusbar *statusbar, double progress, const char *text);
The status bar is displayed at the bottom of the main window. It consists of some status text and a progress bar.
The status text usually comes from the selected source, and typically shows the number of songs, the total duration and the total file size. When a menu is open, however, the status text shows the description of the currently selected menu item.
The progress bar shows progress information from a variety of sources. The source that is currently selected in the source list can provide progress information, such as buffering feedback, track transfer status, or progress for updating a song catalog. If the source does not provide status information and the database is busy (loading the database from disk, processing a query, etc.) the progress bar will be pulsed periodically.
RBStatusbar* rb_statusbar_new (RhythmDB *db, GtkUIManager *ui_manager);
Creates the status bar widget.
|
the RhythmDB instance |
|
the GtkUIManager |
Returns : |
the status bar widget |
void rb_statusbar_set_source (RBStatusbar *statusbar, RBSource *source);
Updates the status bar for a newly selected source.
|
the RBStatusbar |
|
the new selected RBSource |
void rb_statusbar_set_progress (RBStatusbar *statusbar, double progress, const char *text);
Updates the progress bar widget. If the progress fraction is less than zero, the progress bar is hidden.
|
the RBStatusbar |
|
progress fraction |
|
text to display on the progress bar |