diff options
author | Bastien Nocera <hadess@hadess.net> | 2022-04-07 13:22:30 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2022-04-07 13:46:30 +0200 |
commit | f13176af248137fed1ac9f78209abfd1aa465556 (patch) | |
tree | 381e68ae44f87f52e1b2072f05c72900d59ebc42 /src/totem-object.c | |
parent | 4a1adba0b22948660f92dd7ca430a9b78b09f72b (diff) | |
download | totem-f13176af248137fed1ac9f78209abfd1aa465556.tar.gz |
main: Mark totem_object_volume_toggle_mute() as private
Diffstat (limited to 'src/totem-object.c')
-rw-r--r-- | src/totem-object.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/totem-object.c b/src/totem-object.c index 74b790217..cd6e4c4e2 100644 --- a/src/totem-object.c +++ b/src/totem-object.c @@ -2229,6 +2229,25 @@ totem_object_set_rate (TotemObject *totem, float rate) } /** + * totem_object_volume_toggle_mute: + * @totem: a #TotemObject + * + * Toggles the mute status. + **/ +static void +totem_object_volume_toggle_mute (TotemObject *totem) +{ + if (totem->muted == FALSE) { + totem->muted = TRUE; + totem->prev_volume = bacon_video_widget_get_volume (totem->bvw); + bacon_video_widget_set_volume (totem->bvw, 0.0); + } else { + totem->muted = FALSE; + bacon_video_widget_set_volume (totem->bvw, totem->prev_volume); + } +} + +/** * totem_object_set_volume_relative: * @totem: a #TotemObject * @off_pct: the value by which to increase or decrease the volume @@ -2250,25 +2269,6 @@ totem_object_set_volume_relative (TotemObject *totem, double off_pct) bacon_video_widget_set_volume (totem->bvw, vol + off_pct); } -/** - * totem_object_volume_toggle_mute: - * @totem: a #TotemObject - * - * Toggles the mute status. - **/ -void -totem_object_volume_toggle_mute (TotemObject *totem) -{ - if (totem->muted == FALSE) { - totem->muted = TRUE; - totem->prev_volume = bacon_video_widget_get_volume (totem->bvw); - bacon_video_widget_set_volume (totem->bvw, 0.0); - } else { - totem->muted = FALSE; - bacon_video_widget_set_volume (totem->bvw, totem->prev_volume); - } -} - static void totem_object_toggle_aspect_ratio (TotemObject *totem) { |