News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Bug in "Replace in Files" Dialog

Started by daniloz, January 14, 2010, 03:08:03 PM

Previous topic - Next topic

daniloz

Hi All,

I was just using the very cool "Replace in Files" feature in C::B (last version from trunk) and I found a bug in the confirmation dialog (see attached image). The problem is that both "All in this file" and "All" share the same shortcut (Alt+A). Btw, when I pressed Alt+A, "All" was selected and not "All in this file", which was my original intention.

Thank you!

daniloz

[attachment deleted by admin]

MortenMacFly

Quote from: daniloz on January 14, 2010, 03:08:03 PM
I was just using the very cool "Replace in Files" feature in C::B (last version from trunk) and I found a bug in the confirmation dialog (see attached image). The problem is that both "All in this file" and "All" share the same shortcut (Alt+A). Btw, when I pressed Alt+A, "All" was selected and not "All in this file", which was my original intention.
You can easily resolve your self:
Patch the file "confirm_replace_multiple.xrc" in:
[C::B]\share\CodeBlocks\manager_resources.zip
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

daniloz

OK, done, thank you !!!!

Btw, where do I change this in the source code, so I can make a patch and send for consideration in the next release? (sorry, I'm kind of new to the sources...)

MortenMacFly

Quote from: daniloz on January 14, 2010, 04:16:04 PM
Btw, where do I change this in the source code, so I can make a patch and send for consideration in the next release? (sorry, I'm kind of new to the sources...)
- extract the ZIP archive
- open the XRC file mentioned in an editor
- Search for this in the XRC file:
              <label>&amp;All in this file</label>
- Replace with this in the XRC file:
              <label>All in &amp;this file</label>
- make again a ZIP archive out of *all* files (including the sub-directories).
- replace the old with the new (patched) one

Don't worry about a patch, I'll take care. Thanks for reporting though... :-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

daniloz

Thanks for the explanation. I had already done all the unZIP, edit and ZIP though... :-)

I was really looking for the source files, but thank you again for taking care of it!!

Btw, I use C::B for quite a while now and I'm more and more happy about it.

Great job all of you !!!!!!!

Thanx !!!!!

MortenMacFly

Quote from: daniloz on January 14, 2010, 04:27:43 PM
I was really looking for the source files, but thank you again for taking care of it!!
That *is* the source file. The XRC files are loaded on demand and specify the UI. This happens every time you run C::B during the initialisation and using a wx component (API).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]