diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2014-03-27 13:17:22 +0100 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2014-03-27 13:17:22 +0100 |
commit | 0b58eeb4ac217053c261444accc1124463e1ee3f (patch) | |
tree | e86ea3f0695145b094a7712fa3aa447a768411ca | |
parent | 6b9e3d4fb5e11d5d09bc376aa2a56db6a02b55ee (diff) | |
download | ayatana-indicator-power-0b58eeb4ac217053c261444accc1124463e1ee3f.tar.gz ayatana-indicator-power-0b58eeb4ac217053c261444accc1124463e1ee3f.tar.bz2 ayatana-indicator-power-0b58eeb4ac217053c261444accc1124463e1ee3f.zip |
Use com.canonical.indicator.basic menu item for device items
That menu item can handle non-square icons.
-rw-r--r-- | src/service.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c index 1d8ba3e..1a4e24a 100644 --- a/src/service.c +++ b/src/service.c @@ -389,6 +389,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); |