I made this little patch to the filedialog "chapter" of ewlbook.
This patch shows the real way to get the filename, if this patch is in bad file format, sorry, i send it again in the way that u tell me, this is my first patch.
//------------------[Start of PATCH]----------------------------------
221c221
< the 'Open' button in the dialog.
---
> the 'Open' or 'Save' button in the dialog.
242c242
< char *filename = (char *)event;
---
> char *filename = ewl_filedialog_file_get(EWL_FILEDIALOG(w));
247,250c247,250
< The file that has been selected is passed to the callback as the <literal>event</literal>
< parameter. If you wish to remove the filedialog you can do something similar to
< <literal>ewl_widget_hide(fd_win)</literal> where <literal>fd_win</literal> is the window
< object holding the file dialog.
---
> To get the file name and path of file selected in all cases, you need to call
> <function>ewl_filedialog_file_get()</function>.If you wish to remove the filedialog you can
> do something similar to <literal>ewl_widget_hide(fd_win)</literal> where
> <literal>fd_win</literal> is the window object holding the file dialog.
//------------------[End of PATCH]----------------------------------
Greetings!.
QliX=D! [aka Ezequiel Brizuela]
