The xblite code below works to create a GTK+ "Open file" dialog.
As parent window for the dialog, I pass a value of 0 (variable None).
The dialog displays, however, I don't know what should be the xblite/GTK equivalent for this GTK_FILE_CHOOSER (dialog)
For those interested in GTK+ for xblite, see :
http://homepages.ihug.co.nz/~armeanu/xblite.htmlSee the message on the xblite Google Groups forum if you encounter installation problems with the necessary libraries.
gtk_init (argc, argv)
title$ = "Open file"
dialog = gtk_file_chooser_dialog_new (&title$, None, $$GTK_FILE_CHOOSER_ACTION_OPEN, &$$GTK_STOCK_CANCEL, $$GTK_RESPONSE_CANCEL, &$$GTK_STOCK_OPEN, $$GTK_RESPONSE_ACCEPT, NULL)
IF (gtk_dialog_run (dialog) = $$GTK_RESPONSE_ACCEPT) THEN
'filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog));
'open_file (filename);
'g_free (filename);
END IF
gtk_widget_destroy (dialog)