aboutsummaryrefslogtreecommitdiff
path: root/src/device.h
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2022-10-06 04:12:51 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-11-10 11:38:08 +0100
commit1b8c12e2f7f6bda8efa3c632f789521cdcf82fd0 (patch)
treea550ccc548f92f73b0bc6f8ffb8db1215dd9e4f3 /src/device.h
parent2b2ee5a8610f20e51509a709a114826219051b2e (diff)
downloadayatana-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/device.h')
-rw-r--r--src/device.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/device.h b/src/device.h
index 1186cee..15c64f3 100644
--- a/src/device.h
+++ b/src/device.h
@@ -3,9 +3,11 @@
A simple Device structure used internally by indicator-power
Copyright 2012 Canonical Ltd.
+Copyright 2022 Robert Tari
Authors:
Charles Kerr <charles.kerr@canonical.com>
+ Robert Tari <robert@tari.in>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@@ -126,8 +128,8 @@ gdouble indicator_power_device_get_percentage (const IndicatorPower
time_t indicator_power_device_get_time (const IndicatorPowerDevice * device);
gboolean indicator_power_device_get_power_supply (const IndicatorPowerDevice * device);
-GStrv indicator_power_device_get_icon_names (const IndicatorPowerDevice * device);
-GIcon * indicator_power_device_get_gicon (const IndicatorPowerDevice * device);
+GStrv indicator_power_device_get_icon_names (const IndicatorPowerDevice * device, gboolean panel);
+GIcon * indicator_power_device_get_gicon (const IndicatorPowerDevice * device, gboolean panel);
char * indicator_power_device_get_readable_text (const IndicatorPowerDevice * device);