Merge lp:~mhr3/libunity/sources-filtering into lp:libunity

Proposed by Michal Hruby on 2012-01-11
Status: Merged
Approved by: Sebastien Bacher on 2012-01-17
Approved revision: 107
Merged at revision: 109
Proposed branch: lp:~mhr3/libunity/sources-filtering
Merge into: lp:libunity
Diff against target: 33 lines (+10/-2)
1 file modified
src/unity-scope-private.vala (+10/-2)
To merge this branch: bzr merge lp:~mhr3/libunity/sources-filtering
Reviewer Review Type Date Requested Status
Mikkel Kamstrup Erlandsen (community) 2012-01-11 Approve on 2012-01-12
Review via email: mp+88177@code.launchpad.net

Description of the Change

Make sure the filtering property is updated on scopes' sources filter, so it's consistent with other filters.

To post a comment you must log in.

Aha, good catch!

review: Approve
Unity Merger (unity-merger) wrote :

The Jenkins job https://jenkins.qa.ubuntu.com/job/automerge-libunity/30/console reported an error when processing this lp:~mhr3/libunity/sources-filtering branch.
Not merging it.

Unity Merger (unity-merger) wrote :

The Jenkins job https://jenkins.qa.ubuntu.com/job/automerge-libunity/35/console reported an error when processing this lp:~mhr3/libunity/sources-filtering branch.
Not merging it.

Let me try an approve again to see if Dee trunk makes stuff work again. (at least, it fixes the variant ref counting issue for me)

Unity Merger (unity-merger) wrote :

The Jenkins job https://jenkins.qa.ubuntu.com/job/automerge-libunity/39/console reported an error when processing this lp:~mhr3/libunity/sources-filtering branch.
Not merging it.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/unity-scope-private.vala'
2--- src/unity-scope-private.vala 2012-01-09 15:32:37 +0000
3+++ src/unity-scope-private.vala 2012-01-11 10:55:52 +0000
4@@ -173,9 +173,13 @@
5
6 private void on_filter_added (Dee.Model model, Dee.ModelIter iter)
7 {
8- /* we don't care about sources filter, it's handled separately */
9 if (model.get_string (iter, FilterColumn.ID) == Lens.SOURCES_FILTER_ID)
10+ {
11+ /* just make sure we directly update the properties on scope.sources
12+ * filter, the options are handled separately */
13+ _owner.sources.filtering = model.get_bool (iter, FilterColumn.FILTERING);
14 return;
15+ }
16
17 string icon_hint_s = model.get_string (iter, FilterColumn.ICON_HINT);
18
19@@ -229,9 +233,13 @@
20
21 private void on_filter_changed (Dee.Model model, Dee.ModelIter iter)
22 {
23- /* we don't care about sources filter, it's handled separately */
24 if (model.get_string (iter, FilterColumn.ID) == Lens.SOURCES_FILTER_ID)
25+ {
26+ /* just make sure we directly update the properties on scope.sources
27+ * filter, the options are handled separately */
28+ _owner.sources.filtering = model.get_bool (iter, FilterColumn.FILTERING);
29 return;
30+ }
31
32 queue_filters_changed ();
33 }

Subscribers

People subscribed via source and target branches