gtk-sharpGtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.Gtk.ContainerA GtkMenuShell is the abstract base class used to derive the GtkMenu and GtkMenuBar subclasses.
A is a container of objects arranged in a list which can be navigated, selected, and activated by the user to perform application functions. A can have a submenu associated with it, allowing for nested hierarchical menus.
ConstructorProtected constructor.Constructor
Pointer to the C object.
Internal constructorThis is an internal constructor, and should not be used by user code.EventGLib.Signal("activate-current")Gtk.ActivateCurrentHandlerAn action signal that activates the current menu item within the menu shell.MethodSystem.Void
The to activate.
If , force the deactivation of the menu shell after the menu item is activated.
Activates the menu item within the menu shell.
Activates the menu item within the menu shell.
MethodSystem.Void
The to add.
Adds a new to the end of the menu shell's item list.
Adds a new to the end of the menu shell's item list.
MethodSystem.VoidEmits the Canceled event.EventGLib.Signal("cancel")System.EventHandlerAn action signal which cancels the selection within the menu shell.Causes the signal to be emitted.EventGLib.Signal("cycle-focus")Gtk.CycleFocusHandlerTo be added.To be added.MethodSystem.VoidDeactivates the menu shell.
Typically this results in the menu shell being erased from the screen.
EventGLib.Signal("deactivate")System.EventHandlerThis signal is emitted when a menu shell is deactivated.MethodSystem.VoidDeselects the currently selected item from the menu shell, if any.
Deselects the currently selected item from the menu shell, if any.
PropertyGLib.GTypeGType Property.a Returns the native value for .MethodSystem.Void
The to add.
The position in the item list where is added. Positions are numbered from 0 to n-1.
Adds a new to the menu shell's item list at the position indicated by .
Adds a new to the menu shell's item list at the position indicated by position.
EventGLib.Signal("move-current")Gtk.MoveCurrentHandlerAn action signal which moves the current menu item in the direction specified by .EventGLib.Signal("move-selected")Gtk.MoveSelectedHandlerTo be added.To be added.MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideActivateCurrent", Type=typeof(Gtk.MenuShell))System.Void
a Default handler for the event.Override this method in a subclass to provide a default handler for the event.MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideCanceled", Type=typeof(Gtk.MenuShell))System.VoidDefault handler for the event.Override this method in a subclass to provide a default handler for the event.MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideCycleFocus", Type=typeof(Gtk.MenuShell))System.Void
To be added.
To be added.To be added.MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideDeactivated", Type=typeof(Gtk.MenuShell))System.VoidDefault handler for the event.Override this method in a subclass to provide a default handler for the event.MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideGetPopupDelay", Type=typeof(Gtk.MenuShell))System.Int32To be added.To be added.To be added.MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideInsert", Type=typeof(Gtk.MenuShell))System.Void
To be added.
To be added.
To be added.To be added.MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideMoveCurrent", Type=typeof(Gtk.MenuShell))System.Void
a Default handler for the event.Override this method in a subclass to provide a default handler for the event.MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideMoveSelected", Type=typeof(Gtk.MenuShell))System.Boolean
To be added.
To be added.To be added.To be added.MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideSelectionDone", Type=typeof(Gtk.MenuShell))System.VoidDefault handler for the event.Override this method in a subclass to provide a default handler for the event.MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideSelectItem", Type=typeof(Gtk.MenuShell))System.Void
To be added.
To be added.To be added.PropertyGtk.WidgetTo be added.To be added.To be added.MethodSystem.Void
The to add.
Adds a new to the beginning of the menu shell's item list.Activates the menu item within the menu shell.
Adds a new to the beginning of the menu shell's item list.
PropertyGtk.WidgetTo be added.To be added.To be added.MethodSystem.Void
a Select the first visible or selectable child of the menu shell;
don't select tearoff items unless the only item is a tearoff item.
If is true,
search for the first selectable menu item, otherwise select nothing if
the first item isn't sensitive. This should be false if the
menu is being popped up initially.
EventGLib.Signal("selection-done")System.EventHandlerThis signal is emitted when a selection has been completed within a menu shell.MethodSystem.Void
The to select.
Selects the menu item from the menu shell.
Selects the menu item from the menu shell.
PropertyGLib.Property("take-focus")System.BooleanIndicates if the keyboard focus should be grabbed when active. if the keyboard focus is taken when active.By default, this is true. Setting to false can have unexpected side effects and in general should only be done with menus that don't contain mnemonics.