Merge lp:~zeitgeist/unity-lens-applications/fix-1196822-port-to-libzeitgeist2 into lp:unity-lens-applications

Status: Needs review
Proposed branch: lp:~zeitgeist/unity-lens-applications/fix-1196822-port-to-libzeitgeist2
Merge into: lp:unity-lens-applications
Diff against target: 104 lines (+15/-15)
4 files modified
configure.ac (+1/-1)
debian/control (+1/-1)
src/Makefile.am (+1/-1)
src/daemon.vala (+12/-12)
To merge this branch: bzr merge lp:~zeitgeist/unity-lens-applications/fix-1196822-port-to-libzeitgeist2
Reviewer Review Type Date Requested Status
Marco Trevisan (Treviño) Needs Fixing
PS Jenkins bot (community) continuous-integration Needs Fixing
Review via email: mp+172475@code.launchpad.net

Commit message

Port unity-lens-applications to libzeitgeist2

Description of the change

Fixes LP #1196822 by porting unity-lens-applications to libzeitgeist2 and updated debian/control with proper build-dep

The Ubuntu Bug is #1197569

(PS - Signed contributor's agreement)

To post a comment you must log in.
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Everything looks fine to me, thanks!

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

This doesn't merge cleanly with trunk, can you please update it?

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) :
review: Needs Fixing

Unmerged revisions

350. By Manish Sinha (मनीष सिन्हा)

Updated debian/control to build-dep on libzeitgeist2

349. By Manish Sinha (मनीष सिन्हा)

Fixes LP #1196822 by porting unity-lens-applications to libzeitgeist2

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'configure.ac'
--- configure.ac 2013-05-16 21:13:36 +0000
+++ configure.ac 2013-07-02 07:32:32 +0000
@@ -74,7 +74,7 @@
74 gio-unix-2.0 >= $GLIB_REQUIRED74 gio-unix-2.0 >= $GLIB_REQUIRED
75 gee-1.075 gee-1.0
76 dee-1.0 >= 0.5.1676 dee-1.0 >= 0.5.16
77 zeitgeist-1.0 >= 0.3.877 zeitgeist-2.0 >= 0.9.12
78 libcolumbus0 >= 0.4.078 libcolumbus0 >= 0.4.0
79 unity >= 7.0.079 unity >= 7.0.0
80 unity-protocol-private80 unity-protocol-private
8181
=== modified file 'debian/control'
--- debian/control 2013-06-08 21:35:34 +0000
+++ debian/control 2013-07-02 07:32:32 +0000
@@ -10,7 +10,7 @@
10 libglib2.0-dev (>= 2.27),10 libglib2.0-dev (>= 2.27),
11 libgee-dev,11 libgee-dev,
12 libdee-dev (>= 0.5.16),12 libdee-dev (>= 0.5.16),
13 libzeitgeist-dev (>= 0.3.8),13 libzeitgeist-2.0-dev (>= 0.9.12),
14 libunity-dev (>= 7.0.0),14 libunity-dev (>= 7.0.0),
15 libgnome-menu-3-dev,15 libgnome-menu-3-dev,
16 dh-autoreconf,16 dh-autoreconf,
1717
=== modified file 'src/Makefile.am'
--- src/Makefile.am 2013-05-16 11:37:05 +0000
+++ src/Makefile.am 2013-07-02 07:32:32 +0000
@@ -33,7 +33,7 @@
33 --pkg gio-2.0 \33 --pkg gio-2.0 \
34 --pkg gio-unix-2.0 \34 --pkg gio-unix-2.0 \
35 --pkg dee-1.0 \35 --pkg dee-1.0 \
36 --pkg zeitgeist-1.0 \36 --pkg zeitgeist-2.0 \
37 --pkg unity \37 --pkg unity \
38 --pkg unity-protocol \38 --pkg unity-protocol \
39 --pkg gee-1.0 \39 --pkg gee-1.0 \
4040
=== modified file 'src/daemon.vala'
--- src/daemon.vala 2013-07-01 12:17:01 +0000
+++ src/daemon.vala 2013-07-02 07:32:32 +0000
@@ -101,7 +101,7 @@
101 private Unity.LauncherFavorites favorite_apps;101 private Unity.LauncherFavorites favorite_apps;
102 private AppWatcher app_watcher;102 private AppWatcher app_watcher;
103103
104 private PtrArray zg_templates;104 private GenericArray<Event> zg_templates;
105105
106 /* Gnome menu structure - also used to check whether apps are installed */106 /* Gnome menu structure - also used to check whether apps are installed */
107 private uint app_menu_changed_reindex_timeout = 0;107 private uint app_menu_changed_reindex_timeout = 0;
@@ -467,13 +467,13 @@
467 private void populate_zg_templates ()467 private void populate_zg_templates ()
468 {468 {
469 /* Create a template that activation of applications */469 /* Create a template that activation of applications */
470 zg_templates = new PtrArray.sized(1);470 zg_templates = new GenericArray<Event>();
471 var ev = new Zeitgeist.Event.full (ZG_ACCESS_EVENT, ZG_USER_ACTIVITY, "",471 var ev = new Zeitgeist.Event.full (ZG.ACCESS_EVENT, ZG.USER_ACTIVITY, "","");
472 new Subject.full ("application*",472 ev.add_subject(new Subject.full ("application*",
473 "", //NFO_SOFTWARE,473 "", //NFO.SOFTWARE,
474 "",474 "",
475 "", "", "", ""));475 "", "", "", ""));
476 zg_templates.add ((ev as GLib.Object).ref());476 zg_templates.add (ev);
477 }477 }
478478
479 private void mark_dirty ()479 private void mark_dirty ()
@@ -487,7 +487,7 @@
487 try487 try
488 {488 {
489 // simulate a kind of frecency489 // simulate a kind of frecency
490 var end_ts = Timestamp.now ();490 var end_ts = Timestamp.from_now ();
491 var start_ts = end_ts - Timestamp.WEEK * 3;491 var start_ts = end_ts - Timestamp.WEEK * 3;
492 var rs = yield log.find_events (new TimeRange (start_ts, end_ts),492 var rs = yield log.find_events (new TimeRange (start_ts, end_ts),
493 zg_templates,493 zg_templates,
@@ -499,11 +499,11 @@
499 // most popular apps must have high value, so unknown apps (where499 // most popular apps must have high value, so unknown apps (where
500 // popularity_map[app] == 0 aren't considered super popular500 // popularity_map[app] == 0 aren't considered super popular
501 int relevancy = 256;501 int relevancy = 256;
502 foreach (unowned Event event in rs)502 foreach (Event event in rs)
503 {503 {
504 for (int i = 0; i < event.num_subjects (); i++)504 for (int i = 0; i < event.num_subjects (); i++)
505 {505 {
506 unowned string uri = event.get_subject (i).get_uri ();506 string uri = event.get_subject (i).uri;
507 if (uri == null) continue;507 if (uri == null) continue;
508 popularity_map[uri] = relevancy;508 popularity_map[uri] = relevancy;
509 }509 }
@@ -1846,7 +1846,7 @@
1846 {1846 {
1847 string? app_uri = null;1847 string? app_uri = null;
1848 if (ev.num_subjects () > 0)1848 if (ev.num_subjects () > 0)
1849 app_uri = ev.get_subject (0).get_uri ();1849 app_uri = ev.get_subject (0).uri;
18501850
1851 if (app_uri == null)1851 if (app_uri == null)
1852 {1852 {

Subscribers

People subscribed via source and target branches