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

NAME

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

HIERARCHY

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

INTERFACES

21         Gtk2::Buildable
22

METHODS

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

PROPERTIES

88       'name' (string : readable / writable / construct-only / private)
89           A name for the action group.
90
91       'sensitive' (boolean : readable / writable / private)
92           Whether the action group is enabled.
93
94       'visible' (boolean : readable / writable / private)
95           Whether the action group is visible.
96

SIGNALS

98       connect-proxy (Gtk2::ActionGroup, Gtk2::Action, Gtk2::Widget)
99       disconnect-proxy (Gtk2::ActionGroup, Gtk2::Action, Gtk2::Widget)
100       pre-activate (Gtk2::ActionGroup, Gtk2::Action)
101       post-activate (Gtk2::ActionGroup, Gtk2::Action)
102

SEE ALSO

104       Gtk2, Glib::Object
105
107       Copyright (C) 2003-2008 by the gtk2-perl team.
108
109       This software is licensed under the LGPL.  See Gtk2 for a full notice.
110
111
112
113perl v5.12.0                      2010-05-02              Gtk2::ActionGroup(3)
Impressum