diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-05-05 23:38:21 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-05-05 23:38:21 +0200 |
commit | 08039f0bfcd35efca2a075bbf49fe3e45d89d5bf (patch) | |
tree | 62152c893faf4b24a6925fdebe2a9b40f2bfe1fd /src/testing.c | |
parent | e62300da9bf1eedbbdb1579f75b0d75d351e6950 (diff) | |
parent | 8f7c0cdbfd3ac5166a9628f917a0184fe5a44628 (diff) | |
download | ayatana-indicator-power-08039f0bfcd35efca2a075bbf49fe3e45d89d5bf.tar.gz ayatana-indicator-power-08039f0bfcd35efca2a075bbf49fe3e45d89d5bf.tar.bz2 ayatana-indicator-power-08039f0bfcd35efca2a075bbf49fe3e45d89d5bf.zip |
Merge branch 'tari01-pr/adapt-to-level-ido'
Attributes GH PR #76: https://github.com/AyatanaIndicators/ayatana-indicator-power/pull/76
Diffstat (limited to 'src/testing.c')
-rw-r--r-- | src/testing.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/testing.c b/src/testing.c index 6c5e8c4..3633cfe 100644 --- a/src/testing.c +++ b/src/testing.c @@ -1,5 +1,6 @@ /* * Copyright 2014 Canonical Ltd. + * Copyright 2023 Robert Tari * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published @@ -15,6 +16,7 @@ * * Authors: * Charles Kerr <charles.kerr@canonical.com> + * Robert Tari <robert@tari.in> */ #include "dbus-shared.h" @@ -185,7 +187,7 @@ on_bus_changed(IndicatorPowerService * service, IndicatorPowerTesting * self) { GObject * bus = NULL; - g_object_get(service, "bus", &bus, NULL); + g_object_get(service, "bus", &bus, NULL); set_bus(self, G_DBUS_CONNECTION(bus)); g_clear_object(&bus); } @@ -296,9 +298,10 @@ indicator_power_testing_init (IndicatorPowerTesting * self) G_CALLBACK(on_mock_battery_minutes_left_changed), self); /* Mock Battery */ - + p->battery_mock = indicator_power_device_new("/some/path", UP_DEVICE_KIND_BATTERY, + "Some Model", 50.0, UP_DEVICE_STATE_DISCHARGING, 60*30, |