2004-10-29 20:33:07 +00:00
|
|
|
[DllImport("libgtk-win32-2.0-0.dll")]
|
|
|
|
static extern IntPtr gtk_file_chooser_dialog_new(string title, IntPtr parent, int action, IntPtr nil);
|
|
|
|
|
|
|
|
public FileChooserDialog (string title, Window parent, FileChooserAction action)
|
|
|
|
{
|
2004-10-30 02:02:09 +00:00
|
|
|
Raw = gtk_file_chooser_dialog_new (title, parent == null ? IntPtr.Zero : parent.Handle, (int)action, IntPtr.Zero);
|
2004-10-29 20:33:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[DllImport("libgtk-win32-2.0-0.dll")]
|
|
|
|
static extern IntPtr gtk_file_chooser_dialog_new_with_backend(string title, IntPtr parent, int action, string backend, IntPtr nil);
|
|
|
|
|
|
|
|
public FileChooserDialog (string title, Window parent, FileChooserAction action, string backend)
|
|
|
|
{
|
2004-10-30 02:02:09 +00:00
|
|
|
Raw = gtk_file_chooser_dialog_new_with_backend (title, parent == null ? IntPtr.Zero : parent.Handle, (int)action, backend, IntPtr.Zero);
|
2004-10-29 20:33:07 +00:00
|
|
|
}
|