1Gtk2::UIManager(3)    User Contributed Perl Documentation   Gtk2::UIManager(3)
2
3
4

NAME

6       Gtk2::UIManager
7

HIERARCHY

9         Glib::Object
10         +----Gtk2::UIManager
11

METHODS

13       uimanager = Gtk2::UIManager->new
14
15       integer = $self->new_merge_id
16
17       accelgroup = $self->get_accel_group
18
19       action = $self->get_action ($path)
20
21           * $path (string)
22
23       list = $self->get_action_groups
24
25       boolean = $self->get_add_tearoffs
26
27       $self->set_add_tearoffs ($add_tearoffs)
28
29           * $add_tearoffs (boolean)
30
31       $self->add_ui ($merge_id, $path, $name, $action, $type, $top)
32
33           * $merge_id (integer)
34           * $path (string)
35           * $name (string)
36           * $action (string or undef)
37           * $type (Gtk2::UIManagerItemType)
38           * $top (boolean)
39
40       integer = $self->add_ui_from_file ($filename)
41
42           * $filename (string)
43
44           May croak with a Glib::Error in $@ on failure.
45
46       integer = $self->add_ui_from_string ($buffer)
47
48           * $buffer (string)
49
50           May croak with a Glib::Error in $@ on failure.
51
52       $self->ensure_update
53
54       $self->insert_action_group ($action_group, $pos)
55
56           * $action_group (Gtk2::ActionGroup)
57           * $pos (integer)
58
59       $self->remove_action_group ($action_group)
60
61           * $action_group (Gtk2::ActionGroup)
62
63       $self->remove_ui ($merge_id)
64
65           * $merge_id (integer)
66
67       list = $self->get_toplevels ($types)
68
69           * $types (Gtk2::UIManagerItemType)
70
71       string = $self->get_ui
72
73       widget = $self->get_widget ($path)
74
75           * $path (string)
76

PROPERTIES

78       'add-tearoffs' (boolean : readable / writable / private)
79           Whether tearoff menu items should be added to menus
80
81       'ui' (string : readable / private)
82           An XML string describing the merged UI
83

SIGNALS

85       connect-proxy (Gtk2::UIManager, Gtk2::Action, Gtk2::Widget)
86       disconnect-proxy (Gtk2::UIManager, Gtk2::Action, Gtk2::Widget)
87       pre-activate (Gtk2::UIManager, Gtk2::Action)
88       post-activate (Gtk2::UIManager, Gtk2::Action)
89       add-widget (Gtk2::UIManager, Gtk2::Widget)
90       actions-changed (Gtk2::UIManager)
91

ENUMS AND FLAGS

93       flags Gtk2::UIManagerItemType
94
95       * 'auto' / 'GTK_UI_MANAGER_AUTO'
96       * 'menubar' / 'GTK_UI_MANAGER_MENUBAR'
97       * 'menu' / 'GTK_UI_MANAGER_MENU'
98       * 'toolbar' / 'GTK_UI_MANAGER_TOOLBAR'
99       * 'placeholder' / 'GTK_UI_MANAGER_PLACEHOLDER'
100       * 'popup' / 'GTK_UI_MANAGER_POPUP'
101       * 'menuitem' / 'GTK_UI_MANAGER_MENUITEM'
102       * 'toolitem' / 'GTK_UI_MANAGER_TOOLITEM'
103       * 'separator' / 'GTK_UI_MANAGER_SEPARATOR'
104       * 'accelerator' / 'GTK_UI_MANAGER_ACCELERATOR'
105

SEE ALSO

107       Gtk2, Glib::Object
108
110       Copyright (C) 2003-2007 by the gtk2-perl team.
111
112       This software is licensed under the LGPL.  See Gtk2 for a full notice.
113
114
115
116perl v5.8.8                       2007-03-18                Gtk2::UIManager(3)
Impressum