Merge lp:~unity-team/unity/unity.fix-741657 into lp:unity
Proposed by
Mirco Müller
Status: | Merged |
---|---|
Approved by: | Jason Smith |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1077 |
Proposed branch: | lp:~unity-team/unity/unity.fix-741657 |
Merge into: | lp:unity |
Diff against target: |
86 lines (+42/-1) 2 files modified
src/QuicklistView.cpp (+39/-0) src/QuicklistView.h (+3/-1) |
To merge this branch: | bzr merge lp:~unity-team/unity/unity.fix-741657 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jason Smith (community) | Approve | ||
Review via email: mp+55517@code.launchpad.net |
Description of the change
Skip over separator items in Quicklists, if walking them with keyboard-
To post a comment you must log in.
On Thu, 31 Mar 2011 00:27:20 you wrote: /bugs.launchpad .net/unity/ +bug/741657 /code.launchpad .net/~unity- team/unity/ unity.fix- 741657/ +merge/ 55517 navigation. Fixes LP: #741657
> Mirco Müller has proposed merging lp:~unity-team/unity/unity.fix-741657
> into lp:unity.
>
> Requested reviews:
> Unity Team (unity-team)
> Related bugs:
> Bug #741657 in unity: "quicklist key-nav needs to ignore separator items"
> https:/
>
> For more details, see:
> https:/
>
> Skip over separator items in Quicklists, if walking them with
> keyboard-
How about adding a method like like:
bool menu_item_ is_seperator( int index) const index)- >_menuItem; menuitem_ property_ get( MENUITEM_ PROP_LABEL) ;
{
DbusmenuMenuitem* item = GetNthItems(
const gchar* label = dbusmenu_
item, DBUSMENU_
return label != 0;
}
Then you can use it in the up and down code:
case NUX_VK_UP: item_index > 0)
GetNthItems (_current_ item_index) ->_prelight = false;
--_current_ item_index; is_seperator( _current_ item_index)
--_ current_ item_index;
GetNthItems (_current_ item_index) ->_prelight = true;
if (_current_
{
while (menu_item_
{
}
QueueDraw ();
}
This makes the code in the case a little easier to understand.