Merge lp:~lore-mattei/onehundredscopes/shotwell-precise into lp:~davidc3/onehundredscopes/shotwell

Proposed by Lorenzo Mattei on 2012-03-02
Status: Merged
Merged at revision: 17
Proposed branch: lp:~lore-mattei/onehundredscopes/shotwell-precise
Merge into: lp:~davidc3/onehundredscopes/shotwell
Diff against target: 22 lines (+7/-1)
1 file modified
src/unity-scope-shotwell (+7/-1)
To merge this branch: bzr merge lp:~lore-mattei/onehundredscopes/shotwell-precise
Reviewer Review Type Date Requested Status
David Callé 2012-03-02 Pending
Review via email: mp+95601@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/unity-scope-shotwell'
2--- src/unity-scope-shotwell 2012-02-27 18:28:54 +0000
3+++ src/unity-scope-shotwell 2012-03-02 16:10:22 +0000
4@@ -37,11 +37,17 @@
5 self.scope = Unity.Scope.new ("/net/launchpad/scope/image/shotwell")
6 self.scope.search_in_global = False
7 self.scope.connect ("search-changed", self.on_search_changed)
8- self.scope.connect ("filters-changed", self.on_search_changed)
9+ self.scope.connect ("filters-changed", self.on_filtering_changed)
10 self.scope.connect ("activate-uri", self.on_activate_uri);
11 self.scope.connect("notify::active", self.on_lens_active)
12+ self.scope.props.sources.connect("notify::filtering",
13+ self.on_filtering_changed)
14 self.scope.export()
15
16+ def on_filtering_changed(self, *_):
17+ """Run another search when a filter change is notified."""
18+ self.scope.queue_search_changed(Unity.SearchType.DEFAULT)
19+
20 def on_activate_uri (self, scope, uri):
21 GLib.spawn_command_line_async("xdg-open %s" % uri.replace(' ', '\ '))
22 return Unity.ActivationResponse(handled=Unity.HandledType.HIDE_DASH, goto_uri='')

Subscribers

People subscribed via source and target branches

to all changes: