Merge lp:~unity-team/unity/changeset-demultiplexer into lp:unity

Proposed by Nick Dedekind
Status: Rejected
Rejected by: Marco Trevisan (Treviño)
Proposed branch: lp:~unity-team/unity/changeset-demultiplexer
Merge into: lp:unity
Diff against target: 49 lines (+5/-2)
2 files modified
UnityCore/ScopeProxy.cpp (+3/-0)
debian/control (+2/-2)
To merge this branch: bzr merge lp:~unity-team/unity/changeset-demultiplexer
Reviewer Review Type Date Requested Status
Christopher Townsend Approve
PS Jenkins bot (community) continuous-integration Needs Fixing
Review via email: mp+196291@code.launchpad.net

Commit message

Set a demultiplexer for the result filter model.

Description of the change

Set a demultiplexer for the result filter model.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Christopher Townsend (townsend) wrote :

Hi Nick,

There really is no context on what this change is for wrt to dee. I don't see an associated bug either to help figure this out. Could you provide some background and/or possibly a bug for our review?

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

Sorry, we were just talking with Nick about this, opened a proper bug and linked it to this.

Revision history for this message
Christopher Townsend (townsend) wrote :

Ok, this looks sane after reviewing the bug and the changes in dee. I'm not familiar with dee, so I'm probably the wrong person to review that MP. That said, I'll locally approve this until the dee MP is merged and then we can get this into Unity.

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

dee_filter_model_set_multiplexer(DEE_FILTER_MODEL (filter_model.RawPtr()), pimpl->demultiplexer_.RawPtr());

Using glib::object_cast would be nicer... :P
RawPtr() shouldn't be needed, as the casting is implicit.

Unmerged revisions

3603. By Nick Dedekind

Use demultiplexer in results filter models.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'UnityCore/ScopeProxy.cpp'
2--- UnityCore/ScopeProxy.cpp 2013-11-01 07:24:38 +0000
3+++ UnityCore/ScopeProxy.cpp 2013-11-22 14:44:17 +0000
4@@ -98,6 +98,7 @@
5 Results::Ptr results_;
6 Filters::Ptr filters_;
7 Categories::Ptr categories_;
8+ glib::Object<DeeChangesetDemultiplexer> demultiplexer_;
9
10 connection::handle filters_change_connection_;
11 connection::Manager signals_conn_;
12@@ -259,6 +260,7 @@
13 , results_(new Results())
14 , filters_(new Filters())
15 , categories_(new Categories())
16+, demultiplexer_(dee_changeset_demultiplexer_new())
17 {
18 // remote properties
19 signals_conn_.Add(utils::ConnectProperties(owner_->connected, connected));
20@@ -813,6 +815,7 @@
21 DeeFilter filter;
22 pimpl->GetFilterForCategory(category, &filter);
23 glib::Object<DeeModel> filter_model(dee_filter_model_new(all_results->model(), &filter));
24+ dee_filter_model_set_multiplexer(DEE_FILTER_MODEL (filter_model.RawPtr()), pimpl->demultiplexer_.RawPtr());
25
26 auto func = [all_results](glib::Object<DeeModel> const& model) { return all_results->GetTag(); };
27
28
29=== modified file 'debian/control'
30--- debian/control 2013-11-07 13:54:18 +0000
31+++ debian/control 2013-11-22 14:44:17 +0000
32@@ -20,7 +20,7 @@
33 libdbus-1-dev,
34 libcompizconfig0-dev (>= 1:0.9.11),
35 libdbusmenu-glib-dev (>= 0.3.91),
36- libdee-dev (>= 1.2.6),
37+ libdee-dev (>= 1.2.7),
38 libgee-dev (>= 0.5.0),
39 libgeis-dev (>= 2.0.10),
40 libgl1-mesa-dri,
41@@ -150,7 +150,7 @@
42 libsigc++-2.0-dev,
43 libnux-4.0-dev (>= 4.0.4),
44 libunity-dev (>= 7.1.0~),
45- libdee-dev,
46+ libdee-dev (>= 1.2.7),
47 Description: Core library for the Unity interface - development files
48 Unity is a desktop experience that sings. Designed by Canonical and the Ayatana
49 community, Unity is all about the combination of familiarity and the future. We