Drag-and-Drop in GTK+ and GNOME


< Prev Contents  

Drag and Drop in GNOME

GNOME [1] applications use the GTK+ interfaces for drag and drop, however GNOME also adds some more conventions about the types of data that are drag-and-dropped, and perhaps more importantly, provides an environment to the user in which drag-and-drop is available thoughout. The most prominent place source and target for drag-and-drop in GNOME is gmc, the GNOME file manager. gmc not only allows the user to access the file system, it also manages the desktop. The desktop provides a central place for the user to drop files, URL's, program launchers, and other types of data.

The drag-and-drop implementation in GTK+ is quite complete and should provide for the needs of GNOME for the forseeable future. However, what will develop is the type of objects that are tranferred via drag-and-drop. Currently, most drag-and-drop in GNOME is transferring file names; as the Bonobo document model becomes used in more parts of GNOME, it will become more common to transfer the object references for Bonobo objects via drag-and-drop. This will result in considerable more power and flexibility since it will be possible to do things like change the form of transferred data after it has been transferred, and also to do true hot-link embedding of one document into another.

Notes
[1] GNOME


< Prev Contents