User-friendly error dialogs for GnomeVFS errors
- From: Dave Malcolm <david davemalcolm demon co uk>
- To: gnome-vfs-list gnome org
- Subject: User-friendly error dialogs for GnomeVFS errors
- Date: 13 Jun 2003 19:22:34 +0000
I've put together some routines that take error codes from GnomeVFS, and
attempt to generate user-friendly HIG-compliant error dialogs.
The code is within Conglomerate, a free user-friendly XML editor
(www.conglomerate.org)
The code attempts to handle all the possible error codes from GnomeVFS
and tries to generate the most meaningful messages it can, with
"convenience buttons" for common workarounds where appropriate.
You can see some screenshots of the dialogs at:
http://www.conglomerate.org/shots/file_open_error.png
(File->Open failed, due to a case-sensitivity problem)
http://www.conglomerate.org/shots/file_save_error.png
(File->Save failed when writing a large file to an almost-full floppy
disk)
There's also some reusable code for doing a save confirmation before
closing a file:
http://www.conglomerate.org/shots/file_save_confirm.png
Is it worth refactoring this code into a shared library so that other
apps can use it (and e.g. all the strings can be translated once, rather
than for every app)? The code is currently licensed under the GPL, but
these parts are all by me and I can relicense them under LGPL.
Dave Malcolm
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]