From ee6e07ff8b0765a584b8424dc4801833ac86317e Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Mon, 8 Sep 2014 16:19:37 -0500 Subject: sync with lp-1330037-add-upower-099-support to resolve merge conflicts --- src/notifier.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/notifier.c') diff --git a/src/notifier.c b/src/notifier.c index f4c8950..1767146 100644 --- a/src/notifier.c +++ b/src/notifier.c @@ -103,7 +103,7 @@ power_level_to_dbus_string (const PowerLevel power_level) } } -PowerLevel +static PowerLevel get_battery_power_level (IndicatorPowerDevice * battery) { static const double percent_critical = 2.0; @@ -366,9 +366,6 @@ indicator_power_notifier_init (IndicatorPowerNotifier * self) if (!instance_count++) { - GList * caps; - GList * l; - actions_supported = FALSE; if (!notify_init("indicator-power-service")) @@ -377,6 +374,9 @@ indicator_power_notifier_init (IndicatorPowerNotifier * self) } else { + GList * caps; + GList * l; + /* see if actions are supported */ caps = notify_get_server_caps(); for (l=caps; l!=NULL && !actions_supported; l=l->next) -- cgit v1.2.3