Next: GtkMenuItem, Previous: GtkMenu, Up: Top
A subclass widget for which holds widgets
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.
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
<gtk-widget>)Creates the new
<gtk-menu-bar>
- ret
- the
<gtk-menu-bar>
<gtk-menu-bar>) (pack_dir <gtk-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
<gtk-menu-bar>) ⇒ (ret <gtk-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