Merge lp:~jmiguelbenitez/pantheon-photos/fix-1360959 into lp:~pantheon-photos/pantheon-photos/trunk

Proposed by José M. Benítez
Status: Merged
Approved by: Cody Garver
Approved revision: 2859
Merged at revision: 2859
Proposed branch: lp:~jmiguelbenitez/pantheon-photos/fix-1360959
Merge into: lp:~pantheon-photos/pantheon-photos/trunk
Diff against target: 13 lines (+2/-1)
1 file modified
src/library/LibraryWindow.vala (+2/-1)
To merge this branch: bzr merge lp:~jmiguelbenitez/pantheon-photos/fix-1360959
Reviewer Review Type Date Requested Status
Photos Devs Pending
Review via email: mp+280404@code.launchpad.net

Commit message

Ctrl+F to hide or reveal search toolbar (lp:1360959)

Description of the change

Modified code to make repeated ctrl+F hide and unhide the search toolbar.

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/library/LibraryWindow.vala'
2--- src/library/LibraryWindow.vala 2015-12-06 23:39:13 +0000
3+++ src/library/LibraryWindow.vala 2015-12-13 23:41:06 +0000
4@@ -772,7 +772,8 @@
5 private void on_find () {
6 Gtk.ToggleAction action = (Gtk.ToggleAction) get_current_page ().get_common_action (
7 "CommonDisplaySearchbar");
8- action.active = true;
9+ // Toggle state so repeated ctrl+F hides and unhides the search bar
10+ action.active = !action.active;
11 }
12
13 private void on_media_altered () {

Subscribers

People subscribed via source and target branches