Author Topic: CB menu system confusion  (Read 31832 times)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: CB menu system confusion
« Reply #15 on: January 19, 2007, 04:26:42 pm »
Ok, so it looks like a wxWidgets menu bug.

That makes sense.

But it does not explain how this should be working on Ubuntu.
I don't event get the mnemonic underlines in Ubuntu.

Does anyone (artoj?) get Linux underlines for Alt-F-O and Alt-F-C ?
Is there some Linux option that makes mnemonics show up for Linux?

thanks
pecan

Offline artoj

  • Almost regular
  • **
  • Posts: 206
  • Location: Supporting my team
    • http://ajonsson.kapsi.fi/
Re: CB menu system confusion
« Reply #16 on: January 19, 2007, 04:31:06 pm »
Does anyone (artoj?) get Linux underlines for Alt-F-O and Alt-F-C ?

Yep, I do. I can't recall that I would have changed any settings regarding the accelerators so in Ubuntu Edgy they should be visible by default.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: CB menu system confusion
« Reply #17 on: January 19, 2007, 05:14:27 pm »
This is what I get on Ubuntu Dapper



This is what I get on andLinux Ubuntu Edgy:



Ubuntu Dapper uses wxWidgets 2.6.1
Ubuntu Edgy uses wxWidgets 2.6.3

Note that there are no mnemonic underlines.
What's the difference between artoj's system and mine?
« Last Edit: January 19, 2007, 05:18:02 pm by Pecan »

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: CB menu system confusion
« Reply #18 on: January 19, 2007, 07:38:38 pm »
I get mnemonic underlines in Gentoo, and I have not compiled any contrib plugin, if that helps.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: CB menu system confusion
« Reply #19 on: January 19, 2007, 09:43:41 pm »
Where are the CB patches kept that are applied against wxWidgets.
Are they in the svn download?
« Last Edit: January 19, 2007, 10:14:24 pm by Pecan »

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: CB menu system confusion
« Reply #20 on: January 19, 2007, 09:55:13 pm »
no, only one has been applied by me on my pc to build that special dll because the wx guys sort of said to Tim, it's not good, but then it seems they applied it themselves ,.... , hard to figure out ...

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: CB menu system confusion
« Reply #21 on: January 19, 2007, 09:55:25 pm »
I get mnemonic underlines in Gentoo, and I have not compiled any contrib plugin, if that helps.

Ok, on Linux, the disappearing mnemonics seems to be caused by keybinder, damnit. I will be so happy when we can get rid of this plugin.

I seem to remember that I had this same problem on windows back when we switched from 2.6.1 to 2.6.3, and I fixed it. But now we've re-instated the 2.6.1 code in keybinder according to TimS instructions for the alignment fix. Ohhhhhh. sheeeesh.

Guess I have to go back and re-visit that problem


« Last Edit: January 19, 2007, 10:03:27 pm by Pecan »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: CB menu system confusion
« Reply #22 on: January 19, 2007, 10:08:34 pm »
The MSW skipping mnemonic problem does not seem to be a plugin problem, however. I still get the problem with all plugins removed except compiler/debugger.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: CB menu system confusion
« Reply #23 on: January 19, 2007, 10:13:08 pm »
no, only one has been applied by me on my pc to build that special dll because the wx guys sort of said to Tim, it's not good, but then it seems they applied it themselves ,.... , hard to figure out ...

Well... which patches is artoj refering to that fix the skipping mnemonic problem?
 
So what's happening here is that keybinder is running with a bug fix that isnt matched by its twin fix in wxWidgets. Except in the nightly build. Not a good situation.
« Last Edit: January 19, 2007, 10:16:54 pm by Pecan »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: CB menu system confusion
« Reply #24 on: January 19, 2007, 10:22:39 pm »
no, only one has been applied by me on my pc to build that special dll because the wx guys sort of said to Tim, it's not good, but then it seems they applied it themselves ,.... , hard to figure out ...

Would you post that patch so I can test with this skipping mnemonic problem.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: CB menu system confusion
« Reply #25 on: January 19, 2007, 11:05:05 pm »
it was a 1 liner, it all starts here :

http://forums.codeblocks.org/index.php?topic=4809.msg37667#msg37667

wx guys did it this [http://forums.codeblocks.org/index.php?topic=4809.msg38778#msg38778] way, should try that one. Will see if I can build it tomorrow on windows the patched wx.
« Last Edit: January 19, 2007, 11:07:40 pm by killerbot »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: CB menu system confusion
« Reply #26 on: January 19, 2007, 11:33:14 pm »
it was a 1 liner, it all starts here :

http://forums.codeblocks.org/index.php?topic=4809.msg37667#msg37667

wx guys did it this [http://forums.codeblocks.org/index.php?topic=4809.msg38778#msg38778] way, should try that one. Will see if I can build it tomorrow on windows the patched wx.

Ok, thanks.

I've found the problem with the Linux missing mnemonics. Will fix and commit. Have to retrofit a previous fix that somehow got left out.

But I still have to explore this skipping menu items problem.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: CB menu system confusion
« Reply #27 on: January 20, 2007, 01:03:52 am »
Would someone disable  keybinder on linux, then look at the item "Save all files" and tell me (verify) if they see two mnemonics. One under the S of "Save" and one under the first l of "all"?

I need to know if this comes from SVN or I caused it.

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: CB menu system confusion
« Reply #28 on: January 20, 2007, 01:07:36 am »
Pecan: Two mnemonics for "Save all files", the ones you named :)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: CB menu system confusion
« Reply #29 on: January 20, 2007, 02:26:32 am »
I've got a logical dilemma. KeyBinder needs to update a menu item containing an error. Namely, the menuitem contains two mnemonics. It does not have the option of  letting it stay that way.

Linux reports mnemonic '&' as an underscore. KeyBinder has to either change all underscores to '&' or change only the first and do something about the erroneous ones.

Should KeyBinder repeat the error, set the bad mnemonic to blank(thereby showing the error to the world), or correct the error(thereby hiding the bad menuitem from SVN)?

« Last Edit: January 20, 2007, 02:34:16 am by Pecan »