Merge lp:~didrocks/unity/altf2 into lp:unity

Proposed by Didier Roche-Tolomelli
Status: Merged
Approved by: Gord Allott
Approved revision: no longer in the source branch.
Merged at revision: 944
Proposed branch: lp:~didrocks/unity/altf2
Merge into: lp:unity
Prerequisite: lp:~unity-team/unity/various-fixes-2011-03-08
Diff against target: 76 lines (+29/-4)
3 files modified
src/unityshell.cpp (+15/-0)
src/unityshell.h (+9/-4)
unityshell.xml.in (+5/-0)
To merge this branch: bzr merge lp:~didrocks/unity/altf2
Reviewer Review Type Date Requested Status
Gord Allott Pending
Review via email: mp+52739@code.launchpad.net

This proposal supersedes a proposal from 2011-03-09.

Description of the change

Handle alt F2 unity side to show the new applications place entry.
We should now respect the show/hide variables in the .place

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/unityshell.cpp'
2--- src/unityshell.cpp 2011-03-09 15:04:54 +0000
3+++ src/unityshell.cpp 2011-03-09 19:20:31 +0000
4@@ -253,6 +253,20 @@
5 return false;
6 }
7
8+bool
9+UnityScreen::executeCommand (CompAction *action,
10+ CompAction::State state,
11+ CompOption::Vector &options)
12+{
13+ ubus_server_send_message (ubus_server_get_default (),
14+ UBUS_PLACE_ENTRY_ACTIVATE_REQUEST,
15+ g_variant_new ("(sus)",
16+ "/com/canonical/unity/applicationsplace/runner",
17+ 0,
18+ ""));
19+ return false;
20+}
21+
22 void
23 UnityScreen::restartLauncherKeyNav ()
24 {
25@@ -756,6 +770,7 @@
26 optionSetShowLauncherTerminate (boost::bind (&UnityScreen::showLauncherKeyTerminate, this, _1, _2, _3));
27 optionSetKeyboardFocusInitiate (boost::bind (&UnityScreen::setKeyboardFocusKeyInitiate, this, _1, _2, _3));
28 //optionSetKeyboardFocusTerminate (boost::bind (&UnityScreen::setKeyboardFocusKeyTerminate, this, _1, _2, _3));
29+ optionSetExecuteCommandInitiate (boost::bind (&UnityScreen::executeCommand, this, _1, _2, _3));
30 optionSetPanelFirstMenuInitiate (boost::bind (&UnityScreen::showPanelFirstMenuKeyInitiate, this, _1, _2, _3));
31 optionSetPanelFirstMenuTerminate(boost::bind (&UnityScreen::showPanelFirstMenuKeyTerminate, this, _1, _2, _3));
32
33
34=== modified file 'src/unityshell.h'
35--- src/unityshell.h 2011-03-08 09:27:11 +0000
36+++ src/unityshell.h 2011-03-09 19:20:31 +0000
37@@ -104,14 +104,19 @@
38 showLauncherKeyTerminate (CompAction *action, CompAction::State state,
39 CompOption::Vector &options);
40
41- bool
42- showPanelFirstMenuKeyInitiate (CompAction *action,
43- CompAction::State state,
44- CompOption::Vector &options);
45+ bool
46+ showPanelFirstMenuKeyInitiate (CompAction *action,
47+ CompAction::State state,
48+ CompOption::Vector &options);
49 bool
50 showPanelFirstMenuKeyTerminate (CompAction *action,
51 CompAction::State state,
52 CompOption::Vector &options);
53+
54+ bool
55+ executeCommand (CompAction* action,
56+ CompAction::State state,
57+ CompOption::Vector& options);
58 bool
59 setKeyboardFocusKeyInitiate (CompAction* action,
60 CompAction::State state,
61
62=== modified file 'unityshell.xml.in'
63--- unityshell.xml.in 2011-03-04 15:01:07 +0000
64+++ unityshell.xml.in 2011-03-09 19:20:31 +0000
65@@ -72,6 +72,11 @@
66 <_long>Set the keyboard-focus on the launcher so it can be navigated with the cursor-keys</_long>
67 <default>&lt;Alt&gt;F1</default>
68 </option>
69+ <option name="execute_command" type="key">
70+ <_short>Key to execute a command</_short>
71+ <_long>Key to open a folder or execute a command</_long>
72+ <default>&lt;Alt&gt;F2</default>
73+ </option>
74 <option name="panel_first_menu" type="key">
75 <_short>Key to open the first panel menu</_short>
76 <_long>Open the first menu on the panel, allowing keyboard navigation thereafter.</_long>