Merge lp:~macslow/libunity/libunity.fix-841902 into lp:libunity

Proposed by Mirco Müller
Status: Rejected
Rejected by: Mikkel Kamstrup Erlandsen
Proposed branch: lp:~macslow/libunity/libunity.fix-841902
Merge into: lp:libunity
Diff against target: 66 lines (+23/-1)
2 files modified
src/unity-lens-filters.vala (+18/-1)
src/unity-scope-private.vala (+5/-0)
To merge this branch: bzr merge lp:~macslow/libunity/libunity.fix-841902
Reviewer Review Type Date Requested Status
Mikkel Kamstrup Erlandsen (community) Approve
Michal Hruby (community) Approve
Review via email: mp+88031@code.launchpad.net

Description of the change

Superseded by: https://code.launchpad.net/~kamstrup/libunity/libunity.fix-841902/+merge/88924

This is the first branch of the three parts that are needed to fix LP: #841902. It is now using a new derived CheckOptionFilter and new renderer.

To post a comment you must log in.
Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

Sorry; there's a merge conflict...

review: Needs Fixing
Revision history for this message
Mirco Müller (macslow) wrote :

Merged with trunk again and fixed merge-conflicts.

Revision history for this message
Michal Hruby (mhr3) wrote :

Please move the new enum option to the end, otherwise we'd break ABI.

review: Needs Fixing
Revision history for this message
Mirco Müller (macslow) wrote :

Fixed. Please review.

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

Looking great!

review: Approve
Revision history for this message
Michal Hruby (mhr3) :
review: Approve
Revision history for this message
Unity Merger (unity-merger) wrote :

The Jenkins job https://jenkins.qa.ubuntu.com/job/automerge-libunity/31/console reported an error when processing this lp:~macslow/libunity/libunity.fix-841902 branch.
Not merging it.

Revision history for this message
Unity Merger (unity-merger) wrote :

The Jenkins job https://jenkins.qa.ubuntu.com/job/automerge-libunity/33/console reported an error when processing this lp:~macslow/libunity/libunity.fix-841902 branch.
Not merging it.

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

Mirco there is a compilation error in this branch:

  unity-lens-filters.vala:366.13-366.54: error: Property `renderer_name' not found in `Unity.CheckOptionFilterCompact'
            renderer_name:"filter-checkoption-compact", visible:true,

review: Needs Fixing
Revision history for this message
Michal Hruby (mhr3) wrote :

Whoops, yea we turned the renderer-name into an enum (called just "renderer").

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

looks good

review: Approve
Revision history for this message
Unity Merger (unity-merger) wrote :

The Jenkins job https://jenkins.qa.ubuntu.com/job/automerge-libunity/42/console reported an error when processing this lp:~macslow/libunity/libunity.fix-841902 branch.
Not merging it.

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

Fixed the branch and pushed it to https://code.launchpad.net/~kamstrup/libunity/libunity.fix-841902/+merge/88924. Marking this branch superseded.

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/unity-lens-filters.vala'
2--- src/unity-lens-filters.vala 2012-01-09 15:32:37 +0000
3+++ src/unity-lens-filters.vala 2012-01-17 16:03:33 +0000
4@@ -39,7 +39,8 @@
5 CHECK_OPTIONS = 0,
6 RADIO_OPTIONS,
7 MULTIRANGE,
8- RATINGS
9+ RATINGS,
10+ CHECK_COMPACT_OPTIONS
11 }
12
13 /*
14@@ -94,6 +95,7 @@
15 switch (renderer)
16 {
17 case FilterRenderer.CHECK_OPTIONS: return "filter-checkoption";
18+ case FilterRenderer.CHECK_COMPACT_OPTIONS: return "filter-checkoption-compact";
19 case FilterRenderer.RADIO_OPTIONS: return "filter-radiooption";
20 case FilterRenderer.RATINGS: return "filter-ratings";
21 case FilterRenderer.MULTIRANGE: return "filter-multirange";
22@@ -106,6 +108,7 @@
23 switch (renderer_name)
24 {
25 case "filter-checkoption": return FilterRenderer.CHECK_OPTIONS;
26+ case "filter-checkoption-compact": return FilterRenderer.CHECK_COMPACT_OPTIONS;
27 case "filter-radiooption": return FilterRenderer.RADIO_OPTIONS;
28 case "filter-ratings": return FilterRenderer.RATINGS;
29 case "filter-multirange": return FilterRenderer.MULTIRANGE;
30@@ -351,6 +354,20 @@
31 }
32 }
33
34+public class CheckOptionFilterCompact : OptionsFilter
35+{
36+ public CheckOptionFilterCompact (string id,
37+ string display_name,
38+ Icon? icon_hint=null,
39+ bool collapsed=false)
40+ {
41+ Object (id:id, display_name:display_name,
42+ icon_hint:icon_hint, collapsed:collapsed,
43+ renderer:FilterRenderer.CHECK_OPTIONS_COMPACT, visible:true,
44+ filtering:false);
45+ }
46+}
47+
48 /* RatingsFilter allows the user to choose a rating between 0.0f and 1.0f in
49 * 0.2f blocks (i.e. a rating up to five stars).
50 */
51
52=== modified file 'src/unity-scope-private.vala'
53--- src/unity-scope-private.vala 2012-01-11 10:51:07 +0000
54+++ src/unity-scope-private.vala 2012-01-17 16:03:33 +0000
55@@ -215,6 +215,11 @@
56 model.get_string (iter, FilterColumn.NAME),
57 icon_hint);
58 break;
59+ case FilterRenderer.CHECK_COMPACT_OPTIONS:
60+ filter = new CheckOptionFilterCompact (model.get_string (iter, FilterColumn.ID),
61+ model.get_string (iter, FilterColumn.NAME),
62+ icon_hint);
63+ break;
64 case FilterRenderer.MULTIRANGE:
65 filter = new MultiRangeFilter (model.get_string (iter, FilterColumn.ID),
66 model.get_string (iter, FilterColumn.NAME),

Subscribers

People subscribed via source and target branches