diff options
author | Robert Tari <robert@tari.in> | 2022-10-06 04:12:51 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-11-10 11:38:08 +0100 |
commit | 1b8c12e2f7f6bda8efa3c632f789521cdcf82fd0 (patch) | |
tree | a550ccc548f92f73b0bc6f8ffb8db1215dd9e4f3 /src/service.c | |
parent | 2b2ee5a8610f20e51509a709a114826219051b2e (diff) | |
download | ayatana-indicator-power-1b8c12e2f7f6bda8efa3c632f789521cdcf82fd0.tar.gz ayatana-indicator-power-1b8c12e2f7f6bda8efa3c632f789521cdcf82fd0.tar.bz2 ayatana-indicator-power-1b8c12e2f7f6bda8efa3c632f789521cdcf82fd0.zip |
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
Diffstat (limited to 'src/service.c')
-rw-r--r-- | src/service.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |