Pike v8.0 release 1738

Method GTK1.Widget()->selection_add_target()


Method selection_add_target

GTK1.Widget selection_add_target(GDK1.Atom|void selection, GDK1.Atom|void target, int|void info)

Description

Supplying the selection is a bit more complicated than requesting it. You must register handlers that will be called when your selection is requested. For each selection/target pair you will handle, you make a call to this function.

selection, and target identify the requests this handler will manage. When a request for a selection is received, the "selection_get" signal will be called. info can be used as an enumerator to identify the specific target within the callback function.

Selection defaults to PRIMARY, and target defaults to STRING.