Merge lp:~kjtehprogrammer/switchboard/fix-1342901 into lp:~elementary-pantheon/switchboard/switchboard

Proposed by KJ Lawrence
Status: Merged
Approved by: Cody Garver
Approved revision: 462
Merged at revision: 465
Proposed branch: lp:~kjtehprogrammer/switchboard/fix-1342901
Merge into: lp:~elementary-pantheon/switchboard/switchboard
Diff against target: 21 lines (+5/-0)
1 file modified
src/Switchboard.vala (+5/-0)
To merge this branch: bzr merge lp:~kjtehprogrammer/switchboard/fix-1342901
Reviewer Review Type Date Requested Status
elementary Pantheon team Pending
Review via email: mp+227845@code.launchpad.net

Commit message

Keep the search bar focused when it's sensitive

Description of the change

Focuses the search field on load and after switching back to icon view from a plug.

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/Switchboard.vala'
2--- src/Switchboard.vala 2014-07-07 09:42:34 +0000
3+++ src/Switchboard.vala 2014-07-23 02:52:11 +0000
4@@ -274,6 +274,8 @@
5 show_alert (_("No settings found"), _("Install some and re-launch Switchboard"), Gtk.MessageType.WARNING);
6 search_box.sensitive = false;
7 } else {
8+ search_box.sensitive = true;
9+ search_box.has_focus = true;
10 #if HAVE_UNITY
11 update_libunity_quicklist ();
12 #endif
13@@ -361,6 +363,9 @@
14 search_box.set_text ("");
15 search_box.sensitive = Switchboard.PlugsManager.get_default ().has_plugs ();
16
17+ if (search_box.sensitive)
18+ search_box.has_focus = true;
19+
20 return true;
21 }
22

Subscribers

People subscribed via source and target branches

to all changes: