Gtk.Menu.AttachToWidget Method
Attaches the menu to the widget and provides a detacher.

Syntax

public void AttachToWidget (Widget attach_widget, MenuDetachFunc detacher)

Parameters

attach_widget
The Gtk.Widget that the menu will be attached to.
detacher
The user supplied callback function that will be called when the menu calls Menu.Detach.

Remarks

Attaches the menu to the widget and provides a callback function that will be invoked when the menu calls Menu.Detach during its destruction.

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)