Merge lp:~jeremywootten/slingshot/fix-1234753 into lp:~elementary-pantheon/slingshot/trunk

Proposed by Jeremy Wootten
Status: Merged
Merged at revision: 387
Proposed branch: lp:~jeremywootten/slingshot/fix-1234753
Merge into: lp:~elementary-pantheon/slingshot/trunk
Diff against target: 19 lines (+9/-0)
1 file modified
src/SlingshotView.vala (+9/-0)
To merge this branch: bzr merge lp:~jeremywootten/slingshot/fix-1234753
Reviewer Review Type Date Requested Status
Cody Garver (community) Approve
Review via email: mp+189162@code.launchpad.net

Description of the change

1) Fixes regression introduced by revision 386 by connecting to searchbar activate signal. The Enter/Return key press is now detected.
2) Move three stray signal connections into the SlingshotView::connect_signals () function for consistency
3) Suppress a large number of critical error warnings during search for applications by testing for null description and null generic name
4) Remove unnecessary EventBox and detect other key presses directly with Gtk.Grid container.

To post a comment you must log in.
Revision history for this message
Cody Garver (codygarver) wrote :

Jeremy would you be willing to submit a branch that fixes the bug with as few changes as possible to I can immediately release it as a hotfix to Luna stable. Then resubmit the changes in this branch just so they'll have some time to make sure there are no bugs in it, like from removing the event box. Because slingshot focus is super delicate.

Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

OK, no problem - I'll do that.

On 4 October 2013 02:37, Cody Garver <email address hidden> wrote:

> Jeremy would you be willing to submit a branch that fixes the bug with as
> few changes as possible to I can immediately release it as a hotfix to Luna
> stable. Then resubmit the changes in this branch just so they'll have some
> time to make sure there are no bugs in it, like from removing the event
> box. Because slingshot focus is super delicate.
> --
>
> https://code.launchpad.net/~jeremywootten/slingshot/fix-1234753/+merge/189162
> You are the owner of lp:~jeremywootten/slingshot/fix-1234753.
>

--
Jeremy Wootten
GPG Key ID CB585BCD
Key Fingerprint 37C0 3C2A A6D4 E45B BA7C 4328 2DF2 1882 CB58 5BCD

387. By Jeremy Wootten

Connect to searchbar activate signal to detect Enter key

Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

I have just overwritten this branch with a new one that only contains the
code connecting to the searchbar activate signal.

The replacement of the eventbox, the elimination of the error messages and
the re-arrangement of the code in the previous branch are essentially
cosmetic and have been removed for now.

On 4 October 2013 02:37, Cody Garver <email address hidden> wrote:

> Jeremy would you be willing to submit a branch that fixes the bug with as
> few changes as possible to I can immediately release it as a hotfix to Luna
> stable. Then resubmit the changes in this branch just so they'll have some
> time to make sure there are no bugs in it, like from removing the event
> box. Because slingshot focus is super delicate.
> --
>
> https://code.launchpad.net/~jeremywootten/slingshot/fix-1234753/+merge/189162
> You are the owner of lp:~jeremywootten/slingshot/fix-1234753.
>

--
Jeremy Wootten
GPG Key ID CB585BCD
Key Fingerprint 37C0 3C2A A6D4 E45B BA7C 4328 2DF2 1882 CB58 5BCD

Revision history for this message
Cody Garver (codygarver) wrote :

Thanks Jeremy, I'm still interested in the other code.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/SlingshotView.vala'
2--- src/SlingshotView.vala 2013-09-10 20:47:00 +0000
3+++ src/SlingshotView.vala 2013-10-05 07:26:06 +0000
4@@ -243,6 +243,15 @@
5 searchbar.text_changed_pause.connect ((text) => this.search (text));
6 searchbar.grab_focus ();
7
8+ searchbar.activate.connect (() => {
9+ if (modality == Modality.SEARCH_VIEW) {
10+ search_view.launch_selected ();
11+ hide ();
12+ } else {
13+ if (get_focus () as AppEntry != null) // checking the selected widget is an AppEntry
14+ ((AppEntry)get_focus ()).launch_app ();
15+ }
16+ });
17 search_view.app_launched.connect (() => hide ());
18
19 // This function must be after creating the page switcher

Subscribers

People subscribed via source and target branches