Drag-and-Drop in GTK+ and GNOME

by Owen Taylor, Red Hat, Inc.
<otaylor@redhat.com>

Copyright © 1999 by Red Hat Software

Content
  1. Overview
  2. Protocols
  3. Data Types
  4. Drag-and-Drop in GTK+
  5. Drag-and-Drop in Gnome
Abstract

GTK+ provides a drag-and-drop implementation that allows for sophisticated negotiation of the drag operation (move, copy, link, or ask), and the format of the data that is transferred while providing interactive feedback to the user. It supports the Xdnd and Motif protocols, allowing interoperability with most common applications. By writing to the GTK+'s interfaces for drag-and-drop, the application developer transparently gains support for both protocols. Drag-and-drop is used throughout GNOME to provide tight integration between applications and the desktop.


Next >