Commit ba83c901 authored by Travis Reitter's avatar Travis Reitter

Use the GLib definition for ObjectPath.

Helps: bgo#629716 - Migrate Folks to GDBus
parent 627643e9
......@@ -25,7 +25,7 @@ using Folks;
private struct AccountFavourites
{
DBus.ObjectPath account_path;
ObjectPath account_path;
string[] ids;
}
......@@ -35,12 +35,12 @@ private interface LoggerIface : DBus.Object
public abstract async AccountFavourites[] get_favourite_contacts ()
throws DBus.Error;
public abstract async void add_favourite_contact (
DBus.ObjectPath account_path, string id) throws DBus.Error;
ObjectPath account_path, string id) throws DBus.Error;
public abstract async void remove_favourite_contact (
DBus.ObjectPath account_path, string id) throws DBus.Error;
ObjectPath account_path, string id) throws DBus.Error;
public abstract signal void favourite_contacts_changed (
DBus.ObjectPath account_path, string[] added, string[] removed);
ObjectPath account_path, string[] added, string[] removed);
}
internal class Logger : GLib.Object
......@@ -125,7 +125,7 @@ internal class Logger : GLib.Object
return;
yield this._logger.add_favourite_contact (
new DBus.ObjectPath (this._account_path), id);
new ObjectPath (this._account_path), id);
}
public async void remove_favourite_contact (string id) throws DBus.Error
......@@ -135,6 +135,6 @@ internal class Logger : GLib.Object
return;
yield this._logger.remove_favourite_contact (
new DBus.ObjectPath (this._account_path), id);
new ObjectPath (this._account_path), id);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment