Next: , Previous: GtkMenu, Up: Top


57 GtkMenuBar

A subclass widget for which holds widgets

57.1 Overview

The <gtk-menu-bar> is a subclass of <gtk-menu-shell> which contains one to many <gtk-menu-item>. The result is a standard menu bar which can hold many menu items. <gtk-menu-bar> allows for a shadow type to be set for aesthetic purposes. The shadow types are defined in the <gtk-menu-bar-set-shadow-type> function.

57.2 Usage

— Class: <gtk-menu-bar>

Derives from <gtk-menu-shell>.

This class defines the following slots:

pack-direction
The pack direction of the menubar
child-pack-direction
The child pack direction of the menubar
— Function: gtk-menu-bar-new ⇒  (ret <gtk-widget>)

Creates the new <gtk-menu-bar>

ret
the <gtk-menu-bar>
— Function: gtk-menu-bar-set-pack-direction (self <gtk-menu-bar>) (pack_dir <gtk-pack-direction>)
— Method: set-pack-direction

Sets how items should be packed inside a menubar.

menubar
a <gtk-menu-bar>.
pack-dir
a new <gtk-pack-direction>.

Since 2.8

— Function: gtk-menu-bar-get-pack-direction (self <gtk-menu-bar>) ⇒  (ret <gtk-pack-direction>)
— Method: get-pack-direction

Retrieves the current pack direction of the menubar. See gtk-menu-bar-set-pack-direction.

menubar
a <gtk-menu-bar>
ret
the pack direction

Since 2.8