aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-power.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-02-13 14:20:34 -0600
committerCharles Kerr <charles.kerr@canonical.com>2012-02-13 14:20:34 -0600
commit8be6c2d51d4927d524370b4f5bab39b6e72bbc0d (patch)
tree8fcf9f6497411107f97752575a79e3b63517092f /src/indicator-power.c
parent0c1e774b428c6ccb76e6ad9e0de9e809b56790fa (diff)
downloadayatana-indicator-power-8be6c2d51d4927d524370b4f5bab39b6e72bbc0d.tar.gz
ayatana-indicator-power-8be6c2d51d4927d524370b4f5bab39b6e72bbc0d.tar.bz2
ayatana-indicator-power-8be6c2d51d4927d524370b4f5bab39b6e72bbc0d.zip
move POWER_INDICATOR_ICON_POLICY_* enum to the top of the file
Diffstat (limited to 'src/indicator-power.c')
-rw-r--r--src/indicator-power.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/indicator-power.c b/src/indicator-power.c
index bbd00d8..ee20362 100644
--- a/src/indicator-power.c
+++ b/src/indicator-power.c
@@ -51,6 +51,12 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#define IS_INDICATOR_POWER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), INDICATOR_POWER_TYPE))
#define INDICATOR_POWER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), INDICATOR_POWER_TYPE, IndicatorPowerClass))
+enum {
+ POWER_INDICATOR_ICON_POLICY_PRESENT,
+ POWER_INDICATOR_ICON_POLICY_CHARGE,
+ POWER_INDICATOR_ICON_POLICY_NEVER
+};
+
GType indicator_power_get_type (void);
INDICATOR_SET_VERSION
@@ -999,12 +1005,6 @@ count_batteries(GVariant *devices, int *total, int *inuse)
g_debug("count_batteries found %d batteries (%d are charging/discharging)", *total, *inuse);
}
-enum {
- POWER_INDICATOR_ICON_POLICY_PRESENT,
- POWER_INDICATOR_ICON_POLICY_CHARGE,
- POWER_INDICATOR_ICON_POLICY_NEVER
-};
-
static gboolean
should_be_visible (IndicatorPower * self)
{