aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-09-11 14:31:33 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-09-11 14:31:33 -0500
commit9d0cc593d2cf79f4763f69aa7d7b58919721fc22 (patch)
treee66863ade43dd5f16f80b127e728fd23b82b9264
parent2e3d004df20a3485e37ee4e8916739528f646d9f (diff)
downloadayatana-indicator-power-9d0cc593d2cf79f4763f69aa7d7b58919721fc22.tar.gz
ayatana-indicator-power-9d0cc593d2cf79f4763f69aa7d7b58919721fc22.tar.bz2
ayatana-indicator-power-9d0cc593d2cf79f4763f69aa7d7b58919721fc22.zip
tweak comments for readability
-rw-r--r--src/brightness.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/brightness.c b/src/brightness.c
index 9288d50..21526ba 100644
--- a/src/brightness.c
+++ b/src/brightness.c
@@ -175,9 +175,12 @@ percentage_to_brightness(IndicatorPowerBrightness * self, double percentage)
return brightness;
}
-/***
-**** DBus Chatter: com.canonical.powerd
-***/
+/**
+ * DBus Chatter: com.canonical.powerd
+ *
+ * This is used to get default value, and upper and lower bounds,
+ * of the brightness setting
+ */
static void set_brightness_global(IndicatorPowerBrightness*, int);
@@ -285,9 +288,11 @@ on_powerd_vanished(GDBusConnection * connection G_GNUC_UNUSED,
p->have_powerd_params = FALSE;
}
-/***
-**** DBus Chatter: com.canonical.Unity.Screen
-***/
+/**
+ * DBus Chatter: com.canonical.Unity.Screen
+ *
+ * Used to set the backlight brightness via setUserBrightness
+ */
/* setUserBrightness doesn't return anything,
so this function is just to check for bus error messages */
@@ -446,9 +451,6 @@ indicator_power_brightness_set_percentage(IndicatorPowerBrightness * self,
{
g_return_if_fail(INDICATOR_IS_POWER_BRIGHTNESS(self));
- g_debug("%s called; current value is %.2f, desired value is %.2f",
- G_STRFUNC, get_priv(self)->percentage, percentage);
-
set_brightness_global(self, percentage_to_brightness(self, percentage));
}