aboutsummaryrefslogtreecommitdiff
path: root/src/sound-menu.vala
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-07-25 16:21:44 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-07-25 16:21:44 +0200
commit997864b9fc62596e8cc238f4c4b77d780651ffb4 (patch)
tree89785ca4dfe0469b6b333e9247e85bf35269c695 /src/sound-menu.vala
parentc416b3463055a0167f2e1412c7442674de5e75d8 (diff)
downloadayatana-indicator-sound-997864b9fc62596e8cc238f4c4b77d780651ffb4.tar.gz
ayatana-indicator-sound-997864b9fc62596e8cc238f4c4b77d780651ffb4.tar.bz2
ayatana-indicator-sound-997864b9fc62596e8cc238f4c4b77d780651ffb4.zip
service.vala: store menus in a hash table, keyed by profile name
Diffstat (limited to 'src/sound-menu.vala')
-rw-r--r--src/sound-menu.vala8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/sound-menu.vala b/src/sound-menu.vala
index acb9adf..376ef15 100644
--- a/src/sound-menu.vala
+++ b/src/sound-menu.vala
@@ -43,8 +43,12 @@ class SoundMenu: Object
root.append_item (root_item);
}
- public void export (DBusConnection connection, string object_path) throws Error {
- connection.export_menu_model (object_path, this.root);
+ public void export (DBusConnection connection, string object_path) {
+ try {
+ connection.export_menu_model (object_path, this.root);
+ } catch (Error e) {
+ critical ("%s", e.message);
+ }
}
public bool show_mic_volume {