Merge lp:~elementary-pantheon/granite/lp-1066136 into lp:~elementary-pantheon/granite/granite
Proposed by
Victor Martinez
Status: | Merged |
---|---|
Merged at revision: | 422 |
Proposed branch: | lp:~elementary-pantheon/granite/lp-1066136 |
Merge into: | lp:~elementary-pantheon/granite/granite |
Diff against target: |
179 lines (+59/-36) 1 file modified
lib/Widgets/ModeButton.vala (+59/-36) |
To merge this branch: | bzr merge lp:~elementary-pantheon/granite/lp-1066136 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
David Gomes (community) | Approve | ||
Review via email: mp+129546@code.launchpad.net |
Commit message
Fix bug #1066136: Removing an item from the ModeButton widget renders consecutive item indexes invalid.
Description of the change
This branch fixes Bug #1066136: Removing an item from the ModeButton widget renders consecutive item indexes invalid.
The approach followed here is using an internal hash map to keep a strong key-item association, and smarter code for creating a new index in ModeButton.
You can find more information (and even a test) in the bug report. Thanks in advance for the review!
To post a comment you must log in.
The code really looks fine, but I believe that before a merge this should have some more testing, we really can't break ModeButton.