Merge lp://staging/~sinzui/bzr-gtk/broken-labels into lp://staging/bzr-gtk

Proposed by Curtis Hovey
Status: Merged
Approved by: Jelmer Vernooij
Approved revision: 783
Merged at revision: 785
Proposed branch: lp://staging/~sinzui/bzr-gtk/broken-labels
Merge into: lp://staging/bzr-gtk
Diff against target: 42 lines (+4/-3)
2 files modified
annotate/gannotate.py (+3/-2)
merge.py (+1/-1)
To merge this branch: bzr merge lp://staging/~sinzui/bzr-gtk/broken-labels
Reviewer Review Type Date Requested Status
Jelmer Vernooij (community) Approve
Review via email: mp+96930@code.staging.launchpad.net

Description of the change

Fix button mnemonics.

gannotate find shows the find bar. The bar has a "_Next" and "_Previous"
button. The mnemonic in the label was not converted into an accelerator.

bzr merge also has a "_Merge" button.

--------------------------------------------------------------------

RULES

    * Pass the use_underline=True property kwarg to set the property
      to scan for mnemonics.
    * ADDENDUM, "_Merge" is not translatable.

QA

    * Run BZR_PLUGINS_AT=gtk@./ bzr gannotate merge.py
    * Choose find and enter "merge"
    * Press Alt.
    * Verify the underscore appears under N and P.
    * Pressing Alt+N find the next match

    * Run BZR_PLUGINS_AT=gtk@./ bzr merge
    * Press Alt.
    * Verify the underscore appears under M.

IMPLEMENTATION

I noticed the underscores while working on another branch. I searched the
tree and found 3 cases where Gtk.Button() was called with a label with
an underscore without use_underline=True.

To post a comment you must log in.
Revision history for this message
Jelmer Vernooij (jelmer) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: