From 1b8c12e2f7f6bda8efa3c632f789521cdcf82fd0 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Thu, 6 Oct 2022 04:12:51 +0200 Subject: Theming fix: Separate panel icons from the power menu icons 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test-device.cc b/tests/test-device.cc index 474fa36..fd787ee 100644 --- a/tests/test-device.cc +++ b/tests/test-device.cc @@ -71,7 +71,7 @@ class DeviceTest : public ::testing::Test static std::string get_icon_names_from_device(const IndicatorPowerDevice* device) { std::string ret; - char ** names = indicator_power_device_get_icon_names (device); + char ** names = indicator_power_device_get_icon_names (device, TRUE); char * str = g_strjoinv (";", names); if (str != nullptr) ret = str; @@ -282,7 +282,7 @@ TEST_F(DeviceTest, IconNames) // bad arguments log_count_ipower_expected++; - ASSERT_TRUE (indicator_power_device_get_icon_names (NULL) == NULL); + ASSERT_TRUE (indicator_power_device_get_icon_names (NULL, TRUE) == NULL); // power g_object_set (o, INDICATOR_POWER_DEVICE_KIND, UP_DEVICE_KIND_LINE_POWER, -- cgit v1.2.3