summaryrefslogtreecommitdiff
path: root/mate-volume-control/gvc-balance-bar.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2022-03-16 11:41:57 +0100
committermbkma <[email protected]>2022-03-18 20:58:33 +0100
commitd10b694e96758b221b03f3ac9e0f42ec75b02fb1 (patch)
tree93dac08ff1d7762da67f89affc8c845b0cbc0af4 /mate-volume-control/gvc-balance-bar.c
parentcc7a4cfe09b8df0c8db4944e95130e6c42b68b7f (diff)
downloadmate-media-d10b694e96758b221b03f3ac9e0f42ec75b02fb1.tar.bz2
mate-media-d10b694e96758b221b03f3ac9e0f42ec75b02fb1.tar.xz
Fix warnings -Wfloat-conversion, -Wimplicit-float-conversion
Diffstat (limited to 'mate-volume-control/gvc-balance-bar.c')
-rw-r--r--mate-volume-control/gvc-balance-bar.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/mate-volume-control/gvc-balance-bar.c b/mate-volume-control/gvc-balance-bar.c
index e4fccb8..55918b7 100644
--- a/mate-volume-control/gvc-balance-bar.c
+++ b/mate-volume-control/gvc-balance-bar.c
@@ -482,15 +482,17 @@ on_adjustment_value_changed (GtkAdjustment *adjustment, GvcBalanceBar *bar)
switch (bar->priv->btype) {
case BALANCE_TYPE_RL:
- mate_mixer_stream_control_set_balance (bar->priv->control, value);
+ mate_mixer_stream_control_set_balance (bar->priv->control,
+ (gfloat) value);
break;
case BALANCE_TYPE_FR:
- mate_mixer_stream_control_set_fade (bar->priv->control, value);
+ mate_mixer_stream_control_set_fade (bar->priv->control,
+ (gfloat) value);
break;
case BALANCE_TYPE_LFE:
mate_mixer_stream_control_set_channel_volume (bar->priv->control,
- bar->priv->lfe_channel,
- value);
+ bar->priv->lfe_channel,
+ (guint) value);
break;
}
}