Re: GnomeVFS backend for GtkFileChooser



Nobody mentioned the approach taken in the following patch yet though..
I saw it pass on the debian-gtk-gnome mailinglist a couple of days ago:

http://members.chello.nl/~h.lai/gtkenhancements/

What is being done is just copying the needed structures to a header
file withing gtk+, and opening the libraries at run time if they exist.

While I agree it is an ugly hack, I DO think it's the best approach: we
don't introduce a (build-)dependency on gnome-vfs in gtk+ or vice versa,
and as an added bonus pure gtk+ apps can benefit from the extra functio-
nality without having to depend on libgnomeui (for the icons).

I think you get the best of both worlds this way, but I'm afraid it will
be shot down with the argument of "ugly hack" :/

On Tue, 28 Oct 2003, Federico Mena Quintero wrote:

> From: Federico Mena Quintero <federico ximian com>
> Subject: GnomeVFS backend for GtkFileChooser
>
> Hi,
>
> Now that GtkFileChooser is in the mainline GTK+, we have the problem of
> where to put the VFS backend.
>
> GTK+ HEAD defines an internal GtkFileSystem interface.  When you create
> a file chooser widget, you can specify the particular file system
> implementation that it will use.  GTK+ includes a default
> GtkFileSystemUnix implementation, that uses the standard calls like
> opendir(), stat(), etc() that we all love and cherish.
>
> The gtkfilechooser module on CVS now only has a GtkFileSystemGnomeVFS
> implementation which uses GnomeVFS instead of Unix calls.  The idea is
> that it will be able to do nifty stuff like browse Samba shares, or
> remote file systems via ssh.
>
> Where should we put the implementation of GtkFileSystemGnomeVFS?  Having
> a stand-alone module just for it sounds silly.  If we move it to
> gnome-vfs itself, it would mean making gnome-vfs depend on GTK+.
>
> What do people think?  Or does it make better sense to put this into
> libgnomeui [which is getting deprecated too fast for my taste, but...]
>
>   Federico

kr,

Chipzz AKA
Jan Van Buggenhout
-- 

------------------------------------------------------------------------
                 UNIX isn't dead - It just smells funny
                           Chipzz ULYSSIS Org
------------------------------------------------------------------------




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