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

INTERFACES

13         Gtk2::Buildable
14

METHODS

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

PROPERTIES

70       'add-tearoffs' (boolean : readable / writable / private)
71           Whether tearoff menu items should be added to menus
72
73       'ui' (string : readable / private)
74           An XML string describing the merged UI
75

SIGNALS

77       add-widget (Gtk2::UIManager, Gtk2::Widget)
78       actions-changed (Gtk2::UIManager)
79       connect-proxy (Gtk2::UIManager, Gtk2::Action, Gtk2::Widget)
80       disconnect-proxy (Gtk2::UIManager, Gtk2::Action, Gtk2::Widget)
81       pre-activate (Gtk2::UIManager, Gtk2::Action)
82       post-activate (Gtk2::UIManager, Gtk2::Action)
83

ENUMS AND FLAGS

85   flags Gtk2::UIManagerItemType
86       ·   'auto' / 'GTK_UI_MANAGER_AUTO'
87
88       ·   'menubar' / 'GTK_UI_MANAGER_MENUBAR'
89
90       ·   'menu' / 'GTK_UI_MANAGER_MENU'
91
92       ·   'toolbar' / 'GTK_UI_MANAGER_TOOLBAR'
93
94       ·   'placeholder' / 'GTK_UI_MANAGER_PLACEHOLDER'
95
96       ·   'popup' / 'GTK_UI_MANAGER_POPUP'
97
98       ·   'menuitem' / 'GTK_UI_MANAGER_MENUITEM'
99
100       ·   'toolitem' / 'GTK_UI_MANAGER_TOOLITEM'
101
102       ·   'separator' / 'GTK_UI_MANAGER_SEPARATOR'
103
104       ·   'accelerator' / 'GTK_UI_MANAGER_ACCELERATOR'
105
106       ·   'popup-with-accels' / 'GTK_UI_MANAGER_POPUP_WITH_ACCELS'
107

SEE ALSO

109       Gtk2, Glib::Object
110
112       Copyright (C) 2003-2008 by the gtk2-perl team.
113
114       This software is licensed under the LGPL.  See Gtk2 for a full notice.
115
116
117
118perl v5.12.0                      2010-05-02                Gtk2::UIManager(3)
Impressum