GTK2: SpeedButton freezes (need extra click) after close popup menu without choosing any popup menu item (Fix 2).
Original Reporter info from Mantis: and3md @and3md
-
Reporter name: Andrzej Kilijanski
Original Reporter info from Mantis: and3md @and3md
- Reporter name: Andrzej Kilijanski
Description:
This is the second part of the popup menu problem - https://bugs.freepascal.org/view.php?id=38401 (closing the menu freezes some controls (eg SpeedButton)) - this solves the problem with the system/default menus.
I divided the whole solution into two parts because, perhaps it should be fixed in a different way. This part solves the problem with the system/default popup menus by using the populate-popup signal to access the system popup menu.
This fixes:
- Edit
- Memo
- Combobox
- MAskEdit
- SpinEdit
- LabeledEdit
In the example program this part (fix 2) will fix the controls with no PopupMenu added in Lazarus.
Steps to reproduce:
The easiest way to cause the controls to freeze is:
- Add SpeedButton to the Form
- Add Edit
- After run click right on Edit and then click on the form to hide the popup menu
- At this point, the SpeedButton will be frozen (need extra click to start working)