Files
wxWidgets/src
Julian Smart 90b18154c8 Applied patch [ 597320 ] Return wxNotebook::SetSelection value
By Hans Van Leemputten (hansvl)

According to the documentation
wxNotebook::SetSelection() should return the previous
selection... (Like wxMSW does) but the wxUniv version
returns the currently selected selection.

Patch was tested with wxX11.

Applied patch [ 597313 ] Popup menu still used after deletion

By Hans Van Leemputten (hansvl)

- This patch exists out of 2 parts;

Part 1 is a patch to show the problem with the menu
sample (this part is just to show the problem and should
not be put into CVS!).

Part 2 is the fix and should be put in CVS.
(src/univ/menu.cpp)

- Instructions to reproduce the problem with the menu
sample:
1. Apply part 1 of the patch only.
2. Run the sample after recompiling it.
3. Press "Close Test" -> "Close", this will basically
remove the current menu bar and recreate it again and
re-use the menu item "Close test" from the old menu
bar...
4. Again press "Close Test", doing this will already
crash the sample.

- The cause of the problem is that the m_popupMenu in
wxMenu is deleted because it is a child of the old menu
bar (Note: it does not get destroyed by the wxMenu
destructor, but by DestroyChildren()) and m_popupMenu
is not put back to NULL when this happens...

- This patch was tested only with wxX11.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-20 08:34:05 +00:00
..
2002-08-19 17:02:10 +00:00
2002-08-19 17:02:10 +00:00
2002-06-07 20:41:48 +00:00
2002-08-10 18:11:45 +00:00
2002-08-20 05:00:48 +00:00
2002-07-29 12:27:49 +00:00
2002-08-08 19:11:07 +00:00
2002-05-14 11:28:26 +00:00
2002-08-11 19:39:22 +00:00
2002-07-26 06:52:53 +00:00
2002-05-08 13:14:40 +00:00
2002-08-07 08:56:08 +00:00
2002-05-10 19:15:35 +00:00
2002-03-26 21:54:23 +00:00
2002-04-08 20:39:27 +00:00
2002-08-12 05:28:46 +00:00