power: Fix runtime warnings with test features enabled
(gnome-control-center:172393): libupower-glib-WARNING **: 15:00:10.866: Property ID 'power-supply' (6) was never set (gnome-control-center:172393): libupower-glib-WARNING **: 15:00:10.866: Property ID 'is-present' (8) was never set (gnome-control-center:172393): libupower-glib-WARNING **: 15:00:10.866: Property ID 'battery-level' (28) was never set (gnome-control-center:174498): libupower-glib-WARNING **: 15:04:44.859: Property ID 'time-to-full' (24) was never set
This commit is contained in:
parent
af14cda496
commit
12c01e708f
1 changed files with 10 additions and 0 deletions
|
@ -846,6 +846,9 @@ up_client_changed (CcPowerPanel *self)
|
|||
"state", UP_DEVICE_STATE_DISCHARGING,
|
||||
"time-to-empty", 287,
|
||||
"icon-name", "battery-full-symbolic",
|
||||
"power-supply", FALSE,
|
||||
"is-present", TRUE,
|
||||
"battery-level", UP_DEVICE_LEVEL_NONE,
|
||||
NULL);
|
||||
g_ptr_array_add (self->devices, device);
|
||||
device = up_device_new ();
|
||||
|
@ -857,6 +860,9 @@ up_client_changed (CcPowerPanel *self)
|
|||
"state", UP_DEVICE_STATE_DISCHARGING,
|
||||
"time-to-empty", 250,
|
||||
"icon-name", "battery-good-symbolic",
|
||||
"power-supply", FALSE,
|
||||
"is-present", TRUE,
|
||||
"battery-level", UP_DEVICE_LEVEL_NONE,
|
||||
NULL);
|
||||
g_ptr_array_add (self->devices, device);
|
||||
device = up_device_new ();
|
||||
|
@ -870,7 +876,11 @@ up_client_changed (CcPowerPanel *self)
|
|||
"energy-full", 55.0,
|
||||
"energy-rate", 15.0,
|
||||
"time-to-empty", 400,
|
||||
"time-to-full", 0,
|
||||
"icon-name", "battery-full-charged-symbolic",
|
||||
"power-supply", TRUE,
|
||||
"is-present", TRUE,
|
||||
"battery-level", UP_DEVICE_LEVEL_NONE,
|
||||
NULL);
|
||||
g_ptr_array_add (self->devices, device);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue