aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2020-12-22 00:20:05 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-12-22 15:53:26 +0100
commit0f5f6c0bb58be02b6625a8bd8f9e24c923ae51b4 (patch)
treeeb7fa69f774e7544e21f9cf89b89d7c4ca786add /src
parent14e884ba0fd16da277f5f36ce02fa3c1a00a222c (diff)
downloadayatana-indicator-bluetooth-0f5f6c0bb58be02b6625a8bd8f9e24c923ae51b4.tar.gz
ayatana-indicator-bluetooth-0f5f6c0bb58be02b6625a8bd8f9e24c923ae51b4.tar.bz2
ayatana-indicator-bluetooth-0f5f6c0bb58be02b6625a8bd8f9e24c923ae51b4.zip
Show devices in sections
Diffstat (limited to 'src')
-rw-r--r--src/desktop.vala11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/desktop.vala b/src/desktop.vala
index 50ed129..cab782b 100644
--- a/src/desktop.vala
+++ b/src/desktop.vala
@@ -179,7 +179,16 @@ class Desktop: Profile
{
item = new MenuItem (device.name, null);
item.set_attribute_value ("icon", device.icon.serialize());
- item.set_submenu (submenu);
+
+ if (Environment.get_variable("MIR_SOCKET") != null)
+ {
+ item.set_submenu (submenu);
+ }
+ else
+ {
+ item.set_section (submenu);
+ }
+
device_section.append_item (item);
}
}