diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-09-09 04:22:39 +0000 |
---|---|---|
committer | CI bot <ps-jenkins@lists.canonical.com> | 2014-09-09 04:22:39 +0000 |
commit | c91ba6b1592fec28a1769ea736860e7b83d05b28 (patch) | |
tree | 335278a4c19ed9c0a99a6cd94bbd1b5d63cb85ed /tests | |
parent | 2720a578326d51a49f00e3e4e69d86f8ba23ab0d (diff) | |
parent | ee6e07ff8b0765a584b8424dc4801833ac86317e (diff) | |
download | ayatana-indicator-power-c91ba6b1592fec28a1769ea736860e7b83d05b28.tar.gz ayatana-indicator-power-c91ba6b1592fec28a1769ea736860e7b83d05b28.tar.bz2 ayatana-indicator-power-c91ba6b1592fec28a1769ea736860e7b83d05b28.zip |
When the phone's battery goes down past a certain level, pop up a snap decision to warn the user. Fixes: 1296431
Approved by: Ted Gould, PS Jenkins bot
Diffstat (limited to 'tests')
-rw-r--r-- | tests/indicator-power-service-cmdline-battery.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/indicator-power-service-cmdline-battery.cc b/tests/indicator-power-service-cmdline-battery.cc index 30ca178..50ed2bb 100644 --- a/tests/indicator-power-service-cmdline-battery.cc +++ b/tests/indicator-power-service-cmdline-battery.cc @@ -83,10 +83,13 @@ static gboolean on_command_stream_available (GIOChannel *source, int main (int argc G_GNUC_UNUSED, char ** argv G_GNUC_UNUSED) { - g_message ("This app is basically the same as indicator-power-service but,\n" - "instead of the system's real devices, sees a single fake battery\n" - "which can be manipulated by typing commands:\n" - "'charging', 'discharging', a charge percentage, or ctrl-c."); + g_print("This test app has the same code as indicator-power-service\n" + "except instead of listening to UPower, it has a fake battery\n" + "which you can edit with keyboard inputs. Supported commands:\n" + "1. A number in [0..100] to set battery level\n" + "2. 'charging'\n" + "3. 'discharging'\n" + "4. ctrl-c to exit\n"); IndicatorPowerDeviceProvider * device_provider; IndicatorPowerService * service; |