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 --- src/service.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/service.c') diff --git a/src/service.c b/src/service.c index 2520286..3aec746 100644 --- a/src/service.c +++ b/src/service.c @@ -1,6 +1,6 @@ /* * Copyright 2013-2016 Canonical Ltd. - * Copyright 2021 Robert Tari + * Copyright 2021-2022 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 @@ -489,7 +489,7 @@ create_header_state (IndicatorPowerService * self) g_free (title); } - if ((icon = indicator_power_device_get_gicon (p->primary_device))) + if ((icon = indicator_power_device_get_gicon (p->primary_device, TRUE))) { GVariant * serialized_icon = g_icon_serialize (icon); @@ -530,7 +530,7 @@ append_device_to_menu (GMenu * menu, const IndicatorPowerDevice * device, int pr g_menu_item_set_attribute (item, "x-ayatana-type", "s", "org.ayatana.indicator.basic"); - if ((icon = indicator_power_device_get_gicon (device))) + if ((icon = indicator_power_device_get_gicon (device, FALSE))) { GVariant * serialized_icon = g_icon_serialize (icon); -- cgit v1.2.3