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

# XmMainWindowSep2(3)

A MainWindow function that returns the widget ID of the second Separator widget

## NAME

**XmMainWindowSep2** — A MainWindow function that returns the widget ID of the second Separator widget

## SYNOPSIS

```
#include <Xm/MainW.h>
Widget XmMainWindowSep2(
Widget widget);
```

## DESCRIPTION

**XmMainWindowSep2** returns the widget ID of the second Separator in the MainWindow. The second Separator is located between the Command widget and the ScrolledWindow. This Separator is visible only when **XmNshowSeparator** is True.

**NOTE:** **XmMainWindowSep2** is obsolete and exists for compatibility with previous releases. Use **XtNameToWidget** instead. Pass a MainWindow variable as the first argument to **XtNameToWidget** and pass **Separator2** as the second argument.

- *widget*

  Specifies the MainWindow widget ID

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

## RETURN

Returns the widget ID of the second Separator.

## RELATED

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