Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Copy & Paste isn't working?
ultimA:
Please fix this error, it is the same as described in the opening post but it still persists on Linux in rev7040. Not being able to use copy inside CB prevents me from using the IDE at all.
Jenna:
--- Quote from: ultimA on March 17, 2011, 03:33:58 pm ---Please fix this error, it is the same as described in the opening post but it still persists on Linux in rev7040. Not being able to use copy inside CB prevents me from using the IDE at all.
--- End quote ---
Do you use a self-compiled C::B or a binary distribution ?
Which version of wxWidgets do you use, and which version is used to compile C::B (see "Help -> About") ?
It works flawlessly here on debian 64-bit.
ultimA:
It is self-compiled, in the sense that it is a user-respository package for Arch linux that checks out the latest svn, compiles and installs it. The only binary available on Arch is for CB 10.05.
The About dialog tells me: "wx2.8.11 (Linux, unicode) - 64bit"
I looked at the package definition to be able to tell you how it is exactly compiled. It checks out the trunk, then it does:
./bootstrap
./configure --prefix=/usr --with-contrib-plugins=all
make
Let me know if there is any other way I can help debugging.
ultimA:
Today I tried to look at the clipboard bug myself, why isn't it working correctly. There is something strange in the CB code that I have found, in ScintillaWX.cpp, line 544-551 (rev 7076):
--- Code: ---#ifdef __WXGTK__
for(int i=0; i<5; i++) {
//wxPrintf(wxT("Copying to clipboard %ld\n"), i);
CopyToClipboard(st);
}
#else
CopyToClipboard(st);
#endif
--- End code ---
So basically, only if compiling for wxGTK, blindly repeat every copy operation to the clipboard 5 times. WTF?!
I guess some developer, whoever it was, must have met the same issue as I am experiencing right now (the reason for this thread), he also have noticed, that clipboard operations on wxGTK only work reliably if repeated some number of times. So he just built a loop around it. Unfortunately, it is still not working for me, I have to manually hit ctrl-c multiple times if I want a copy operation to succeed.
Now, I am NOT suggesting increasing the loop count. But rather, plz someone figure out what the real problem is. Why am I not doing it myself? Because I have no idea about GTK or wxWidgets (I never used their APIs before), and for someone who knows these libraries it would probably only take a neglible amount of time to check the CopyToClipboard(...) method. Anyway, that loop-5-times-or-else-it-does-not-work thing looks really crazy to me, not just because it is a questionable hack, but it obviously doesn't solve the problem.
Thank you.
ollydbg:
using the blame function of SVN, then found it was change in:
--- Code: ---killerbot 2008-8-16 2:15:17
* copy/cut-paste fixes in linux
* copy/move fixes on linux when drag and drop of selected text with the mouse
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version