aboutsummaryrefslogtreecommitdiff
path: root/src/sound-menu.vala
diff options
context:
space:
mode:
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 {