Merge lp:~evfool/software-center/smallfixes into lp:software-center
Status: | Merged |
---|---|
Merged at revision: | 1868 |
Proposed branch: | lp:~evfool/software-center/smallfixes |
Merge into: | lp:software-center |
Diff against target: |
27 lines (+4/-3) 1 file modified
softwarecenter/ui/gtk/widgets/mkit.py (+4/-3) |
To merge this branch: | bzr merge lp:~evfool/software-center/smallfixes |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gary Lasker (community) | Approve | ||
Review via email: mp+65456@code.launchpad.net |
Description of the change
Small fixes to the LinkButton from mkit to behave more like other widgets/links
1) When pressing mouse button over a Linkbutton, dragging out and then back in, the link color turn from normal to active (when pressing the button) and from active to normal (when leaving the link's area) and then back from normal to active (when reentering with the mouse button still pressed) - before this fix it did not, thus when dragging out and in while the button is pressed, the link color did not change back to active, in spite of the fact that the mouse was still over the link, the button was still pressed, and the state was active, but the link was not redrawn as active.
2) When pressing the mouse button over a LinkButton, dragging out from the area of the link, and releasing the button, the clicked signal was always emitted, which is not normal behavior (LP:#796640), when dragging out and releasing the button outside, the link should not be clicked. So emitting the clicked signal only if both pressed and released in the linkbuttons region.
Nice, clean fix, thanks Robert!