aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-05-29 14:41:27 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-05-29 14:41:27 -0500
commit5786ecae0d9ecae7aaf2b19094474db54e53a691 (patch)
treec8b1e05528c69b40db71f333715dcccb4469b137 /src
parent1c35339e5c32df4908659e53be54d146893b6fe3 (diff)
downloadayatana-indicator-power-5786ecae0d9ecae7aaf2b19094474db54e53a691.tar.gz
ayatana-indicator-power-5786ecae0d9ecae7aaf2b19094474db54e53a691.tar.bz2
ayatana-indicator-power-5786ecae0d9ecae7aaf2b19094474db54e53a691.zip
t^Cak to indicator_set_power_differences()
Diffstat (limited to 'src')
-rw-r--r--src/indicator-power.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/indicator-power.c b/src/indicator-power.c
index 6690f9b..7029739 100644
--- a/src/indicator-power.c
+++ b/src/indicator-power.c
@@ -766,12 +766,11 @@ put_primary_device (IndicatorPower *self, IndicatorPowerDevice *device)
void
indicator_power_set_devices (IndicatorPower * self, GSList * devices)
{
- IndicatorPowerPrivate * priv;
-
/* LCOV_EXCL_START */
g_return_if_fail (IS_INDICATOR_POWER(self));
/* LCOV_EXCL_STOP */
- priv = self->priv;
+
+ IndicatorPowerPrivate * priv = self->priv;
/* update our devices & primary device */
g_slist_foreach (devices, (GFunc)g_object_ref, NULL);