Skip to content

Commit

Permalink
Changes in manager.vala for problems compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
freexploit committed Aug 19, 2012
1 parent e4502d3 commit 1eeeede
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/manager.vala
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[DBus (name="org.globalmenu.menu")]
public interface Menu: Object {
public abstract async void get_ui(string path, out string ui) throws IOError;
public abstract async void get_ui(string path, out string ui) throws Error;
public abstract uint64 xwindow {get; }
public abstract async void emit(string path) throws IOError;
public abstract async void emit(string path) throws Error;
}

private class KnownBusName {
public class KnownBusName {
public Datalist<Menu> known_objects;
public uint watch_id;
}
Expand All @@ -30,7 +30,7 @@ public class Manager: Object {
try {
Menu menu = Bus.get_proxy_sync(BusType.SESSION, sender, object_path, DBusProxyFlags.DO_NOT_AUTO_START);
k.known_objects.set_data(object_path, menu);
} catch (IOError e) {
} catch (Error e) {
warning("Manager can't access client %s\n", e.message);
}
return false;
Expand All @@ -47,7 +47,7 @@ public class Manager: Object {
menu.get_ui.begin(path, (obj, res) => {
try {
menu.get_ui.end(res, out s);
} catch (IOError e) {
} catch (Error e) {
warning ("failed to objtain ui, %s", e.message);
s = "<error/>";
}
Expand All @@ -72,7 +72,7 @@ public class Manager: Object {
try {
Menu m = Bus.get_proxy_sync(BusType.SESSION, bus_name, object_path, DBusProxyFlags.DO_NOT_AUTO_START);
sb.append_printf("%llu:%s:%s\n", m.xwindow, bus_name, object_path);
} catch (IOError e) {
} catch (Error e) {
warning("ioerror %s", e.message);
}
}
Expand Down Expand Up @@ -110,7 +110,7 @@ void main () {
(conn, name) => {
try {
conn.register_object("/org/globalmenu/manager", man);
} catch (IOError e) {
} catch (Error e) {
error("could not register service\n");
}
},
Expand Down

0 comments on commit 1eeeede

Please sign in to comment.