*/
using GUPnP;
-using DBus;
using Gee;
/**
MODIFIED_VARIABLE);
try {
- this.create_proxies ();
+ this.resources = Bus.get_proxy_sync (BusType.SESSION,
+ TRACKER_SERVICE,
+ RESOURCES_PATH);
this.get_children_count.begin ();
- } catch (DBus.Error error) {
+ } catch (IOError error) {
critical (_("Failed to connect to session bus: %s"), error.message);
}
}
}
}
- private void create_proxies () throws DBus.Error {
- DBus.Connection connection = DBus.Bus.get (DBus.BusType.SESSION);
-
- this.resources = connection.get_object (TRACKER_SERVICE, RESOURCES_PATH)
- as ResourcesIface;
- }
-
/**
* Chops the tail of a particular row in a 2-dimensional string array.
*