GNOME Bugzilla – Bug 162911
GTK_FILE_SYSTEM_ERROR is public API in a private header
Last modified: 2011-02-04 16:17:22 UTC
On Wed, 2004-11-17 at 12:36 -0500, Matthias Clasen wrote, on gtk-devel-list: > On Wed, 2004-11-17 at 12:25, Murray Cumming wrote: > > GTK_FILE_SYSTEM_ERROR is defined in the semi-private gtkfilesystem.h > > header, but it looks like the public FileChooser API can return GErrors of > > type GTK_FILE_SYSTEM_ERROR sometimes. So, is this public or really > > private? I mean, would an application developer ever check whether a > > GError is a GTK_FILE_SYSTEM_ERROR? > > > > I ask because we wrap GError types as separate C++ exception classes in > > gtkmm. > > > > Hmm, looks like we need to > > a) move the file system error enum to some public header > b) document what errors can be returned where
Should probably do this for 2.6.1 if we want to fix it at all in 2.6.x
2005-01-05 Matthias Clasen <mclasen@redhat.com> * gtk/gtkfilechooserdefault.c: Don't construct errors from the GTK_FILE_SYSTEM_ERROR domain. Partial fix for #162911. (get_file_info, check_is_folder): Translate errors from the filesystem into the GTK_FILE_CHOOSER_ERROR domain. Rest of the fix for #162911, noticed by Murray Cumming.