The drag-data-get signal is emitted on the drag source when the drop site requests the data which is dragged. It is the responsibility of the signal handler to fill data with the data in the format which is indicated by info. See set() and set_text() .

Callback function

void callback(GtkWidget widget, GdkDragContext context, GtkSelectionData data, int info, int time);