Gtk2::UIManager(3) User Contributed Perl Documentation Gtk2::UIManager(3)

Gtk2::UIManager - wrapper for GtkUIManager

Glib::Object
+----Gtk2::UIManager

Gtk2::Buildable

integer = $self->new_merge_id

$path (string)

list = $self->get_action_groups

$self->set_add_tearoffs ($add_tearoffs)

$add_tearoffs (boolean)

$self->add_ui ($merge_id, $path, $name, $action, $type, $top)

  • $merge_id (integer)
  • $path (string)
  • $name (string)
  • $action (string or undef)
  • $type (Gtk2::UIManagerItemType)
  • $top (boolean)

integer = $self->add_ui_from_file ($filename)

$filename (string)

May croak with a Glib::Error in $@ on failure.

integer = $self->add_ui_from_string ($buffer)

$buffer (string)

May croak with a Glib::Error in $@ on failure.

$self->insert_action_group ($action_group, $pos)

  • $action_group (Gtk2::ActionGroup)
  • $pos (integer)

$self->remove_action_group ($action_group)

$action_group (Gtk2::ActionGroup)

$self->remove_ui ($merge_id)

$merge_id (integer)

list = $self->get_toplevels ($types)

$types (Gtk2::UIManagerItemType)

$path (string)

'add-tearoffs' (boolean : default false : readable / writable / private / static-nick / static-blurb)
Whether tearoff menu items should be added to menus
'ui' (string : default "<ui>\n</ui>\n" : readable / private / static-nick / static-blurb)
An XML string describing the merged UI

  • 'auto' / 'GTK_UI_MANAGER_AUTO'
  • 'menubar' / 'GTK_UI_MANAGER_MENUBAR'
  • 'menu' / 'GTK_UI_MANAGER_MENU'
  • 'toolbar' / 'GTK_UI_MANAGER_TOOLBAR'
  • 'placeholder' / 'GTK_UI_MANAGER_PLACEHOLDER'
  • 'popup' / 'GTK_UI_MANAGER_POPUP'
  • 'menuitem' / 'GTK_UI_MANAGER_MENUITEM'
  • 'toolitem' / 'GTK_UI_MANAGER_TOOLITEM'
  • 'separator' / 'GTK_UI_MANAGER_SEPARATOR'
  • 'accelerator' / 'GTK_UI_MANAGER_ACCELERATOR'
  • 'popup-with-accels' / 'GTK_UI_MANAGER_POPUP_WITH_ACCELS'

Gtk2, Glib::Object

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.

2022-05-29 perl v5.36.0