aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/service.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index 293a983..f9122ba 100644
--- a/src/service.c
+++ b/src/service.c
@@ -494,6 +494,16 @@ create_header_state (IndicatorPowerService * self)
g_object_unref (icon);
}
}
+ else if (ayatana_common_utils_is_lomiri())
+ {
+ g_variant_builder_add (&b, "{sv}", "label", g_variant_new_string ("Fake battery"));
+ g_variant_builder_add (&b, "{sv}", "accessible-desc", g_variant_new_string ("Fake battery"));
+ GIcon *pIcon = g_themed_icon_new_with_default_fallbacks ("battery-missing-symbolic");
+ GVariant *pIconSerialised = g_icon_serialize (pIcon);
+ g_object_unref (pIcon);
+ g_variant_builder_add (&b, "{sv}", "icon", pIconSerialised);
+ g_variant_unref (pIconSerialised);
+ }
return g_variant_builder_end (&b);
}