..and win7-32, win xp.
1)
when the dialog is on, and you touch/move a file or use the right mouse button, gtk emits a lot of
Gdk-CRITICAL **: gdkdevicegetsource: assertion `GDKI
S_DEVICE (device)' failed
related: can drag&drop within the file browser and the right mouse button menu be disabled?
2)
the ctr needs:
Window parent Transient parent of the dialog, or NULL
however, it does not work with null, it will result in a
object.Error: Access Violation
(see code below)
the situation / signature seems to be similar for MessageDialog, which, however, works fine with null as parent.
/det
import gtk.Main, gtk.MainWindow, gtk.FileChooserDialog;
import std.stdio;
class TestWin : MainWindow {
this(){
super("Test");
showAll();
}
}
int main(string[] args){
Main.init( args );
auto testw = new TestWin();
string ret = "";
auto dlg = new FileChooserDialog(
"Open File",
testw,
FileChooserAction.OPEN,
["Open", "Cancel"],
[ResponseType.ACCEPT, ResponseType.CANCEL]
);
if( GtkResponseType.ACCEPT == dlg.run() ){
ret = dlg.getFilename();
}
dlg.destroy();
writeln( ret );
/* object.Error: Access Violation
auto dlg2 = new FileChooserDialog(
"Open File",
null,
FileChooserAction.OPEN,
["Open", "Cancel"],
[ResponseType.ACCEPT, ResponseType.CANCEL]
);
*/
return 0;
}