| GNOME Video Arcade Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals | ||||
GvaMusicButton;
GtkWidget * gva_music_button_new (void);
void gva_music_button_play (GvaMusicButton *music_button);
void gva_music_button_pause (GvaMusicButton *music_button);
const gchar * gva_music_button_get_game (GvaMusicButton *music_button);
void gva_music_button_set_game (GvaMusicButton *music_button,
const gchar *game);
const gchar * gva_music_button_get_status (GvaMusicButton *music_button);
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBin
+----GtkButton
+----GvaMusicButton
GvaMusicButton implements AtkImplementorIface, GtkBuildable and GtkActivatable.
A GvaMusicButton toggles between playing and pausing in-game music clips streamed from http://www.arcade-history.com/.
This requires arcade history information from a 'history.dat' file.
typedef struct _GvaMusicButton GvaMusicButton;
Contains only private data that should be read and manipulated using the functions below.
GtkWidget * gva_music_button_new (void);
Creates a new GvaMusicButton.
Returns : |
a new GvaMusicButton |
void gva_music_button_play (GvaMusicButton *music_button);
Plays a music clip from the game specified by the GvaMusicButton:game property. The clip will repeat indefinitely until paused or a different game is chosen.
|
a GvaMusicButton |
void gva_music_button_pause (GvaMusicButton *music_button);
Pauses a music clip from the game specified by the GvaMusicButton:game property.
|
a GvaMusicButton |
const gchar * gva_music_button_get_game (GvaMusicButton *music_button);
Returns the name of the game for which to play a music clip.
|
a GvaMusicButton |
Returns : |
the game for which to play a music clip |
void gva_music_button_set_game (GvaMusicButton *music_button, const gchar *game);
Sets the name of the game for which to play a music clip. Use
gva_music_button_play() to play the clip.
|
a GvaMusicButton |
|
the name of a game |
const gchar * gva_music_button_get_status (GvaMusicButton *music_button);
Returns a status message about the music clip, such as buffering progress or whether a music clip is available for the selected game.
|
a GvaMusicButton |
Returns : |
a status message about the music clip |
"game" property"game" gchar* : Read / Write
The game for which to play a music clip.
Default value: NULL
"pause" signalvoid user_function (GvaMusicButton *music_button, gpointer user_data) : Run Last
The ::pause signal is emitted when the user pauses a music clip.
|
the GvaMusicButton that received the signal |
|
user data set when the signal handler was connected. |
"play" signalvoid user_function (GvaMusicButton *music_button, gpointer user_data) : Run Last
The ::play signal is emitted when the user plays a music clip.
|
the GvaMusicButton |
|
user data set when the signal handler was connected. |