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

NAME

6       Gtk2::ActionGroup
7
8       NOTE: Translation
9
10       In C, gtk+'s action groups can use the translation domain to ensure
11       that action labels and tooltips are translated along with the rest of
12       the app.  However, the translation function was not available for call‐
13       ing by the Perl bindings until gtk+ 2.6; that is, setting the transla‐
14       tion domain had no effect.  Translation of action groups is supported
15       in Perl as of Gtk2 1.080 using gtk+ 2.6.0 or later.
16

HIERARCHY

18         Glib::Object
19         +----Gtk2::ActionGroup
20

METHODS

22       actiongroup = Gtk2::ActionGroup->new ($name)
23
24           * $name (string)
25
26       action = $action_group->get_action ($action_name)
27
28           * $action_name (string)
29
30       $action_group->add_action ($action)
31
32           * $action (Gtk2::Action)
33
34       $action_group->add_action_with_accel ($action, $accelerator)
35
36           * $action (Gtk2::Action)
37           * $accelerator (string or undef)
38
39       $action_group->add_actions ($action_entries, $user_data=undef)
40
41           * $action_entries (scalar)
42           * $user_data (scalar)
43
44       $action_group->add_radio_actions ($radio_action_entries, $value,
45       $on_change, $user_data=undef)
46
47           * $radio_action_entries (scalar)
48           * $value (integer)
49           * $on_change (scalar)
50           * $user_data (scalar)
51
52       $action_group->add_toggle_actions ($toggle_action_entries,
53       $user_data=undef)
54
55           * $toggle_action_entries (scalar)
56           * $user_data (scalar)
57
58       list = $action_group->list_actions
59
60       string = $action_group->get_name
61
62       $action_group->remove_action ($action)
63
64           * $action (Gtk2::Action)
65
66       boolean = $action_group->get_sensitive
67
68       $action_group->set_sensitive ($sensitive)
69
70           * $sensitive (boolean)
71
72       $action_group->set_translate_func ($func, $data=undef)
73
74           * $func (scalar)
75           * $data (scalar)
76
77       string = $action_group->translate_string ($string)
78
79           * $string (string)
80
81       $action_group->set_translation_domain ($domain)
82
83           * $domain (string)
84
85       boolean = $action_group->get_visible
86
87       $action_group->set_visible ($sensitive)
88
89           * $sensitive (boolean)
90

PROPERTIES

92       'name' (string : readable / writable / construct-only / private)
93           A name for the action group.
94
95       'sensitive' (boolean : readable / writable / private)
96           Whether the action group is enabled.
97
98       'visible' (boolean : readable / writable / private)
99           Whether the action group is visible.
100

SIGNALS

102       connect-proxy (Gtk2::ActionGroup, Gtk2::Action, Gtk2::Widget)
103       disconnect-proxy (Gtk2::ActionGroup, Gtk2::Action, Gtk2::Widget)
104       pre-activate (Gtk2::ActionGroup, Gtk2::Action)
105       post-activate (Gtk2::ActionGroup, Gtk2::Action)
106

SEE ALSO

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