Re: Adding error reporting to GtkFileChooser



> Boolean returns can be added at any time without breaking  
> compatibility

That's technically an API change, but not an ABI change.  If
someone was to use function pointers to any of these it would
not match.

> Why an application would get an error calling one
> of these functions

For lots of reasons stat() can fail:

1. Permission problems.
2. File not there anymore.
3. File too big.  [Bug 136082.]
4. Causes due to NFS or other remote file systems.

Right now, some functions like gtk_file_chooser_default_select_path display
an error dialog(!) when this happens.  (Bug 136024.)  That's absurd for
an API call.

The answer is to pass the error back to the caller.

Morten



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]