| Rhythmbox Development Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
Synopsis
struct RBHeader; struct RBHeaderClass; RBHeader * rb_header_new (RBShellPlayer *shell_player,RhythmDB *db);
Object Hierarchy
GObject
+----GInitiallyUnowned
+----GtkWidget
+----GtkContainer
+----GtkGrid
+----RBHeader
Properties
"db" RhythmDB* : Read / Write "seekable" gboolean : Read / Write "shell-player" RBShellPlayer* : Read / Write / Construct Only "show-album-art" gboolean : Read / Write "show-position-slider" gboolean : Read / Write "show-remaining" gboolean : Read / Write "slider-dragging" gboolean : Read
Description
The RBHeader widget displays information about the current playing track (title, album, artist), the elapsed or remaining playback time, and a position slider indicating the playback position. It translates slider move and drag events into seek requests for the player backend.
For shoutcast-style streams, the title/artist/album display is supplemented by metadata extracted from the stream. See RBStreamingSource for more information on how the metadata is reported.
Details
rb_header_new ()
RBHeader * rb_header_new (RBShellPlayer *shell_player,RhythmDB *db);
Creates a new header widget.
|
the RBShellPlayer instance |
|
the RhythmDB instance |
Returns : |
the header widget |
Property Details
The "seekable" property
"seekable" gboolean : Read / Write
If TRUE, the header should allow seeking by dragging the playback position slider
Default value: TRUE
The "shell-player" property
"shell-player" RBShellPlayer* : Read / Write / Construct Only
The RBShellPlayer instance
The "show-album-art" property
"show-album-art" gboolean : Read / Write
Whether to show the album art display widget.
Default value: TRUE
The "show-position-slider" property
"show-position-slider" gboolean : Read / Write
Whether to show the playback position slider.
Default value: TRUE
The "show-remaining" property
"show-remaining" gboolean : Read / Write
Whether to show remaining time (as opposed to elapsed time) in the numeric time display.
Default value: FALSE
