Author Topic: Patch for keybinder to correct layout-switching problem on Linux  (Read 3222 times)

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Here's the text I posted on Berlios:
Quote
If the checkable MenuItems (this are the named layouts) in "View -> Layouts" have no keyboard shortcut and the keybinder-plugin is enabled, switching to a layout does not set the check-mark on linux.
If a layout is saved without changing the name it appears as new MenuItem in the Menu.
After restart of C::B the correct number of menuitems is shown.
This happens, because keybinder adds a space to the end of the Label.
The space is wanted, because wxWidgets did not update the MenuItem otherwise.
This behaviour seems to be fixed in wxWidgets 2.8.7, so it's not longer needed.
I changed "menuutils.cpp" to use the same code for GTK and MSW (except the rebuilding of bitmapped menuitems) and it seems to work on Linux and on Win2K (both wxWidgets 2.8.7).
Maybe it also works on Mac, but I cannot test it.

Bug report
Patch for the bug

I wish everybody a happy new year.
« Last Edit: January 01, 2008, 02:53:14 am by jens »