[folks] Use the GLib definition for ObjectPath.



commit ba83c9014931c9bbf897de14d7dbaa2876ccea32
Author: Travis Reitter <travis reitter collabora co uk>
Date:   Tue Jun 7 11:21:53 2011 -0700

    Use the GLib definition for ObjectPath.
    
    Helps: bgo#629716 - Migrate Folks to GDBus

 backends/telepathy/lib/tpf-logger.vala |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/backends/telepathy/lib/tpf-logger.vala b/backends/telepathy/lib/tpf-logger.vala
index e930638..11fa748 100644
--- a/backends/telepathy/lib/tpf-logger.vala
+++ b/backends/telepathy/lib/tpf-logger.vala
@@ -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);
     }
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]