[gnome-alsamixer] Fix return values of functions
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-alsamixer] Fix return values of functions
- Date: Tue, 26 Jun 2012 14:11:32 +0000 (UTC)
commit 00be09d4d71cf1e19f723d5f42444a01e9f7f159
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jun 26 15:04:29 2012 +0100
Fix return values of functions
src/gam-mixer.c | 2 +-
src/gam-slider-dual.c | 2 +-
src/gam-slider.c | 3 ++-
src/gam-toggle.c | 2 +-
4 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/gam-mixer.c b/src/gam-mixer.c
index 7b748a5..bd46c62 100644
--- a/src/gam-mixer.c
+++ b/src/gam-mixer.c
@@ -522,7 +522,7 @@ gam_mixer_get_visible (GamMixer *gam_mixer)
gchar *key;
gboolean visible = TRUE;
- g_return_if_fail (GAM_IS_MIXER (gam_mixer));
+ g_return_val_if_fail (GAM_IS_MIXER (gam_mixer), TRUE);
priv = GAM_MIXER_GET_PRIVATE (gam_mixer);
diff --git a/src/gam-slider-dual.c b/src/gam-slider-dual.c
index 20897fe..92190ba 100644
--- a/src/gam-slider-dual.c
+++ b/src/gam-slider-dual.c
@@ -416,7 +416,7 @@ gam_slider_dual_get_locked (GamSliderDual *gam_slider_dual)
gchar *key;
gboolean locked = TRUE;
- g_return_if_fail (GAM_IS_SLIDER_DUAL (gam_slider_dual));
+ g_return_val_if_fail (GAM_IS_SLIDER_DUAL (gam_slider_dual), TRUE);
priv = GAM_SLIDER_DUAL_GET_PRIVATE (gam_slider_dual);
diff --git a/src/gam-slider.c b/src/gam-slider.c
index 68cf3a6..d83bbcf 100644
--- a/src/gam-slider.c
+++ b/src/gam-slider.c
@@ -436,6 +436,7 @@ gam_slider_refresh (snd_mixer_elem_t *elem, guint mask)
}
g_signal_emit (gam_slider, signals[REFRESH], 0);
+ return 0;
}
const gchar *
@@ -527,7 +528,7 @@ gam_slider_get_visible (GamSlider *gam_slider)
gchar *key;
gboolean visible = TRUE;
- g_return_if_fail (GAM_IS_SLIDER (gam_slider));
+ g_return_val_if_fail (GAM_IS_SLIDER (gam_slider), TRUE);
priv = GAM_SLIDER_GET_PRIVATE (gam_slider);
diff --git a/src/gam-toggle.c b/src/gam-toggle.c
index 826618d..a137cc7 100644
--- a/src/gam-toggle.c
+++ b/src/gam-toggle.c
@@ -450,7 +450,7 @@ gam_toggle_get_visible (GamToggle *gam_toggle)
gchar *key;
gboolean visible = TRUE;
- g_return_if_fail (GAM_IS_TOGGLE (gam_toggle));
+ g_return_val_if_fail (GAM_IS_TOGGLE (gam_toggle), TRUE);
priv = GAM_TOGGLE_GET_PRIVATE (gam_toggle);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]