1Gtk2::UIManager(3) User Contributed Perl Documentation Gtk2::UIManager(3)
2
3
4
6 Gtk2::UIManager - wrapper for GtkUIManager
7
9 Glib::Object
10 +----Gtk2::UIManager
11
13 Gtk2::Buildable
14
16 uimanager = Gtk2::UIManager->new
17 integer = $self->new_merge_id
18 accelgroup = $self->get_accel_group
19 action = $self->get_action ($path)
20 · $path (string)
21
22 list = $self->get_action_groups
23 boolean = $self->get_add_tearoffs
24 $self->set_add_tearoffs ($add_tearoffs)
25 · $add_tearoffs (boolean)
26
27 $self->add_ui ($merge_id, $path, $name, $action, $type, $top)
28 · $merge_id (integer)
29
30 · $path (string)
31
32 · $name (string)
33
34 · $action (string or undef)
35
36 · $type (Gtk2::UIManagerItemType)
37
38 · $top (boolean)
39
40 integer = $self->add_ui_from_file ($filename)
41 · $filename (string)
42
43 May croak with a Glib::Error in $@ on failure.
44
45 integer = $self->add_ui_from_string ($buffer)
46 · $buffer (string)
47
48 May croak with a Glib::Error in $@ on failure.
49
50 $self->ensure_update
51 $self->insert_action_group ($action_group, $pos)
52 · $action_group (Gtk2::ActionGroup)
53
54 · $pos (integer)
55
56 $self->remove_action_group ($action_group)
57 · $action_group (Gtk2::ActionGroup)
58
59 $self->remove_ui ($merge_id)
60 · $merge_id (integer)
61
62 list = $self->get_toplevels ($types)
63 · $types (Gtk2::UIManagerItemType)
64
65 string = $self->get_ui
66 widget = $self->get_widget ($path)
67 · $path (string)
68
70 'add-tearoffs' (boolean : default false : readable / writable /
71 private)
72 Whether tearoff menu items should be added to menus
73
74 'ui' (string : default "<ui>\n</ui>\n" : readable / private)
75 An XML string describing the merged UI
76
78 actions-changed (Gtk2::UIManager)
79 add-widget (Gtk2::UIManager, Gtk2::Widget)
80 connect-proxy (Gtk2::UIManager, Gtk2::Action, Gtk2::Widget)
81 disconnect-proxy (Gtk2::UIManager, Gtk2::Action, Gtk2::Widget)
82 post-activate (Gtk2::UIManager, Gtk2::Action)
83 pre-activate (Gtk2::UIManager, Gtk2::Action)
84
86 flags Gtk2::UIManagerItemType
87 · 'auto' / 'GTK_UI_MANAGER_AUTO'
88
89 · 'menubar' / 'GTK_UI_MANAGER_MENUBAR'
90
91 · 'menu' / 'GTK_UI_MANAGER_MENU'
92
93 · 'toolbar' / 'GTK_UI_MANAGER_TOOLBAR'
94
95 · 'placeholder' / 'GTK_UI_MANAGER_PLACEHOLDER'
96
97 · 'popup' / 'GTK_UI_MANAGER_POPUP'
98
99 · 'menuitem' / 'GTK_UI_MANAGER_MENUITEM'
100
101 · 'toolitem' / 'GTK_UI_MANAGER_TOOLITEM'
102
103 · 'separator' / 'GTK_UI_MANAGER_SEPARATOR'
104
105 · 'accelerator' / 'GTK_UI_MANAGER_ACCELERATOR'
106
107 · 'popup-with-accels' / 'GTK_UI_MANAGER_POPUP_WITH_ACCELS'
108
110 Gtk2, Glib::Object
111
113 Copyright (C) 2003-2011 by the gtk2-perl team.
114
115 This software is licensed under the LGPL. See Gtk2 for a full notice.
116
117
118
119perl v5.30.0 2019-07-26 Gtk2::UIManager(3)