diff options
author | Seif Lotfy <seif@lotfy.com> | 2012-08-05 13:12:55 +0200 |
---|---|---|
committer | Seif Lotfy <seif@lotfy.com> | 2012-08-05 13:12:55 +0200 |
commit | fa5cea7e2317ae206ba2bb4eef3e77525bcfb3c2 (patch) | |
tree | d7214aed507057c916d7e613949825b26fc07c55 /src/recent-manager-provider.vala | |
parent | 9678c79e3839005d48dd7091e47b921d53e17a10 (diff) |
Port to libzeitgeist2
Diffstat (limited to 'src/recent-manager-provider.vala')
-rw-r--r-- | src/recent-manager-provider.vala | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/src/recent-manager-provider.vala b/src/recent-manager-provider.vala index 466a71c..df16811 100644 --- a/src/recent-manager-provider.vala +++ b/src/recent-manager-provider.vala @@ -179,13 +179,14 @@ public class RecentManagerGtk : DataProvider if (log_create) { - event = new Event.full (ZG_CREATE_EVENT, - ZG_USER_ACTIVITY, + event = new Event.full (ZG.ACCESS_EVENT, + ZG.USER_ACTIVITY, actor, - subject, null); + null, null); + event.add_subject (subject); timestamp = ri.get_added (); timestamp *= 1000; - event.set_timestamp (timestamp); + event.timestamp = timestamp; if (timestamp > last_timestamp && timestamp >= 0) { events.add ((owned) event); @@ -194,13 +195,14 @@ public class RecentManagerGtk : DataProvider if (log_modify) { - event = new Event.full (ZG_MODIFY_EVENT, - ZG_USER_ACTIVITY, + event = new Event.full (ZG.MODIFY_EVENT, + ZG.USER_ACTIVITY, actor, - subject, null); + null , null); + event.add_subject (subject); timestamp = ri.get_modified (); timestamp *= 1000; - event.set_timestamp (timestamp); + event.timestamp = timestamp; if (timestamp > last_timestamp && timestamp >= 0) { events.add ((owned) event); @@ -209,13 +211,14 @@ public class RecentManagerGtk : DataProvider if (log_access) { - event = new Event.full (ZG_ACCESS_EVENT, - ZG_USER_ACTIVITY, + event = new Event.full (ZG.ACCESS_EVENT, + ZG.USER_ACTIVITY, actor, - subject, null); + null, null); + event.add_subject (subject); timestamp = ri.get_visited (); timestamp *= 1000; - event.set_timestamp (timestamp); + event.timestamp = timestamp; if (timestamp > last_timestamp && timestamp >= 0) { events.add ((owned) event); |