Re: Adding error reporting to GtkFileChooser
- From: mortenw gnome org (Morten Welinder)
- To: gtk-devel-list gnome org
- Cc: federico ximian com, otaylor redhat com
- Subject: Re: Adding error reporting to GtkFileChooser
- Date: Wed, 3 Mar 2004 13:25:53 -0500 (EST)
> 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]