problem with modal form in IDE and project compiled with gtk2
Original Reporter info from Mantis: ti_dic
-
Reporter name: Cedric
Original Reporter info from Mantis: ti_dic
- Reporter name: Cedric
Description:
Sorry for my bad english i try to explain my problem.
i use the lasted SVN revision of trunk , with the latest FPC compiler.
in a new project when a modal form appear, the form of the application becoming dark (the modal form is ligthed), when the modal form become unvisible, the form of the application stay dark.
The problem appear in IDE , when i do CTRL+F to find something, all the window become dark, if my text was found, all the window stay dark. if nothing was found an messagebox appear. when this message box is closed the IDE is lighted(return to normal).
the problem don't appear with the QT widget set.
I solved my problem with gtk2 by this patch but i don't know if it is the good solution :
Index: gtk2wsforms.pp
===================================================================
--- gtk2wsforms.pp (révision 46936)
+++ gtk2wsforms.pp (copie de travail)
@@ -745,6 +745,7 @@
gtk_window_set_modal(GtkWindow, True);
end else begin
// see bug 23876
+ Gtk2WidgetSet.SetVisible(AWinControl, AForm.HandleObjectShouldBeVisible);
gtk_window_set_transient_for(GtkWindow, nil); //untransient
gtk_window_set_modal(GtkWindow, False);
end;
Mantis conversion info:
- Mantis ID: 27070
- OS: kubuntu trusty
- OS Build: 14.04
- Platform: linux
- Fixed in revision: 46958 (#b9f58605)