[Lazarus] Dual screen, weird hints behaviour?

John vd Waeter john at jvdw.nl
Thu Mar 6 11:50:00 CET 2008

When using TOpenDialog with multiple file select on in GTK2 I get a 
warning about an invalid argument to 
gtk_file_chooser_set_select_multiple and a crash. I can fix both with 
the following trivial patch:

--- lazarus/lcl/interfaces/gtk2/gtk2wsdialogs.pp        2008-01-02 
13:56:11.000000000 +0000
+++ /dos/fpc/lazarus.w/lcl/interfaces/gtk2/gtk2wsdialogs.pp     
2008-03-05 22:32:11.000000000 +0000
@@ -327,7 +327,7 @@
   if ofAllowMultiSelect in OpenDialog.Options then
-    gtk_file_chooser_set_select_multiple(FileSelWidget, True);
+    gtk_file_chooser_set_select_multiple(FileSelWidget, LongBool(gTrue));
   // History List - a frame with an option menu
   CreateOpenDialogHistory(OpenDialog, FileSelWidget);

but this seems rather a round about method - the compiler doesn't like 
gtk_file_chooser_set_select_multiple(FileSelWidget, gTrue); Should gTrue 
be defined as type gboolean, or am I missing something? (Latest lazarus 
SVN; recent fpc SVN)


More information about the Lazarus mailing list