summaryrefslogtreecommitdiff
path: root/mate-volume-control/gvc-status-icon.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-04-17 04:07:18 +0200
committerZenWalker <[email protected]>2019-04-18 01:25:24 +0200
commiteef2c6b47b4c48b71f6122a12ac12f08520e5481 (patch)
treef2087c2d398f60edd78a2ac25be2654641de2f4b /mate-volume-control/gvc-status-icon.c
parent3ae6314f2574b99ea70f7ecffb7740526db5011c (diff)
downloadmate-media-eef2c6b47b4c48b71f6122a12ac12f08520e5481.tar.bz2
mate-media-eef2c6b47b4c48b71f6122a12ac12f08520e5481.tar.xz
mate-volume-control: Fix 'syntax error' detected with 'cppcheck'
Fixes cppcheck warnings: [mate-volume-control/gvc-applet.c:118]: (error) syntax error [mate-volume-control/gvc-applet.c:133]: (error) syntax error [mate-volume-control/gvc-applet.c:184]: (error) syntax error [mate-volume-control/gvc-applet.c:287]: (error) syntax error [mate-volume-control/gvc-applet.c:290]: (error) syntax error [mate-volume-control/gvc-combo-box.c:111]: (error) syntax error [mate-volume-control/gvc-combo-box.c:309]: (error) syntax error [mate-volume-control/gvc-combo-box.c:317]: (error) syntax error [mate-volume-control/gvc-combo-box.c:428]: (error) syntax error [mate-volume-control/gvc-mixer-dialog.c:793]: (error) syntax error [mate-volume-control/gvc-status-icon.c:107]: (error) syntax error [mate-volume-control/gvc-status-icon.c:122]: (error) syntax error [mate-volume-control/gvc-status-icon.c:175]: (error) syntax error [mate-volume-control/gvc-status-icon.c:280]: (error) syntax error [mate-volume-control/gvc-status-icon.c:283]: (error) syntax error
Diffstat (limited to 'mate-volume-control/gvc-status-icon.c')
-rw-r--r--mate-volume-control/gvc-status-icon.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mate-volume-control/gvc-status-icon.c b/mate-volume-control/gvc-status-icon.c
index 0363888..bfb2774 100644
--- a/mate-volume-control/gvc-status-icon.c
+++ b/mate-volume-control/gvc-status-icon.c
@@ -104,7 +104,7 @@ update_icon_input (GvcStatusIcon *status_icon)
g_debug ("Found a recording application control %s",
mate_mixer_stream_control_get_label (input));
- if G_UNLIKELY (control == NULL) {
+ if (G_UNLIKELY (control == NULL)) {
/* In the unlikely case when there is no
* default input control, use the application
* control for the icon */
@@ -119,7 +119,7 @@ update_icon_input (GvcStatusIcon *status_icon)
strcmp (app_id, "org.PulseAudio.pavucontrol") != 0) {
g_debug ("Found a recording application %s", app_id);
- if G_UNLIKELY (control == NULL)
+ if (G_UNLIKELY (control == NULL))
control = input;
show = TRUE;
@@ -172,7 +172,7 @@ on_input_stream_control_added (MateMixerStream *stream,
MateMixerStreamControl *control;
control = mate_mixer_stream_get_control (stream, name);
- if G_LIKELY (control != NULL) {
+ if (G_LIKELY (control != NULL)) {
MateMixerStreamControlRole role =
mate_mixer_stream_control_get_role (control);
@@ -277,10 +277,10 @@ gvc_status_icon_start (GvcStatusIcon *status_icon)
{
g_return_if_fail (GVC_IS_STATUS_ICON (status_icon));
- if G_UNLIKELY (status_icon->priv->running == TRUE)
+ if (G_UNLIKELY (status_icon->priv->running == TRUE))
return;
- if G_UNLIKELY (mate_mixer_context_open (status_icon->priv->context) == FALSE) {
+ if (G_UNLIKELY (mate_mixer_context_open (status_icon->priv->context) == FALSE)) {
/* Normally this should never happen, in the worst case we
* should end up with the Null module */
g_warning ("Failed to connect to a sound system");