diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-08-23 14:45:19 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2013-08-23 14:45:19 +0000 |
commit | e079d4b70552a9cc5a44d6c8df2153cbcec1de78 (patch) | |
tree | 111bdde3ef9696551ff3375bebe2c9a7802746fd /src/device.h | |
parent | f22849a5db346c806bbac042a5c3bb1be9bb68ea (diff) | |
parent | ad28ae2fdfa5e803031dc5d41a83f033c924f4e9 (diff) | |
download | ayatana-indicator-power-e079d4b70552a9cc5a44d6c8df2153cbcec1de78.tar.gz ayatana-indicator-power-e079d4b70552a9cc5a44d6c8df2153cbcec1de78.tar.bz2 ayatana-indicator-power-e079d4b70552a9cc5a44d6c8df2153cbcec1de78.zip |
Updates the power indicator to match the spec changes at <https://wiki.ubuntu.com/Power?action=diff&rev2=37&rev1=36>.
This patch is based from hloeung's nice patch, fixes a few edge cases, adds unit tests for labels, headers, & accessible text for all combinations of show time & show percentage, and cleans up the bindings between GSettings and the checkbox actions.
. Fixes: https://bugs.launchpad.net/bugs/811777.
Approved by Ted Gould, PS Jenkins bot.
Diffstat (limited to 'src/device.h')
-rw-r--r-- | src/device.h | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/src/device.h b/src/device.h index ffbb5da..1f395a1 100644 --- a/src/device.h +++ b/src/device.h @@ -116,21 +116,22 @@ IndicatorPowerDevice* indicator_power_device_new (const gchar * object_path, IndicatorPowerDevice* indicator_power_device_new_from_variant (GVariant * variant); -UpDeviceKind indicator_power_device_get_kind (const IndicatorPowerDevice * device); -UpDeviceState indicator_power_device_get_state (const IndicatorPowerDevice * device); -const gchar * indicator_power_device_get_object_path (const IndicatorPowerDevice * device); -gdouble indicator_power_device_get_percentage (const IndicatorPowerDevice * device); -time_t indicator_power_device_get_time (const IndicatorPowerDevice * device); - -GStrv indicator_power_device_get_icon_names (const IndicatorPowerDevice * device); -GIcon * indicator_power_device_get_gicon (const IndicatorPowerDevice * device); - -void indicator_power_device_get_time_details (const IndicatorPowerDevice * device, - gchar ** short_details, - gchar ** details, - gchar ** accessible_name); - - +UpDeviceKind indicator_power_device_get_kind (const IndicatorPowerDevice * device); +UpDeviceState indicator_power_device_get_state (const IndicatorPowerDevice * device); +const gchar * indicator_power_device_get_object_path (const IndicatorPowerDevice * device); +gdouble indicator_power_device_get_percentage (const IndicatorPowerDevice * device); +time_t indicator_power_device_get_time (const IndicatorPowerDevice * device); + +GStrv indicator_power_device_get_icon_names (const IndicatorPowerDevice * device); +GIcon * indicator_power_device_get_gicon (const IndicatorPowerDevice * device); + +gchar * indicator_power_device_get_label (const IndicatorPowerDevice * device); + +void indicator_power_device_get_header (const IndicatorPowerDevice * device, + gboolean show_time, + gboolean show_percentage, + gchar ** header, + gchar ** a11y); G_END_DECLS |