~charlesk/indicator-power/lp-1224931

« back to all changes in this revision

Viewing changes to src/device-provider.c

  • Committer: Tarmac
  • Author(s): Charles Kerr
  • Date: 2013-08-23 14:45:19 UTC
  • mfrom: (187.1.6 lp-811777)
  • Revision ID: tarmac-20130823144519-t5n7n1oi83mg4bp9
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.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
 * An easy way to free the list properly in one step is as follows:
55
55
 *
56
56
 *   g_slist_free_full (list, (GDestroyNotify)g_object_unref);
57
 
 * 
 
57
 *
58
58
 * Return value: (element-type IndicatorPowerDevice)
59
59
 *               (transfer full):
60
60
 *               list of devices