aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-09-10 17:08:58 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-09-10 17:08:58 -0500
commit4adcc3265eef70604dcd86587b1042c7033b7edc (patch)
tree8788a1bc3235b1cf7ff23cde1f6c94256d0eb865
parentae12f25f06be25265f09f65874dcb183a6a5020f (diff)
downloadayatana-indicator-power-4adcc3265eef70604dcd86587b1042c7033b7edc.tar.gz
ayatana-indicator-power-4adcc3265eef70604dcd86587b1042c7033b7edc.tar.bz2
ayatana-indicator-power-4adcc3265eef70604dcd86587b1042c7033b7edc.zip
copyediting: rename 'dflt' as 'default_value' for readability
-rw-r--r--src/brightness.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/brightness.c b/src/brightness.c
index 4a8db52..e407fa4 100644
--- a/src/brightness.c
+++ b/src/brightness.c
@@ -43,7 +43,7 @@ typedef struct
gint powerd_dim;
gint powerd_min;
gint powerd_max;
- gint powerd_dflt;
+ gint powerd_default_value;
gboolean powerd_ab_supported;
gboolean have_powerd_params;
}
@@ -199,19 +199,19 @@ on_powerd_brightness_params_ready(GObject * source,
g_variant_get(v, "((iiiib))", &p->powerd_dim,
&p->powerd_min,
&p->powerd_max,
- &p->powerd_dflt,
+ &p->powerd_default_value,
&p->powerd_ab_supported);
- g_debug("powerd brightness settings: dim=%d, min=%d, max=%d, dflt=%d, ab_supported=%d",
+ g_debug("powerd brightness settings: dim=%d, min=%d, max=%d, default=%d, ab_supported=%d",
p->powerd_dim,
p->powerd_min,
p->powerd_max,
- p->powerd_dflt,
+ p->powerd_default_value,
(int)p->powerd_ab_supported);
/* uscreen doesn't have any way of accessing the current brightness,
so the only way to know its value is to initialize it ourselves
(and hope nobody else changes it :P) */
- percentage = brightness_to_percentage(self, p->powerd_dflt);
+ percentage = brightness_to_percentage(self, p->powerd_default_value);
indicator_power_brightness_set_percentage(self, percentage);
/* cleanup */