izgzhen / libnfd

High-level bindings to nativefiledialog (not-maintained)
1 stars 0 forks source link

GTK platform filter list not working #4

Closed izgzhen closed 8 years ago

izgzhen commented 8 years ago

It filters out everything

izgzhen commented 8 years ago

The NFDi_Free assert failed in GTK. But this function is defined in nfd_common.c and not used (explicitly) in GTK source code. Also, the OpenFileDialog seems never entered, while the window pops out. Weird.

izgzhen commented 8 years ago

I am such a dumb ... I used open_dialog_multiple in examples/main.rs

izgzhen commented 8 years ago

filterList is perfect ... Weird.

izgzhen commented 8 years ago

Fixed today by commit d30652a, reason: you use CString::as_ptr instead of Cstring::into_raw.