|
|
@ -18,7 +18,8 @@ namespace Avalonia.Gtk3 |
|
|
bool multiselect, string initialFileName) |
|
|
bool multiselect, string initialFileName) |
|
|
{ |
|
|
{ |
|
|
GtkFileChooser dlg; |
|
|
GtkFileChooser dlg; |
|
|
using (var name = title != null ? new Utf8Buffer(title) : null) |
|
|
parent = parent ?? GtkWindow.Null; |
|
|
|
|
|
using (var name = new Utf8Buffer(title)) |
|
|
dlg = Native.GtkFileChooserDialogNew(name, parent, action, IntPtr.Zero); |
|
|
dlg = Native.GtkFileChooserDialogNew(name, parent, action, IntPtr.Zero); |
|
|
if (multiselect) |
|
|
if (multiselect) |
|
|
Native.GtkFileChooserSetSelectMultiple(dlg, true); |
|
|
Native.GtkFileChooserSetSelectMultiple(dlg, true); |
|
|
|