Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
wxWidgets 2.8.11 build tests [PATCH]
ptDev:
--- Quote from: Loaden on April 28, 2010, 02:56:10 am ---I found a bug.
1. create a new project, and opened some source files.
2. close project.
3. reopen it use "File - Open"
I trying to fix it, bug I found, that's wxWidgets's bug.
If i switch to wxWidgets 2.8.10, all question is gone.
--- End quote ---
Did this bug happen to you in Linux? I tried to reproduce it under Vista, but what happened to me was slightly different.
wxAui refused to update the wxAuiNotebook, and shrinked it to a little square in the upper left corner (shown in attachment). It does refresh properly and show all the source files if I open another file right after this, though.
I think this confirms it, it's a wxWidgets 2.8.11 problem.
These problems probably come from "small" API changes, and need patches.
[attachment deleted by admin]
cgarcia109:
It is something about calling Freeze()/Thaw() ina top level window
in src/src/main.cpp
in MainFrame::OnDropFiles
try replacing Freeze() and Thaw() with
Manager::Get()->GetEditorManager()->GetNotebook()->Freeze();
Manager::Get()->GetEditorManager()->GetNotebook()->Thaw();
edit: no sorry, that doesnt works. Removing Freeze/Thaw does it, but of course you dont have Freeze and Thaw
Loaden:
--- Quote from: cgarcia109 on May 12, 2010, 06:40:15 pm ---It is something about calling Freeze()/Thaw() ina top level window
in src/src/main.cpp
in MainFrame::OnDropFiles
try replacing Freeze() and Thaw() with
Manager::Get()->GetEditorManager()->GetNotebook()->Freeze();
Manager::Get()->GetEditorManager()->GetNotebook()->Thaw();
edit: no sorry, that doesnt works. Removing Freeze/Thaw does it, but of course you dont have Freeze and Thaw
--- End quote ---
I test it, if removing Freeze/Thaw, it's works well.
ptDev:
If you removed Freeze() and Thaw(), wouldn't it make sense to also remove the dummy wxPaintEvent creation?
This would only affect the files main.cpp and editormanager.cpp, if I'm not mistaken?
EDIT:
We only need to change main.cpp.
Just tested: removed the dummy wxPaintEvent and all calls to Freeze() and Thaw() from OnDropFiles(...) and from the menu and toolbar initialization code, and everything seems to work fine now.
A patch is attached. The same patch was submitted to berlios.de.
[attachment deleted by admin]
Jenna:
--- Quote from: ptDev on May 26, 2010, 08:56:20 am ---If you removed Freeze() and Thaw(), wouldn't it make sense to also remove the dummy wxPaintEvent creation?
This would only affect the files main.cpp and editormanager.cpp, if I'm not mistaken?
EDIT:
We only need to change main.cpp.
Just tested: removed the dummy wxPaintEvent and all calls to Freeze() and Thaw() from OnDropFiles(...) and from the menu and toolbar initialization code, and everything seems to work fine now.
A patch is attached. The same patch was submitted to berlios.de.
--- End quote ---
I have no problems on linux, with the packages from wxwidgets.org.
I just try it on windows (vista).
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version