Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | tests/test-device.cc: Fix icon tests | Robert Tari | 2022-11-12 | 1 | -22/+52 |
| | |||||
* | Theming fix: Separate panel icons from the power menu icons | Robert Tari | 2022-11-10 | 1 | -2/+2 |
| | | | | | | This fixes the broken theming issue where the Power Indicator menu shows the same icons as used by the panel, rather than the ones used elsewhere on the system. End result: makes any theme capable of becoming Ayatana-friendly without hacks | ||||
* | tests/test-device.cc: Add missing header | Robert Tari | 2022-09-02 | 1 | -1/+3 |
| | |||||
* | Whitespace fix | Robert Tari | 2022-09-02 | 1 | -2/+2 |
| | |||||
* | fix cmake warning of the test apps' dependency on the service library | Charles Kerr | 2021-08-28 | 1 | -2/+2 |
| | |||||
* | tests/test-device.cc: Fix failing tests after we have renamed DG_LOG_DOMAIN. | Mike Gabriel | 2017-12-06 | 1 | -2/+2 |
| | |||||
* | Make device with power supply has higher sorting priority. (LP: #1100546) | Charles Kerr | 2017-05-15 | 1 | -47/+53 |
| | |||||
* | Fix bug that chose the wrong header icon if a connected device has a charge ↵ | Charles Kerr | 2017-05-15 | 1 | -108/+268 |
| | | | | but its charging/discharging state is unknown. (LP: #1470080). | ||||
* | Fix the fallback power icon so the battery icon doesn't show red above 20% ↵ | Charles Kerr | 2017-05-15 | 1 | -27/+39 |
| | | | | even when the Suru icon theme isn't present. Fixes: LP:#1559731. | ||||
* | Fork from Ubuntu's indicator-power code project. | Mike Gabriel | 2015-11-12 | 1 | -2/+2 |
| | |||||
* | round power level to the nearest 10% to take advantage of higher-resolution ↵ | Charles Kerr | 2015-01-12 | 1 | -2/+20 |
| | | | | power level icons | ||||
* | fix typo introduced while trying to fix clang -Weverything warnings | Charles Kerr | 2014-09-08 | 1 | -1/+1 |
| | |||||
* | silence warnings generated by clang -Weverything | Charles Kerr | 2014-09-07 | 1 | -29/+29 |
| | |||||
* | sync unit tests. | Charles Kerr | 2014-07-29 | 1 | -8/+8 |
| | |||||
* | replace 'std::vector<unsigned>' with 'std::vector<unsigned int>' for readability | Charles Kerr | 2014-07-17 | 1 | -1/+1 |
| | |||||
* | fix some compiler warnings generated by clang static analyzer | Charles Kerr | 2014-07-13 | 1 | -2/+2 |
| | |||||
* | prefer the 'battery-020-charging' icon to the 'battery-low-charging' one ↵ | Charles Kerr | 2014-05-05 | 1 | -5/+10 |
| | | | | 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 | -21/+36 |
|\ | |||||
| * | when expecting a NULL string, use EXPECT_EQ(NULL, str) | Charles Kerr | 2014-03-13 | 1 | -5/+17 |
| | | |||||
| * | in the new indicator_power_device_get_*() functions, use heap-allocated ↵ | Charles Kerr | 2014-03-13 | 1 | -21/+24 |
| | | | | | | | | strings rather than relying on g_snprintf(). | ||||
* | | when choosing a primary device and more than one battery is found, ↵ | Charles Kerr | 2014-03-19 | 1 | -65/+95 |
|/ | | | | accumulate their percentages and time-remaining properties as per the spec revisions in bug #880881. | ||||
* | update the header / menuitem text / accessible text to reflect the changes ↵ | Charles Kerr | 2014-03-04 | 1 | -40/+112 |
| | | | | in https://wiki.ubuntu.com/Power?action=diff&rev2=44&rev1=43#Title | ||||
* | use the correct battery icon when charging/discharging | Charles Kerr | 2013-10-01 | 1 | -12/+12 |
| | |||||
* | update the tests to look at the 24 hour threshold | Charles Kerr | 2013-08-23 | 1 | -3/+3 |
| | |||||
* | copyediting: remove trailing spaces in source code | Charles Kerr | 2013-08-22 | 1 | -11/+11 |
| | |||||
* | add show-percentage feature, basing off Haw Loeung's patch. | Charles Kerr | 2013-08-22 | 1 | -33/+79 |
| | |||||
* | get test-devices building and passing again. | Charles Kerr | 2013-06-17 | 1 | -10/+10 |
| | |||||
* | first steps at fixing the tests that broke during GMenuification | Charles Kerr | 2013-06-16 | 1 | -3/+4 |
| | |||||
* | remove g_type_init() calls and bump glib minimum to 2.35.4, where ↵ | Charles Kerr | 2013-01-17 | 1 | -26/+0 |
| | | | | g_type_init() is deprecated | ||||
* | explicitly cast integral values to the correct type when passing them to a ↵ | Charles Kerr | 2012-11-16 | 1 | -4/+4 |
| | | | | varargs function. | ||||
* | modify DeviceTest.Labels s.t. it fails (currently failing) if the 'short' ↵ | Charles Kerr | 2012-11-07 | 1 | -1/+1 |
| | | | | string for an AC Adapter is nonempty. | ||||
* | in TestDevice.ChoosePrimary, add another test (currently failing) to confirm ↵ | Charles Kerr | 2012-11-06 | 1 | -0/+1 |
| | | | | that when indicator-datetime is choosing from devices that are neither charging nor discharging, batteries are more interesting than other devices, and other devices are more interesting than UP_DEVICE_KIND_LINE_POWER | ||||
* | add unit test (currently failing) to test for the bug reported in LP bug ↵ | Charles Kerr | 2012-11-06 | 1 | -11/+15 |
| | | | | #1075192 | ||||
* | in TestDevice, make the log variable names a little more consistent | Charles Kerr | 2012-10-28 | 1 | -14/+14 |
| | |||||
* | set DeviceTest's gwarning/gcritical log func to one that prints no messages ↵ | Charles Kerr | 2012-10-28 | 1 | -0/+31 |
| | | | | but accumulates the log count. This way we can both (a) silence in-console warnings that look like bugs in the test but are actually desirable warnings generated by fuzz testing, and (b) assert that we get exactly as many warnings/criticals as we expect to get. | ||||
* | expand DeviceTest.ChoosePrimary to test choosing from a wider variety of ↵ | Charles Kerr | 2012-10-28 | 1 | -67/+44 |
| | | | | device states. | ||||
* | add test (currently failing) to detect the logic error reported in bug #1071757 | Charles Kerr | 2012-10-26 | 1 | -0/+16 |
| | |||||
* | fix comment typo | Charles Kerr | 2012-10-26 | 1 | -1/+1 |
| | |||||
* | Select the primary device based on the spec's criteria. Add tests to confirm. | Charles Kerr | 2012-10-26 | 1 | -0/+75 |
| | |||||
* | the device kind string wasn't being used in some icon names. | Charles Kerr | 2012-10-25 | 1 | -145/+196 |
| | |||||
* | when discharging the battery, prefer the percent-charged icons over the ↵ | Charles Kerr | 2012-10-03 | 1 | -7/+15 |
| | | | | full,good,low icons because the former show a more accurate view of the charge. | ||||
* | copyediting: text formatting to make the icon list more readable | Charles Kerr | 2012-09-05 | 1 | -3/+6 |
| | |||||
* | reimplement indicator_power_device_get_icon_names() since our CA is ↵ | Charles Kerr | 2012-06-06 | 1 | -17/+17 |
| | | | | incompatible with reusing code from GSD. | ||||
* | use C++-style comments in test-device.cc | Charles Kerr | 2012-06-01 | 1 | -32/+32 |
| | |||||
* | In indicator_power_device_get_time_details(), add a test for non-devices ↵ | Charles Kerr | 2012-06-01 | 1 | -1/+13 |
| | | | | being passed in. | ||||
* | Fix edge case in indicator_power_device_get_icon_names() that returned a bad ↵ | Charles Kerr | 2012-06-01 | 1 | -0/+3 |
| | | | | value if the caller passed in a NULL pointer as a device. Added regression test. | ||||
* | Add coverage test for AC Adapters in indicator_power_device_get_time_details() | Charles Kerr | 2012-06-01 | 1 | -0/+8 |
| | |||||
* | Add unit tests for indicator_power_device_get_time_details() | Charles Kerr | 2012-06-01 | 1 | -2/+87 |
| | |||||
* | remove IndicatorPowerDevice's now-unused device icon string. | Charles Kerr | 2012-05-31 | 1 | -12/+0 |
| | |||||
* | Add indicator_power_device_get_icon_names(). | Charles Kerr | 2012-05-31 | 1 | -5/+196 |
| | | | | | | | 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. |