aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2014-03-28 16:10:35 +0000
committerCI bot <ps-jenkins@lists.canonical.com>2014-03-28 16:10:35 +0000
commitfc86e4d5c40e577b1c9636e9fefa57173cef17af (patch)
tree2b501e37347cba7deb13506826e93715e980a689 /src
parent71ef36253e67a4383222b473be3f63188a0452a8 (diff)
parent0b58eeb4ac217053c261444accc1124463e1ee3f (diff)
downloadayatana-indicator-power-fc86e4d5c40e577b1c9636e9fefa57173cef17af.tar.gz
ayatana-indicator-power-fc86e4d5c40e577b1c9636e9fefa57173cef17af.tar.bz2
ayatana-indicator-power-fc86e4d5c40e577b1c9636e9fefa57173cef17af.zip
Use com.canonical.indicator.basic menu item for device items
That menu item can handle non-square icons. Fixes: 1263228
Diffstat (limited to 'src')
-rw-r--r--src/service.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index b01128e..00efe9b 100644
--- a/src/service.c
+++ b/src/service.c
@@ -391,6 +391,8 @@ append_device_to_menu (GMenu * menu, const IndicatorPowerDevice * device, int pr
item = g_menu_item_new (label, NULL);
g_free (label);
+ g_menu_item_set_attribute (item, "x-canonical-type", "s", "com.canonical.indicator.basic");
+
if ((icon = indicator_power_device_get_gicon (device)))
{
GVariant * serialized_icon = g_icon_serialize (icon);