diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-07-25 16:21:44 +0200 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-07-25 16:21:44 +0200 |
commit | 997864b9fc62596e8cc238f4c4b77d780651ffb4 (patch) | |
tree | 89785ca4dfe0469b6b333e9247e85bf35269c695 /src/sound-menu.vala | |
parent | c416b3463055a0167f2e1412c7442674de5e75d8 (diff) | |
download | ayatana-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.vala | 8 |
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 { |