1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
32
  
33
  
34
  
35
  
36
  
37
  
38
  
39
  
40
  
41
  
42
  
43
  
44
  
45
  
46
  
47
  
48
  
49
  
50
  
51
  
52
  
53
  
54
  
55
  
56
  
57
  
58
  
59
  
60
  
61
  
62
  
63
  
64
  
65
  
66
  
67
  
68
  
69
  
70
  
71
  
72
  
73
  
74
  
75
  
76
  
77
  
78
  
79
  
80
  
81
  
82
  
83
  
84
  
85
  
86
  
87
  
88
  
89
  
90
  
91
  
92
  
93
  
94
  
95
  
96
  
97
  
98
  
99
  
100
  
101
  
102
  
103
  
104
  
105
  
106
  
107
  
108
  
109
  
110
  
111
  
112
  
113
  
114
  
115
  
116
  
117
  
118
  
119
  
120
  
121
  
122
  
123
  
124
  
125
  
126
  
127
  
128
  
129
  
130
  
131
  
132
  
133
  
134
  
135
  
136
  
137
  
138
  
139
  
140
  
141
  
142
  
//! Properties: 
//! GTK2.ActionGroup action-group 
//! int hide-if-empty 
//! int is-important 
//! string label 
//! string name 
//! int sensitive 
//! string short-label 
//! string stock-id 
//! string tooltip 
//! int visible 
//! int visible-horizontal 
//! int visible-overflown 
//! int visible-vertical 
//! 
//! 
//!  Signals: 
//! @b{activate@} 
//! 
 
inherit G.Object; 
 
GTK2.Action activate( ); 
//! Emits the "activate" signal, if it isn't insensitive. 
//! 
//! 
 
GTK2.Action block_activate_from( GTK2.Widget proxy ); 
//! Disables calls to the activate() function by signals on the proxy. This is 
//! used to break notification loops for things like check or radio actions. 
//! 
//! 
 
GTK2.Action connect_accelerator( ); 
//! Installs the accelerator if this action widget has an accel path and group. 
//! 
//! 
 
GTK2.Action connect_proxy( GTK2.Widget proxy ); 
//! Connects a widget to an action object as a proxy.  Synchronises various 
//! properties of the action with the widget (such as label text, icon, 
//! tooltip, etc), and attaches a callback so that the action gets activated 
//! when the proxy widget does. 
//! 
//! 
 
protected GTK2.Action create( string|mapping name_or_props, string|void label, string|void tooltip, string|void stock_id ); 
//! Creates a new object. 
//! 
//! 
 
GTK2.Widget create_icon( int icon_size ); 
//! This function is intended for use by action implementations to create 
//! icons displayed in the proxy widgets.  One of @[ICON_SIZE_BUTTON], @[ICON_SIZE_DIALOG], @[ICON_SIZE_DND], @[ICON_SIZE_INVALID], @[ICON_SIZE_LARGE_TOOLBAR], @[ICON_SIZE_MENU] and @[ICON_SIZE_SMALL_TOOLBAR]. 
//! 
//! 
 
GTK2.Widget create_menu_item( ); 
//! Creates a menu item widget that proxies for the action. 
//! 
//! 
 
GTK2.Widget create_tool_item( ); 
//! Creates a toolbar item widget that proxies for the action. 
//! 
//! 
 
GTK2.Action disconnect_accelerator( ); 
//! Undoes the effect of one call to connect_accelerator(). 
//! 
//! 
 
GTK2.Action disconnect_proxy( GTK2.Widget proxy ); 
//! Disconnects a proxy widget.  Does not destroy the widget. 
//! 
//! 
 
string get_accel_path( ); 
//! Returns the accel path for this action. 
//! 
//! 
 
string get_name( ); 
//! Returns the name of the action. 
//! 
//! 
 
array get_proxies( ); 
//! Returns the proxy widgets. 
//! 
//! 
 
int get_sensitive( ); 
//! Returns whether the action itself is sensitive.  Note that this doesn't 
//! necessarily mean effective sensitivity. 
//! 
//! 
 
int get_visible( ); 
//! Returns whether the action itself is visible. 
//! 
//! 
 
int is_sensitive( ); 
//! Returns whether the action is effectively sensitive. 
//! 
//! 
 
int is_visible( ); 
//! Returns whether the action is effectively visible. 
//! 
//! 
 
GTK2.Action set_accel_group( GTK2.AccelGroup group ); 
//! Sets the GTK2.AccelGroup in which the accelerator for this action will be 
//! installed. 
//! 
//! 
 
GTK2.Action set_accel_path( string accel_path ); 
//! Sets the accel path for this action.  All proxy widgets associated with 
//! this action will have this accel path, so that their accelerators are 
//! consistent. 
//! 
//! 
 
GTK2.Action set_sensitive( int setting ); 
//! Sets the sensitive property. 
//! 
//! 
 
GTK2.Action set_visible( int setting ); 
//! Sets the visible property. 
//! 
//! 
 
GTK2.Action unblock_activate_from( GTK2.Widget proxy ); 
//! Re-enables calls to the activate() function. 
//! 
//!