News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

CB menu system confusion

Started by Pecan, January 19, 2007, 12:24:47 AM

Previous topic - Next topic

Pecan

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

artoj

Quote from: Pecan on January 19, 2007, 04:26:42 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.

Pecan

#17
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?

Ceniza

I get mnemonic underlines in Gentoo, and I have not compiled any contrib plugin, if that helps.

Pecan

#19
Where are the CB patches kept that are applied against wxWidgets.
Are they in the svn download?

killerbot

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 ...

Pecan

#21
Quote from: Ceniza 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.

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



Pecan

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.

Pecan

#23
Quote from: killerbot 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 ...

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.

Pecan

Quote from: killerbot 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 ...

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

killerbot

#25
it was a 1 liner, it all starts here :

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

wx guys did it this [http://forums.next.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.

Pecan

Quote from: killerbot on January 19, 2007, 11:05:05 PM
it was a 1 liner, it all starts here :

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

wx guys did it this [http://forums.next.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.

Pecan

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.

Ceniza

Pecan: Two mnemonics for "Save all files", the ones you named :)

Pecan

#29
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)?