Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | show the icon that most closely matches the battery charge percentage. | Charles Kerr | 2014-07-29 | 1 | -14/+0 |
| | |||||
* | fix some compiler warnings generated by clang static analyzer | Charles Kerr | 2014-07-13 | 1 | -10/+8 |
| | |||||
* | prefer the 'battery-020-charging' icon to the 'battery-low-charging' one ↵ | Charles Kerr | 2014-05-05 | 1 | -1/+2 |
| | | | | because the former is more precise so its icon is more likely to be close to the actual actual battery level. | ||||
* | sync to lp:indicator-power | Charles Kerr | 2014-03-25 | 1 | -101/+68 |
|\ | |||||
| * | in the new indicator_power_device_get_*() functions, use ↵ | Charles Kerr | 2014-03-13 | 1 | -3/+5 |
| | | | | | | | | g_return_val_if_fail(foo, NULL) rather than g_return_if_fail(foo) | ||||
| * | copyediting: add const, fix misaligned whitespace | Charles Kerr | 2014-03-13 | 1 | -2/+2 |
| | | |||||
| * | remove INDICATOR_IS_POWER_DEVICE(device) tests from private functions | Charles Kerr | 2014-03-13 | 1 | -10/+2 |
| | | |||||
| * | in the new indicator_power_device_get_*() functions, use heap-allocated ↵ | Charles Kerr | 2014-03-13 | 1 | -87/+60 |
| | | | | | | | | strings rather than relying on g_snprintf(). | ||||
* | | add translator comments to the new translatable strings. | Charles Kerr | 2014-03-25 | 1 | -13/+40 |
|/ | |||||
* | slightly better comments | Charles Kerr | 2014-03-04 | 1 | -13/+12 |
| | |||||
* | update the header / menuitem text / accessible text to reflect the changes ↵ | Charles Kerr | 2014-03-04 | 1 | -162/+312 |
| | | | | in https://wiki.ubuntu.com/Power?action=diff&rev2=44&rev1=43#Title | ||||
* | device.c: pending_charge means not charging | Ricardo Salveti de Araujo | 2014-01-24 | 1 | -1/+1 |
| | |||||
* | use the correct battery icon when charging/discharging | Charles Kerr | 2013-10-01 | 1 | -8/+1 |
| | |||||
* | as per the changes in ↵ | Charles Kerr | 2013-08-23 | 1 | -2/+2 |
| | | | | https://wiki.ubuntu.com/Power?action=diff&rev2=39&rev1=38, hide the discharge time remaining if it's > 24 hours | ||||
* | copyediting: more descriptive comments when building label/header/a11y text | Charles Kerr | 2013-08-23 | 1 | -11/+16 |
| | |||||
* | copyediting: remove trailing spaces in source code | Charles Kerr | 2013-08-22 | 1 | -1/+1 |
| | |||||
* | add show-percentage feature, basing off Haw Loeung's patch. | Charles Kerr | 2013-08-22 | 1 | -57/+116 |
| | |||||
* | explicitly use gio; remove unused glib-upower.h calls | Charles Kerr | 2013-06-16 | 1 | -2/+23 |
| | |||||
* | change indicator_power_device_get_time_details() s.t. the 'short details' ↵ | Charles Kerr | 2012-11-07 | 1 | -1/+1 |
| | | | | for an AC Adapter is an empty string. | ||||
* | fix copy-paste comment error | Charles Kerr | 2012-10-26 | 1 | -1/+1 |
| | |||||
* | Fix unhandled enum 'unknown device' that was smoked out by the unit tests. | Charles Kerr | 2012-10-26 | 1 | -0/+4 |
| | |||||
* | the device kind string wasn't being used in some icon names. | Charles Kerr | 2012-10-25 | 1 | -14/+14 |
| | |||||
* | when discharging the battery, prefer the percent-charged icons over the ↵ | Charles Kerr | 2012-10-03 | 1 | -1/+2 |
| | | | | full,good,low icons because the former show a more accurate view of the charge. | ||||
* | device.c: include gi18n-lib.h instead of gi18n.h | Lars Uebernickel | 2012-09-20 | 1 | -1/+1 |
| | | | | | | The former calls the 'd' variants of the gettext functions and passes the libraries domain in each call. | ||||
* | improve the variant sanity tests in indicator_power_device_new_from_variant() | Charles Kerr | 2012-06-07 | 1 | -3/+1 |
| | |||||
* | reimplement indicator_power_device_get_icon_names() since our CA is ↵ | Charles Kerr | 2012-06-06 | 1 | -76/+77 |
| | | | | incompatible with reusing code from GSD. | ||||
* | For GTK-Doc, reference functions with function_name() instead of #function_name | Charles Kerr | 2012-06-06 | 1 | -1/+1 |
| | |||||
* | In indicator_power_device_new_from_variant(), check whether the input ↵ | Charles Kerr | 2012-06-06 | 1 | -0/+4 |
| | | | | variant has the correct type before using it. | ||||
* | add G_OBJECT_WARN_INVALID_PROPERTY_ID for the 'default' switch case in ↵ | Charles Kerr | 2012-06-06 | 1 | -0/+8 |
| | | | | Device's get/set property methods | ||||
* | IndicatorObjectDevice's finalize() function needs to chain up to the parent ↵ | Charles Kerr | 2012-06-06 | 1 | -0/+2 |
| | | | | class. | ||||
* | in IndicatorPowerDevice's class init function, use ↵ | Charles Kerr | 2012-06-06 | 1 | -26/+39 |
| | | | | g_object_class_install_properties() instead of installing each property separately. | ||||
* | copyediting: fix tab damage in device.[ch] | Charles Kerr | 2012-06-01 | 1 | -174/+176 |
| | |||||
* | In indicator_power_device_get_time_details(), add a test for non-devices ↵ | Charles Kerr | 2012-06-01 | 1 | -0/+9 |
| | | | | being passed in. | ||||
* | Fix edge case in indicator_power_device_get_icon_names() that returned a bad ↵ | Charles Kerr | 2012-06-01 | 1 | -1/+1 |
| | | | | value if the caller passed in a NULL pointer as a device. Added regression test. | ||||
* | In indicator_power_device_get_time_details(), use g_strdup(foo) instead of ↵ | Charles Kerr | 2012-06-01 | 1 | -2/+2 |
| | | | | g_strdup_printf("%s",foo) | ||||
* | capitalize the second word in 'AC Adapter' | Charles Kerr | 2012-06-01 | 1 | -1/+1 |
| | |||||
* | in indicator_power_device_get_time_details(), don't list 'not present' for ↵ | Charles Kerr | 2012-06-01 | 1 | -1/+8 |
| | | | | AC Adapters that have no % and no time estimate | ||||
* | In indicator_power_device_get_time_details(), remove an unlikely branch that ↵ | Charles Kerr | 2012-06-01 | 1 | -42/+30 |
| | | | | could result in time/detail strings not being set. | ||||
* | in indicator_power_device_get_time_details(), limit the scope of variables ↵ | Charles Kerr | 2012-05-31 | 1 | -3/+3 |
| | | | | short_timestring and detailed_timestring | ||||
* | Move private indicator-power function build_device_time_details() to ↵ | Charles Kerr | 2012-05-31 | 1 | -0/+195 |
| | | | | device.c to public function indicator_power_device_get_time_details() so that we can unit test the user-visible strings. | ||||
* | remove IndicatorPowerDevice's now-unused device icon string. | Charles Kerr | 2012-05-31 | 1 | -126/+0 |
| | |||||
* | Add indicator_power_device_get_icon_names(). | Charles Kerr | 2012-05-31 | 1 | -1/+242 |
| | | | | | | | The main goal of this change is to make it possible to test the device's icon. A secondary goal is to clarify in the code how indicator-power's icons differ from the ones recommended by GSD. | ||||
* | use g_clear_pointer() where useful | Charles Kerr | 2012-05-29 | 1 | -6/+2 |
| | |||||
* | try adding LCOV_EXCL_{START,STOP} for unreachable conditions (glib looking ↵ | Charles Kerr | 2012-05-26 | 1 | -3/+17 |
| | | | | for subclasses of IndicatorPowerDevice; unreachables in G_DEFINE_TYPE) | ||||
* | nope, LCOV_EXCL_LINE doesn't work on macros | Charles Kerr | 2012-05-26 | 1 | -7/+7 |
| | |||||
* | try adding LCOV_EXCL_LINE for unreachable conditions (glib looking for ↵ | Charles Kerr | 2012-05-26 | 1 | -7/+7 |
| | | | | subclasses of IndicatorPowerDevice; unreachables in G_DEFINE_TYPE) | ||||
* | remove the 'default' clause from get_property() and set_property(). | Charles Kerr | 2012-05-24 | 1 | -8/+0 |
| | | | | | Coverage testing isn't reaching them... glib is weeding out these invalid property keys before the device.c functions are ever reached. Nevertheless, leaving out a 'default' clause in a switch statement feels very unnatural to me. *twitch* *twitch* | ||||
* | remove some unnecessary type compatibilty tests... g_object_get_property() ↵ | Charles Kerr | 2012-05-24 | 1 | -6/+0 |
| | | | | does these tests for us | ||||
* | remove some unnecessary type compatibilty tests... g_object_set_property() ↵ | Charles Kerr | 2012-05-24 | 1 | -6/+0 |
| | | | | does these tests for us | ||||
* | remove the g_clear_pointer() calls s.t. things will build and run on ↵ | Charles Kerr | 2012-05-24 | 1 | -2/+6 |
| | | | | alesage's Jenkins setup running Precise |