---
name: "XmTextFieldPasteLink"
section: "3"
platform: "linux"
package: "openmotif"
version: "2.3.8-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XmTextFieldPasteLink"
---

# XmTextFieldPasteLink(3)

A TextField function that inserts a link to the clipboard selection

## NAME

**XmTextFieldPasteLink** — A TextField function that inserts a link to the clipboard selection

## SYNOPSIS

```
#include <Xm/TextF.h>
Boolean XmTextFieldPasteLink(
Widget widget);
```

## DESCRIPTION

**XmTextFieldPasteLink** inserts a link to the clipboard selection at the insertion cursor. This routine calls the widget's **XmNdestinationCallback** procedures with the *selection* member of the **XmDestinationCallbackStruct** set to **CLIPBOARD** and with the *operation* member set to **XmLINK**. The TextField widget itself performs no transfers; the **XmNdestinationCallback** procedures are responsible for inserting the link to the clipboard selection and for taking any related actions.

- *widget*

  Specifies the TextField widget ID.

For a complete definition of TextField and its associated resources, see [**XmTextField**(3)](/XmTextField/3.md).

## RETURN

This function returns False if no transfers take place. Otherwise, it returns True.

## RELATED

[**XmTextField**(3)](/XmTextField/3.md).
