gui/audio: Add __audio prefix to internal functions
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
parent
e5e2c87a86
commit
36b8b29b0b
22
gui/audio.c
22
gui/audio.c
|
@ -31,7 +31,7 @@ static inline void __audio_set_time_label(const gchar *label, unsigned int time)
|
|||
g_free(str);
|
||||
}
|
||||
|
||||
static void on_load(struct track *track)
|
||||
static void __audio_load(struct track *track)
|
||||
{
|
||||
__audio_set_label("o_title", TITLE_FMT, track->tr_title);
|
||||
__audio_set_label("o_artist", ARTIST_FMT, track->tr_artist->ar_name);
|
||||
|
@ -46,7 +46,7 @@ static void on_load(struct track *track)
|
|||
playlist_has(PL_FAVORITED, track));
|
||||
}
|
||||
|
||||
static void on_change_state(GstState state)
|
||||
static void __audio_change_state(GstState state)
|
||||
{
|
||||
if (state == GST_STATE_PLAYING) {
|
||||
gtk_widget_hide(gui_builder_widget("o_play"));
|
||||
|
@ -57,7 +57,7 @@ static void on_change_state(GstState state)
|
|||
}
|
||||
}
|
||||
|
||||
static void on_config_pause(int n)
|
||||
static void __audio_config_pause(int n)
|
||||
{
|
||||
if (n == -1)
|
||||
gtk_toggle_button_set_active(o_enabled, false);
|
||||
|
@ -67,19 +67,19 @@ static void on_config_pause(int n)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
struct audio_ops audio_ops = {
|
||||
on_load,
|
||||
on_change_state,
|
||||
on_config_pause,
|
||||
};
|
||||
|
||||
|
||||
void __audio_seek(GtkScrollType type, double value)
|
||||
{
|
||||
audio_seek(value);
|
||||
}
|
||||
|
||||
|
||||
struct audio_ops audio_ops = {
|
||||
__audio_load,
|
||||
__audio_change_state,
|
||||
__audio_config_pause,
|
||||
};
|
||||
|
||||
|
||||
static void on_pause_count()
|
||||
{
|
||||
gtk_toggle_button_set_active(o_enabled, true);
|
||||
|
|
Loading…
Reference in New Issue