Merge lp:~parnold-x/slingshot/fix-1455991 into lp:~elementary-pantheon/slingshot/trunk

Proposed by Djax
Status: Merged
Approved by: Cody Garver
Approved revision: 534
Merged at revision: 537
Proposed branch: lp:~parnold-x/slingshot/fix-1455991
Merge into: lp:~elementary-pantheon/slingshot/trunk
Diff against target: 17 lines (+7/-0)
1 file modified
src/Widgets/SearchView.vala (+7/-0)
To merge this branch: bzr merge lp:~parnold-x/slingshot/fix-1455991
Reviewer Review Type Date Requested Status
elementary Pantheon team Pending
Review via email: mp+260037@code.launchpad.net

Commit message

Reset search highlight to first result when search entry is empty (lp:1455991)

Description of the change

Reset search highlight to first result when search entry is empty.

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
=== modified file 'src/Widgets/SearchView.vala'
--- src/Widgets/SearchView.vala 2015-03-24 15:20:48 +0000
+++ src/Widgets/SearchView.vala 2015-05-25 09:40:29 +0000
@@ -99,6 +99,13 @@
99 box.pack_start (context_fixed, false);99 box.pack_start (context_fixed, false);
100100
101 add_with_viewport (box);101 add_with_viewport (box);
102
103 parent.search_entry.key_press_event.connect ((e) => {
104 if (parent.search_entry.text == "")
105 _selected = 0;
106
107 return false;
108 });
102 }109 }
103110
104 public void set_results (Gee.List<Synapse.Match> matches, string search_term) {111 public void set_results (Gee.List<Synapse.Match> matches, string search_term) {

Subscribers

People subscribed via source and target branches