aboutsummaryrefslogtreecommitdiff
path: root/src/service.c
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-11-10 11:38:30 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-11-10 11:38:30 +0100
commit47feef09024f8ab76985d118637e14454a46c71e (patch)
treea550ccc548f92f73b0bc6f8ffb8db1215dd9e4f3 /src/service.c
parent2b2ee5a8610f20e51509a709a114826219051b2e (diff)
parent1b8c12e2f7f6bda8efa3c632f789521cdcf82fd0 (diff)
downloadayatana-indicator-power-47feef09024f8ab76985d118637e14454a46c71e.tar.gz
ayatana-indicator-power-47feef09024f8ab76985d118637e14454a46c71e.tar.bz2
ayatana-indicator-power-47feef09024f8ab76985d118637e14454a46c71e.zip
Merge branch 'tari01-pr/fix-theming'
Attributes GH PR #65: https://github.com/AyatanaIndicators/ayatana-indicator-power/pull/65
Diffstat (limited to 'src/service.c')
-rw-r--r--src/service.c6
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);