~canonical-dx-team/ubuntu/maverick/gtk+2.0/menuproxy

« back to all changes in this revision

Viewing changes to docs/reference/gtk/html/GtkAction.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-05-04 12:24:25 UTC
  • mfrom: (1.1.21 upstream)
  • Revision ID: james.westby@ubuntu.com-20070504122425-0m8midgzrp40y8w2
Tags: 2.10.12-1ubuntu1
* Sync with Debian
* New upstream version:
  Fixed bugs:
  - 379414 file chooser warnings when changing path in the entry
  - 418585 GtkFileChooserDefault sizing code is not DPI independent
  - 419568 Crash in search if start with special letter
  - 435062 build dies with icon cache validation
  - 379399 Segfault to call gtk_print_operation_run twice.
  - 387889 cups backend has problems when there are too many printers
  - 418531 invalid read to gtkicontheme.c gtk_icon_theme_lookup_icon...
  - 423916 crash in color scheme code
  - 424042 Segmentation fault while quickly pressing Alt+arrows
  - 415260 Protect against negative indices when setting values in G...
  - 419171 XGetVisualInfo() may not set nxvisuals
  - 128852 Gdk cursors don't look good on win32
  - 344657 Ctrl-H doesn't toggle "Show Hidden Files" setting
  - 345345 PrintOperation::paginate is not emitted for class handler
  - 347567 GtkPrintOperation::end-print is not emitted if it's cance...
  - 369112 gtk_ui_manager_add_ui should accept unnamed separator
  - 392015 Selected menu item invisible on Windows Vista
  - 399253 MS-Windows Theme Bottom Tab placement rendering glitches
  - 399425 gtk_input_dialog_fill_axes() adds child to gtkscrolledwin...
  - 403251 [patch] little memory leak in GtkPrintJob
  - 403267 [patch] memory leak in GtkPageSetupUnixDialog
  - 403470 MS-Windows Theme tab placement other than on top leaks a ...
  - 404506 Windows system fonts that have multi-byte font names cann...
  - 405089 Incorrect window placement for GtkEventBox private window
  - 405515 Minor leak in gtkfilesystemmodel.c
  - 405539 gdk_pixbuf_save() for PNG saver can return FALSE without ...
  - 415681 gdk_window_clear_area includes an extra line and column o...
  - 418219 GtkRecentChooser should apply filter before sorting and c...
  - 418403 Scroll to printer after selecting it from settings
  - 421985 _gtk_print_operation_platform_backend_launch_preview
  - 421990 gtk_print_job_get_surface
  - 421993 gtk_print_operation_init
  - 423064 Conditional jump or move depends on uninitialised value(s...
  - 423722 Fix printing header in gtk-demo
  - 424168 gtk_print_operation_run on async preview
  - 425655 Don't install gtk+-unix-print-2.0.pc on non-UNIX platforms
  - 425786 GDK segfaults if XineramaQueryScreens fails
  - 428665 Lpr Backend gets stuck in infinite loop during gtk_enumer...
  - 429902 GtkPrintOperation leaks cairo contextes
  - 431997 First delay of GdkPixbufAnimationIter is wrong
  - 433242 Inconsistent scroll arrow position calculations
  - 433972 Placing gtk.Expander inside a gtk.TextView() changes gtk....
  - 434261 _gtk_toolbar_elide_underscores incorrectly handles some s...
  - 383354 ctrl-L should make 'Location' entry disappear
  - 418673 gtk_recent_manager_add_item
  - 429732 gtk_accel_group_finalize accesses invalid memory
  - 435028 WM_CLIENT_LEADER is wrong on the leader_window
  - 431067 Background of the header window is not updated
  - 338843 add recent files support inside the ui manager
  - 148535 add drop shadow to menus, tooltips, etc. under Windows XP
* debian/control.in:
  - Conflicts on ubuntulooks (<= 0.9.11-1)
* debian/patches/15_default-fallback-icon-theme.patch:
  - patch from Debian, fallback on gnome icon theme

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
2
<html>
 
3
<head>
 
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
 
5
<title>GtkAction</title>
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
 
7
<link rel="start" href="index.html" title="GTK+ Reference Manual">
 
8
<link rel="up" href="Actions.html" title="Action-based menus and toolbars">
 
9
<link rel="prev" href="GtkActionGroup.html" title="GtkActionGroup">
 
10
<link rel="next" href="GtkToggleAction.html" title="GtkToggleAction">
 
11
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
 
12
<link rel="stylesheet" href="style.css" type="text/css">
 
13
<link rel="part" href="gtk.html" title="Part&#160;I.&#160;GTK+ Overview">
 
14
<link rel="part" href="gtkbase.html" title="Part&#160;II.&#160;GTK+ Core Reference">
 
15
<link rel="part" href="gtkobjects.html" title="Part&#160;III.&#160;GTK+ Widgets and Objects">
 
16
<link rel="chapter" href="ch01.html" title="Object Hierarchy">
 
17
<link rel="chapter" href="ch02.html" title="Widget Gallery">
 
18
<link rel="chapter" href="WindowWidgets.html" title="Windows">
 
19
<link rel="chapter" href="DisplayWidgets.html" title="Display Widgets">
 
20
<link rel="chapter" href="ButtonWidgets.html" title="Buttons and Toggles">
 
21
<link rel="chapter" href="NumericEntry.html" title="Numeric/Text Data Entry">
 
22
<link rel="chapter" href="TextWidgetObjects.html" title="Multiline Text Editor">
 
23
<link rel="chapter" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
 
24
<link rel="chapter" href="MenusAndCombos.html" title="Menus, Combo Box, Toolbar">
 
25
<link rel="chapter" href="Actions.html" title="Action-based menus and toolbars">
 
26
<link rel="chapter" href="SelectorWidgets.html" title="Selectors (File/Font/Color/Input Devices)">
 
27
<link rel="chapter" href="LayoutContainers.html" title="Layout Containers">
 
28
<link rel="chapter" href="Ornaments.html" title="Ornaments">
 
29
<link rel="chapter" href="ScrollingWidgets.html" title="Scrolling">
 
30
<link rel="chapter" href="Printing.html" title="Printing">
 
31
<link rel="chapter" href="MiscObjects.html" title="Miscellaneous">
 
32
<link rel="chapter" href="AbstractObjects.html" title="Abstract Base Classes">
 
33
<link rel="chapter" href="PlugSocket.html" title="Cross-process Embedding">
 
34
<link rel="chapter" href="SpecialObjects.html" title="Special-purpose features">
 
35
<link rel="chapter" href="RecentDocuments.html" title="Recently Used Documents">
 
36
<link rel="chapter" href="DeprecatedObjects.html" title="Deprecated">
 
37
<link rel="part" href="migrating.html" title="Part&#160;IV.&#160;Migrating from Previous Versions of GTK+">
 
38
<link rel="chapter" href="gtk-migrating-checklist.html" title="Migration Checklist">
 
39
<link rel="chapter" href="gtk-migrating-GtkFileChooser.html" title="Migrating from GtkFileSelection to GtkFileChooser">
 
40
<link rel="chapter" href="gtk-migrating-GtkAction.html" title="Migrating from old menu and toolbar systems to GtkAction">
 
41
<link rel="chapter" href="gtk-migrating-GtkComboBox.html" title="Migrating from GtkOptionMenu and GtkCombo to GtkComboBox and GtkComboBoxEntry">
 
42
<link rel="chapter" href="gtk-migrating-GtkIconView.html" title="Migrating from GnomeIconList to GtkIconView">
 
43
<link rel="chapter" href="gtk-migrating-GtkAboutDialog.html" title="Migrating from GnomeAbout to GtkAboutDialog">
 
44
<link rel="chapter" href="gtk-migrating-GtkColorButton.html" title="Migrating from GnomeColorPicker to GtkColorButton">
 
45
<link rel="chapter" href="gtk-migrating-GtkAssistant.html" title="Migrating from GnomeDruid to GtkAssistant">
 
46
<link rel="chapter" href="gtk-migrating-GtkRecentChooser.html" title="Migrating from EggRecent to GtkRecentChooser">
 
47
<link rel="chapter" href="gtk-migrating-GtkLinkButton.html" title="Migrating from GnomeHRef to GtkLinkButton">
 
48
<link rel="part" href="pt05.html" title="Part&#160;V.&#160;GTK+ Tools">
 
49
<link rel="glossary" href="glossary.html" title="Glossary">
 
50
<link rel="index" href="ix01.html" title="Index">
 
51
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
 
52
<link rel="index" href="ix03.html" title="Index of new symbols in 2.2">
 
53
<link rel="index" href="ix04.html" title="Index of new symbols in 2.4">
 
54
<link rel="index" href="ix05.html" title="Index of new symbols in 2.6">
 
55
<link rel="index" href="ix06.html" title="Index of new symbols in 2.8">
 
56
<link rel="index" href="ix07.html" title="Index of new symbols in 2.10">
 
57
</head>
 
58
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
 
59
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
 
60
<tr valign="middle">
 
61
<td><a accesskey="p" href="GtkActionGroup.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
 
62
<td><a accesskey="u" href="Actions.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
 
63
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
 
64
<th width="100%" align="center">GTK+ Reference Manual</th>
 
65
<td><a accesskey="n" href="GtkToggleAction.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
 
66
</tr>
 
67
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id3436113" class="shortcut">Top</a>
 
68
                  &#160;|&#160;
 
69
                  <a href="#id3437070" class="shortcut">Description</a>
 
70
                  &#160;|&#160;
 
71
                  <a href="#id3436752" class="shortcut">Object Hierarchy</a>
 
72
                  &#160;|&#160;
 
73
                  <a href="#id3436784" class="shortcut">Properties</a>
 
74
                  &#160;|&#160;
 
75
                  <a href="#id3437042" class="shortcut">Signals</a></nobr></td></tr>
 
76
</table>
 
77
<div class="refentry" lang="en">
 
78
<a name="GtkAction"></a><div class="titlepage"></div>
 
79
<div class="refnamediv"><table width="100%"><tr>
 
80
<td valign="top">
 
81
<h2>
 
82
<a name="id3436113"></a><span class="refentrytitle">GtkAction</span>
 
83
</h2>
 
84
<p>GtkAction &#8212; An action which can be triggered by a menu or toolbar item</p>
 
85
</td>
 
86
<td valign="top" align="right"></td>
 
87
</tr></table></div>
 
88
<div class="refsynopsisdiv">
 
89
<h2>Synopsis</h2>
 
90
<pre class="synopsis">
 
91
 
 
92
#include &lt;gtk/gtk.h&gt;
 
93
 
 
94
 
 
95
                    <a href="GtkAction.html#GtkAction-struct">GtkAction</a>;
 
96
<a href="GtkAction.html" title="GtkAction">GtkAction</a>*          <a href="GtkAction.html#gtk-action-new">gtk_action_new</a>                      (const gchar *name,
 
97
                                                         const gchar *label,
 
98
                                                         const gchar *tooltip,
 
99
                                                         const gchar *stock_id);
 
100
const gchar*        <a href="GtkAction.html#gtk-action-get-name">gtk_action_get_name</a>                 (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);
 
101
gboolean            <a href="GtkAction.html#gtk-action-is-sensitive">gtk_action_is_sensitive</a>             (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);
 
102
gboolean            <a href="GtkAction.html#gtk-action-get-sensitive">gtk_action_get_sensitive</a>            (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);
 
103
void                <a href="GtkAction.html#gtk-action-set-sensitive">gtk_action_set_sensitive</a>            (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action,
 
104
                                                         gboolean sensitive);
 
105
gboolean            <a href="GtkAction.html#gtk-action-is-visible">gtk_action_is_visible</a>               (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);
 
106
gboolean            <a href="GtkAction.html#gtk-action-get-visible">gtk_action_get_visible</a>              (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);
 
107
void                <a href="GtkAction.html#gtk-action-set-visible">gtk_action_set_visible</a>              (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action,
 
108
                                                         gboolean visible);
 
109
void                <a href="GtkAction.html#gtk-action-activate">gtk_action_activate</a>                 (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);
 
110
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          <a href="GtkAction.html#gtk-action-create-icon">gtk_action_create_icon</a>              (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action,
 
111
                                                         <a href="gtk-Themeable-Stock-Images.html#GtkIconSize">GtkIconSize</a> icon_size);
 
112
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          <a href="GtkAction.html#gtk-action-create-menu-item">gtk_action_create_menu_item</a>         (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);
 
113
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          <a href="GtkAction.html#gtk-action-create-tool-item">gtk_action_create_tool_item</a>         (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);
 
114
void                <a href="GtkAction.html#gtk-action-connect-proxy">gtk_action_connect_proxy</a>            (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action,
 
115
                                                         <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *proxy);
 
116
void                <a href="GtkAction.html#gtk-action-disconnect-proxy">gtk_action_disconnect_proxy</a>         (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action,
 
117
                                                         <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *proxy);
 
118
GSList*             <a href="GtkAction.html#gtk-action-get-proxies">gtk_action_get_proxies</a>              (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);
 
119
void                <a href="GtkAction.html#gtk-action-connect-accelerator">gtk_action_connect_accelerator</a>      (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);
 
120
void                <a href="GtkAction.html#gtk-action-disconnect-accelerator">gtk_action_disconnect_accelerator</a>   (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);
 
121
void                <a href="GtkAction.html#gtk-action-block-activate-from">gtk_action_block_activate_from</a>      (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action,
 
122
                                                         <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *proxy);
 
123
void                <a href="GtkAction.html#gtk-action-unblock-activate-from">gtk_action_unblock_activate_from</a>    (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action,
 
124
                                                         <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *proxy);
 
125
const gchar*        <a href="GtkAction.html#gtk-action-get-accel-path">gtk_action_get_accel_path</a>           (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);
 
126
void                <a href="GtkAction.html#gtk-action-set-accel-path">gtk_action_set_accel_path</a>           (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action,
 
127
                                                         const gchar *accel_path);
 
128
GClosure*           <a href="GtkAction.html#gtk-action-get-accel-closure">gtk_action_get_accel_closure</a>        (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);
 
129
void                <a href="GtkAction.html#gtk-action-set-accel-group">gtk_action_set_accel_group</a>          (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action,
 
130
                                                         <a href="gtk-Keyboard-Accelerators.html#GtkAccelGroup">GtkAccelGroup</a> *accel_group);
 
131
 
 
132
 
 
133
</pre>
 
134
</div>
 
135
<div class="refsect1" lang="en">
 
136
<a name="id3436752"></a><h2>Object Hierarchy</h2>
 
137
<pre class="synopsis">
 
138
 
 
139
  GObject
 
140
   +----GtkAction
 
141
         +----<a href="GtkToggleAction.html" title="GtkToggleAction">GtkToggleAction</a>
 
142
</pre>
 
143
</div>
 
144
<div class="refsect1" lang="en">
 
145
<a name="id3436784"></a><h2>Properties</h2>
 
146
<pre class="synopsis">
 
147
 
 
148
  "<a href="GtkAction.html#GtkAction--action-group">action-group</a>"             <a href="GtkActionGroup.html" title="GtkActionGroup">GtkActionGroup</a>        : Read / Write
 
149
  "<a href="GtkAction.html#GtkAction--hide-if-empty">hide-if-empty</a>"            gboolean              : Read / Write
 
150
  "<a href="GtkAction.html#GtkAction--icon-name">icon-name</a>"                gchararray            : Read / Write
 
151
  "<a href="GtkAction.html#GtkAction--is-important">is-important</a>"             gboolean              : Read / Write
 
152
  "<a href="GtkAction.html#GtkAction--label">label</a>"                    gchararray            : Read / Write
 
153
  "<a href="GtkAction.html#GtkAction--name">name</a>"                     gchararray            : Read / Write / Construct Only
 
154
  "<a href="GtkAction.html#GtkAction--sensitive">sensitive</a>"                gboolean              : Read / Write
 
155
  "<a href="GtkAction.html#GtkAction--short-label">short-label</a>"              gchararray            : Read / Write
 
156
  "<a href="GtkAction.html#GtkAction--stock-id">stock-id</a>"                 gchararray            : Read / Write
 
157
  "<a href="GtkAction.html#GtkAction--tooltip">tooltip</a>"                  gchararray            : Read / Write
 
158
  "<a href="GtkAction.html#GtkAction--visible">visible</a>"                  gboolean              : Read / Write
 
159
  "<a href="GtkAction.html#GtkAction--visible-horizontal">visible-horizontal</a>"       gboolean              : Read / Write
 
160
  "<a href="GtkAction.html#GtkAction--visible-overflown">visible-overflown</a>"        gboolean              : Read / Write
 
161
  "<a href="GtkAction.html#GtkAction--visible-vertical">visible-vertical</a>"         gboolean              : Read / Write
 
162
</pre>
 
163
</div>
 
164
<div class="refsect1" lang="en">
 
165
<a name="id3437042"></a><h2>Signals</h2>
 
166
<pre class="synopsis">
 
167
 
 
168
  "<a href="GtkAction.html#GtkAction-activate">activate</a>"                                       : Run First / No Recursion
 
169
</pre>
 
170
</div>
 
171
<div class="refsect1" lang="en">
 
172
<a name="id3437070"></a><h2>Description</h2>
 
173
<p>
 
174
Actions represent operations that the user can be perform, along with
 
175
some information how it should be presented in the interface. Each action 
 
176
provides methods to create icons, menu items and toolbar items representing 
 
177
itself.
 
178
</p>
 
179
<p>
 
180
As well as the callback that is called when the action gets activated, the 
 
181
following also gets associated with the action:
 
182
</p>
 
183
<div class="itemizedlist"><ul type="disc">
 
184
<li><p>a name (not translated, for path lookup)</p></li>
 
185
<li><p>a label (translated, for display)</p></li>
 
186
<li><p>an accelerator</p></li>
 
187
<li><p>whether label indicates a stock id</p></li>
 
188
<li><p>a tooltip (optional, translated)</p></li>
 
189
<li><p>a toolbar label (optional, shorter than label)</p></li>
 
190
</ul></div>
 
191
<p>
 
192
The action will also have some state information:
 
193
</p>
 
194
<div class="itemizedlist"><ul type="disc">
 
195
<li><p>visible (shown/hidden)</p></li>
 
196
<li><p>sensitive (enabled/disabled)</p></li>
 
197
</ul></div>
 
198
<p>
 
199
</p>
 
200
<p>
 
201
Apart from regular actions, there are <a href="GtkToggleAction.html" title="GtkToggleAction">toggle 
 
202
actions</a>, which can be toggled between two states and <a href="GtkRadioAction.html" title="GtkRadioAction">radio actions</a>, of which only one in a group 
 
203
can be in the "active" state. Other actions can be implemented as <a href="GtkAction.html" title="GtkAction"><span class="type">GtkAction</span></a> 
 
204
subclasses.
 
205
</p>
 
206
<p>
 
207
Each action can have one or more proxy menu item, toolbar button or
 
208
other proxy widgets.  Proxies mirror the state of the action (text
 
209
label, tooltip, icon, visible, sensitive, etc), and should change when
 
210
the action's state changes. When the proxy is activated, it should
 
211
activate its action.
 
212
</p>
 
213
</div>
 
214
<div class="refsect1" lang="en">
 
215
<a name="id3437177"></a><h2>Details</h2>
 
216
<div class="refsect2" lang="en">
 
217
<a name="id3437187"></a><h3>
 
218
<a name="GtkAction-struct"></a>GtkAction</h3>
 
219
<a class="indexterm" name="id3437200"></a><pre class="programlisting">typedef struct _GtkAction GtkAction;</pre>
 
220
<p>
 
221
The <span class="structname">GtkAction</span> struct contains only private members
 
222
and should not be accessed directly.
 
223
</p>
 
224
</div>
 
225
<hr>
 
226
<div class="refsect2" lang="en">
 
227
<a name="id3437220"></a><h3>
 
228
<a name="gtk-action-new"></a>gtk_action_new ()</h3>
 
229
<a class="indexterm" name="id3437236"></a><pre class="programlisting"><a href="GtkAction.html" title="GtkAction">GtkAction</a>*          gtk_action_new                      (const gchar *name,
 
230
                                                         const gchar *label,
 
231
                                                         const gchar *tooltip,
 
232
                                                         const gchar *stock_id);</pre>
 
233
<p>
 
234
Creates a new <a href="GtkAction.html" title="GtkAction"><span class="type">GtkAction</span></a> object. To add the action to a
 
235
<a href="GtkActionGroup.html" title="GtkActionGroup"><span class="type">GtkActionGroup</span></a> and set the accelerator for the action,
 
236
call <a href="GtkActionGroup.html#gtk-action-group-add-action-with-accel"><code class="function">gtk_action_group_add_action_with_accel()</code></a>.
 
237
See <a href="GtkUIManager.html#XML-UI" title="UI Definitions">the section called &#8220;UI Definitions&#8221;</a> for information on allowed action
 
238
names.</p>
 
239
<p>
 
240
 
 
241
</p>
 
242
<div class="variablelist"><table border="0">
 
243
<col align="left" valign="top">
 
244
<tbody>
 
245
<tr>
 
246
<td><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
 
247
<td> A unique name for the action
 
248
</td>
 
249
</tr>
 
250
<tr>
 
251
<td><span class="term"><em class="parameter"><code>label</code></em>&#160;:</span></td>
 
252
<td> the label displayed in menu items and on buttons
 
253
</td>
 
254
</tr>
 
255
<tr>
 
256
<td><span class="term"><em class="parameter"><code>tooltip</code></em>&#160;:</span></td>
 
257
<td> a tooltip for the action
 
258
</td>
 
259
</tr>
 
260
<tr>
 
261
<td><span class="term"><em class="parameter"><code>stock_id</code></em>&#160;:</span></td>
 
262
<td> the stock icon to display in widgets representing the action
 
263
</td>
 
264
</tr>
 
265
<tr>
 
266
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
267
<td> a new <a href="GtkAction.html" title="GtkAction"><span class="type">GtkAction</span></a>
 
268
 
 
269
</td>
 
270
</tr>
 
271
</tbody>
 
272
</table></div>
 
273
<p class="since">Since  2.4
 
274
</p>
 
275
</div>
 
276
<hr>
 
277
<div class="refsect2" lang="en">
 
278
<a name="id3437414"></a><h3>
 
279
<a name="gtk-action-get-name"></a>gtk_action_get_name ()</h3>
 
280
<a class="indexterm" name="id3437429"></a><pre class="programlisting">const gchar*        gtk_action_get_name                 (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);</pre>
 
281
<p>
 
282
Returns the name of the action.</p>
 
283
<p>
 
284
 
 
285
</p>
 
286
<div class="variablelist"><table border="0">
 
287
<col align="left" valign="top">
 
288
<tbody>
 
289
<tr>
 
290
<td><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></td>
 
291
<td> the action object
 
292
</td>
 
293
</tr>
 
294
<tr>
 
295
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
296
<td> the name of the action. The string belongs to GTK+ and should not
 
297
  be freed.
 
298
 
 
299
</td>
 
300
</tr>
 
301
</tbody>
 
302
</table></div>
 
303
<p class="since">Since  2.4
 
304
</p>
 
305
</div>
 
306
<hr>
 
307
<div class="refsect2" lang="en">
 
308
<a name="id3437499"></a><h3>
 
309
<a name="gtk-action-is-sensitive"></a>gtk_action_is_sensitive ()</h3>
 
310
<a class="indexterm" name="id3437514"></a><pre class="programlisting">gboolean            gtk_action_is_sensitive             (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);</pre>
 
311
<p>
 
312
Returns whether the action is effectively sensitive.</p>
 
313
<p>
 
314
 
 
315
</p>
 
316
<div class="variablelist"><table border="0">
 
317
<col align="left" valign="top">
 
318
<tbody>
 
319
<tr>
 
320
<td><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></td>
 
321
<td> the action object
 
322
</td>
 
323
</tr>
 
324
<tr>
 
325
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
326
<td> <code class="literal">TRUE</code> if the action and its associated action group 
 
327
are both sensitive.
 
328
 
 
329
</td>
 
330
</tr>
 
331
</tbody>
 
332
</table></div>
 
333
<p class="since">Since  2.4
 
334
</p>
 
335
</div>
 
336
<hr>
 
337
<div class="refsect2" lang="en">
 
338
<a name="id3437593"></a><h3>
 
339
<a name="gtk-action-get-sensitive"></a>gtk_action_get_sensitive ()</h3>
 
340
<a class="indexterm" name="id3437608"></a><pre class="programlisting">gboolean            gtk_action_get_sensitive            (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);</pre>
 
341
<p>
 
342
Returns whether the action itself is sensitive. Note that this doesn't 
 
343
necessarily mean effective sensitivity. See <a href="GtkAction.html#gtk-action-is-sensitive"><code class="function">gtk_action_is_sensitive()</code></a> 
 
344
for that.</p>
 
345
<p>
 
346
 
 
347
</p>
 
348
<div class="variablelist"><table border="0">
 
349
<col align="left" valign="top">
 
350
<tbody>
 
351
<tr>
 
352
<td><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></td>
 
353
<td> the action object
 
354
</td>
 
355
</tr>
 
356
<tr>
 
357
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
358
<td> <code class="literal">TRUE</code> if the action itself is sensitive.
 
359
 
 
360
</td>
 
361
</tr>
 
362
</tbody>
 
363
</table></div>
 
364
<p class="since">Since  2.4
 
365
</p>
 
366
</div>
 
367
<hr>
 
368
<div class="refsect2" lang="en">
 
369
<a name="id3437699"></a><h3>
 
370
<a name="gtk-action-set-sensitive"></a>gtk_action_set_sensitive ()</h3>
 
371
<a class="indexterm" name="id3437714"></a><pre class="programlisting">void                gtk_action_set_sensitive            (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action,
 
372
                                                         gboolean sensitive);</pre>
 
373
<p>
 
374
Sets the ::sensitive property of the action to <em class="parameter"><code>sensitive</code></em>. Note that 
 
375
this doesn't necessarily mean effective sensitivity. See 
 
376
<a href="GtkAction.html#gtk-action-is-sensitive"><code class="function">gtk_action_is_sensitive()</code></a> 
 
377
for that.</p>
 
378
<p>
 
379
 
 
380
</p>
 
381
<div class="variablelist"><table border="0">
 
382
<col align="left" valign="top">
 
383
<tbody>
 
384
<tr>
 
385
<td><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></td>
 
386
<td> the action object
 
387
</td>
 
388
</tr>
 
389
<tr>
 
390
<td><span class="term"><em class="parameter"><code>sensitive</code></em>&#160;:</span></td>
 
391
<td> <code class="literal">TRUE</code> to make the action sensitive
 
392
</td>
 
393
</tr>
 
394
</tbody>
 
395
</table></div>
 
396
<p class="since">Since  2.6
 
397
</p>
 
398
</div>
 
399
<hr>
 
400
<div class="refsect2" lang="en">
 
401
<a name="id3437822"></a><h3>
 
402
<a name="gtk-action-is-visible"></a>gtk_action_is_visible ()</h3>
 
403
<a class="indexterm" name="id3437838"></a><pre class="programlisting">gboolean            gtk_action_is_visible               (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);</pre>
 
404
<p>
 
405
Returns whether the action is effectively visible.</p>
 
406
<p>
 
407
 
 
408
</p>
 
409
<div class="variablelist"><table border="0">
 
410
<col align="left" valign="top">
 
411
<tbody>
 
412
<tr>
 
413
<td><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></td>
 
414
<td> the action object
 
415
</td>
 
416
</tr>
 
417
<tr>
 
418
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
419
<td> <code class="literal">TRUE</code> if the action and its associated action group 
 
420
are both visible.
 
421
 
 
422
</td>
 
423
</tr>
 
424
</tbody>
 
425
</table></div>
 
426
<p class="since">Since  2.4
 
427
</p>
 
428
</div>
 
429
<hr>
 
430
<div class="refsect2" lang="en">
 
431
<a name="id3437916"></a><h3>
 
432
<a name="gtk-action-get-visible"></a>gtk_action_get_visible ()</h3>
 
433
<a class="indexterm" name="id3437932"></a><pre class="programlisting">gboolean            gtk_action_get_visible              (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);</pre>
 
434
<p>
 
435
Returns whether the action itself is visible. Note that this doesn't 
 
436
necessarily mean effective visibility. See <a href="GtkAction.html#gtk-action-is-sensitive"><code class="function">gtk_action_is_sensitive()</code></a> 
 
437
for that.</p>
 
438
<p>
 
439
 
 
440
</p>
 
441
<div class="variablelist"><table border="0">
 
442
<col align="left" valign="top">
 
443
<tbody>
 
444
<tr>
 
445
<td><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></td>
 
446
<td> the action object
 
447
</td>
 
448
</tr>
 
449
<tr>
 
450
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
451
<td> <code class="literal">TRUE</code> if the action itself is visible.
 
452
 
 
453
</td>
 
454
</tr>
 
455
</tbody>
 
456
</table></div>
 
457
<p class="since">Since  2.4
 
458
</p>
 
459
</div>
 
460
<hr>
 
461
<div class="refsect2" lang="en">
 
462
<a name="id3438022"></a><h3>
 
463
<a name="gtk-action-set-visible"></a>gtk_action_set_visible ()</h3>
 
464
<a class="indexterm" name="id3438038"></a><pre class="programlisting">void                gtk_action_set_visible              (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action,
 
465
                                                         gboolean visible);</pre>
 
466
<p>
 
467
Sets the ::visible property of the action to <em class="parameter"><code>visible</code></em>. Note that 
 
468
this doesn't necessarily mean effective visibility. See 
 
469
<a href="GtkAction.html#gtk-action-is-visible"><code class="function">gtk_action_is_visible()</code></a> 
 
470
for that.</p>
 
471
<p>
 
472
 
 
473
</p>
 
474
<div class="variablelist"><table border="0">
 
475
<col align="left" valign="top">
 
476
<tbody>
 
477
<tr>
 
478
<td><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></td>
 
479
<td> the action object
 
480
</td>
 
481
</tr>
 
482
<tr>
 
483
<td><span class="term"><em class="parameter"><code>visible</code></em>&#160;:</span></td>
 
484
<td> <code class="literal">TRUE</code> to make the action visible
 
485
</td>
 
486
</tr>
 
487
</tbody>
 
488
</table></div>
 
489
<p class="since">Since  2.6
 
490
</p>
 
491
</div>
 
492
<hr>
 
493
<div class="refsect2" lang="en">
 
494
<a name="id3438146"></a><h3>
 
495
<a name="gtk-action-activate"></a>gtk_action_activate ()</h3>
 
496
<a class="indexterm" name="id3438161"></a><pre class="programlisting">void                gtk_action_activate                 (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);</pre>
 
497
<p>
 
498
Emits the "activate" signal on the specified action, if it isn't 
 
499
insensitive. This gets called by the proxy widgets when they get 
 
500
activated.
 
501
</p>
 
502
<p>
 
503
It can also be used to manually activate an action.</p>
 
504
<p>
 
505
 
 
506
</p>
 
507
<div class="variablelist"><table border="0">
 
508
<col align="left" valign="top">
 
509
<tbody><tr>
 
510
<td><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></td>
 
511
<td> the action object
 
512
</td>
 
513
</tr></tbody>
 
514
</table></div>
 
515
<p class="since">Since  2.4
 
516
</p>
 
517
</div>
 
518
<hr>
 
519
<div class="refsect2" lang="en">
 
520
<a name="id3438224"></a><h3>
 
521
<a name="gtk-action-create-icon"></a>gtk_action_create_icon ()</h3>
 
522
<a class="indexterm" name="id3438240"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_action_create_icon              (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action,
 
523
                                                         <a href="gtk-Themeable-Stock-Images.html#GtkIconSize">GtkIconSize</a> icon_size);</pre>
 
524
<p>
 
525
This function is intended for use by action implementations to
 
526
create icons displayed in the proxy widgets.</p>
 
527
<p>
 
528
 
 
529
</p>
 
530
<div class="variablelist"><table border="0">
 
531
<col align="left" valign="top">
 
532
<tbody>
 
533
<tr>
 
534
<td><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></td>
 
535
<td> the action object
 
536
</td>
 
537
</tr>
 
538
<tr>
 
539
<td><span class="term"><em class="parameter"><code>icon_size</code></em>&#160;:</span></td>
 
540
<td> the size of the icon that should be created.
 
541
</td>
 
542
</tr>
 
543
<tr>
 
544
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
545
<td> a widget that displays the icon for this action.
 
546
 
 
547
</td>
 
548
</tr>
 
549
</tbody>
 
550
</table></div>
 
551
<p class="since">Since  2.4
 
552
</p>
 
553
</div>
 
554
<hr>
 
555
<div class="refsect2" lang="en">
 
556
<a name="id3438332"></a><h3>
 
557
<a name="gtk-action-create-menu-item"></a>gtk_action_create_menu_item ()</h3>
 
558
<a class="indexterm" name="id3438348"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_action_create_menu_item         (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);</pre>
 
559
<p>
 
560
Creates a menu item widget that proxies for the given action.</p>
 
561
<p>
 
562
 
 
563
</p>
 
564
<div class="variablelist"><table border="0">
 
565
<col align="left" valign="top">
 
566
<tbody>
 
567
<tr>
 
568
<td><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></td>
 
569
<td> the action object
 
570
</td>
 
571
</tr>
 
572
<tr>
 
573
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
574
<td> a menu item connected to the action.
 
575
 
 
576
</td>
 
577
</tr>
 
578
</tbody>
 
579
</table></div>
 
580
<p class="since">Since  2.4
 
581
</p>
 
582
</div>
 
583
<hr>
 
584
<div class="refsect2" lang="en">
 
585
<a name="id3438416"></a><h3>
 
586
<a name="gtk-action-create-tool-item"></a>gtk_action_create_tool_item ()</h3>
 
587
<a class="indexterm" name="id3438432"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_action_create_tool_item         (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);</pre>
 
588
<p>
 
589
Creates a toolbar item widget that proxies for the given action.</p>
 
590
<p>
 
591
 
 
592
</p>
 
593
<div class="variablelist"><table border="0">
 
594
<col align="left" valign="top">
 
595
<tbody>
 
596
<tr>
 
597
<td><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></td>
 
598
<td> the action object
 
599
</td>
 
600
</tr>
 
601
<tr>
 
602
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
603
<td> a toolbar item connected to the action.
 
604
 
 
605
</td>
 
606
</tr>
 
607
</tbody>
 
608
</table></div>
 
609
<p class="since">Since  2.4
 
610
</p>
 
611
</div>
 
612
<hr>
 
613
<div class="refsect2" lang="en">
 
614
<a name="id3438500"></a><h3>
 
615
<a name="gtk-action-connect-proxy"></a>gtk_action_connect_proxy ()</h3>
 
616
<a class="indexterm" name="id3438516"></a><pre class="programlisting">void                gtk_action_connect_proxy            (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action,
 
617
                                                         <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *proxy);</pre>
 
618
<p>
 
619
Connects a widget to an action object as a proxy.  Synchronises 
 
620
various properties of the action with the widget (such as label 
 
621
text, icon, tooltip, etc), and attaches a callback so that the 
 
622
action gets activated when the proxy widget does.
 
623
</p>
 
624
<p>
 
625
If the widget is already connected to an action, it is disconnected
 
626
first.</p>
 
627
<p>
 
628
 
 
629
</p>
 
630
<div class="variablelist"><table border="0">
 
631
<col align="left" valign="top">
 
632
<tbody>
 
633
<tr>
 
634
<td><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></td>
 
635
<td> the action object
 
636
</td>
 
637
</tr>
 
638
<tr>
 
639
<td><span class="term"><em class="parameter"><code>proxy</code></em>&#160;:</span></td>
 
640
<td> the proxy widget
 
641
</td>
 
642
</tr>
 
643
</tbody>
 
644
</table></div>
 
645
<p class="since">Since  2.4
 
646
</p>
 
647
</div>
 
648
<hr>
 
649
<div class="refsect2" lang="en">
 
650
<a name="id3438603"></a><h3>
 
651
<a name="gtk-action-disconnect-proxy"></a>gtk_action_disconnect_proxy ()</h3>
 
652
<a class="indexterm" name="id3438619"></a><pre class="programlisting">void                gtk_action_disconnect_proxy         (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action,
 
653
                                                         <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *proxy);</pre>
 
654
<p>
 
655
Disconnects a proxy widget from an action.  
 
656
Does <span class="emphasis"><em>not</em></span> destroy the widget, however.</p>
 
657
<p>
 
658
 
 
659
</p>
 
660
<div class="variablelist"><table border="0">
 
661
<col align="left" valign="top">
 
662
<tbody>
 
663
<tr>
 
664
<td><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></td>
 
665
<td> the action object
 
666
</td>
 
667
</tr>
 
668
<tr>
 
669
<td><span class="term"><em class="parameter"><code>proxy</code></em>&#160;:</span></td>
 
670
<td> the proxy widget
 
671
</td>
 
672
</tr>
 
673
</tbody>
 
674
</table></div>
 
675
<p class="since">Since  2.4
 
676
</p>
 
677
</div>
 
678
<hr>
 
679
<div class="refsect2" lang="en">
 
680
<a name="id3438702"></a><h3>
 
681
<a name="gtk-action-get-proxies"></a>gtk_action_get_proxies ()</h3>
 
682
<a class="indexterm" name="id3438717"></a><pre class="programlisting">GSList*             gtk_action_get_proxies              (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);</pre>
 
683
<p>
 
684
Returns the proxy widgets for an action.
 
685
See also <a href="GtkWidget.html#gtk-widget-get-action"><code class="function">gtk_widget_get_action()</code></a>.</p>
 
686
<p>
 
687
 
 
688
</p>
 
689
<div class="variablelist"><table border="0">
 
690
<col align="left" valign="top">
 
691
<tbody>
 
692
<tr>
 
693
<td><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></td>
 
694
<td> the action object
 
695
</td>
 
696
</tr>
 
697
<tr>
 
698
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
699
<td> a <span class="type">GSList</span> of proxy widgets. The list is owned by GTK+
 
700
and must not be modified.
 
701
 
 
702
</td>
 
703
</tr>
 
704
</tbody>
 
705
</table></div>
 
706
<p class="since">Since  2.4
 
707
</p>
 
708
</div>
 
709
<hr>
 
710
<div class="refsect2" lang="en">
 
711
<a name="id3438806"></a><h3>
 
712
<a name="gtk-action-connect-accelerator"></a>gtk_action_connect_accelerator ()</h3>
 
713
<a class="indexterm" name="id3438822"></a><pre class="programlisting">void                gtk_action_connect_accelerator      (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);</pre>
 
714
<p>
 
715
Installs the accelerator for <em class="parameter"><code>action</code></em> if <em class="parameter"><code>action</code></em> has an
 
716
accel path and group. See <a href="GtkAction.html#gtk-action-set-accel-path"><code class="function">gtk_action_set_accel_path()</code></a> and 
 
717
<a href="GtkAction.html#gtk-action-set-accel-group"><code class="function">gtk_action_set_accel_group()</code></a>
 
718
</p>
 
719
<p>
 
720
Since multiple proxies may independently trigger the installation
 
721
of the accelerator, the <em class="parameter"><code>action</code></em> counts the number of times this
 
722
function has been called and doesn't remove the accelerator until
 
723
<a href="GtkAction.html#gtk-action-disconnect-accelerator"><code class="function">gtk_action_disconnect_accelerator()</code></a> has been called as many times.</p>
 
724
<p>
 
725
 
 
726
</p>
 
727
<div class="variablelist"><table border="0">
 
728
<col align="left" valign="top">
 
729
<tbody><tr>
 
730
<td><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></td>
 
731
<td> a <a href="GtkAction.html" title="GtkAction"><span class="type">GtkAction</span></a>
 
732
</td>
 
733
</tr></tbody>
 
734
</table></div>
 
735
<p class="since">Since  2.4
 
736
</p>
 
737
</div>
 
738
<hr>
 
739
<div class="refsect2" lang="en">
 
740
<a name="id3438946"></a><h3>
 
741
<a name="gtk-action-disconnect-accelerator"></a>gtk_action_disconnect_accelerator ()</h3>
 
742
<a class="indexterm" name="id3438961"></a><pre class="programlisting">void                gtk_action_disconnect_accelerator   (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);</pre>
 
743
<p>
 
744
Undoes the effect of one call to <a href="GtkAction.html#gtk-action-connect-accelerator"><code class="function">gtk_action_connect_accelerator()</code></a>.</p>
 
745
<p>
 
746
 
 
747
</p>
 
748
<div class="variablelist"><table border="0">
 
749
<col align="left" valign="top">
 
750
<tbody><tr>
 
751
<td><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></td>
 
752
<td> a <a href="GtkAction.html" title="GtkAction"><span class="type">GtkAction</span></a>
 
753
</td>
 
754
</tr></tbody>
 
755
</table></div>
 
756
<p class="since">Since  2.4
 
757
</p>
 
758
</div>
 
759
<hr>
 
760
<div class="refsect2" lang="en">
 
761
<a name="id3439037"></a><h3>
 
762
<a name="gtk-action-block-activate-from"></a>gtk_action_block_activate_from ()</h3>
 
763
<a class="indexterm" name="id3439053"></a><pre class="programlisting">void                gtk_action_block_activate_from      (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action,
 
764
                                                         <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *proxy);</pre>
 
765
<p>
 
766
Disables calls to the <a href="GtkAction.html#gtk-action-activate"><code class="function">gtk_action_activate()</code></a>
 
767
function by signals on the given proxy widget.  This is used to
 
768
break notification loops for things like check or radio actions.
 
769
</p>
 
770
<p>
 
771
This function is intended for use by action implementations.</p>
 
772
<p>
 
773
 
 
774
</p>
 
775
<div class="variablelist"><table border="0">
 
776
<col align="left" valign="top">
 
777
<tbody>
 
778
<tr>
 
779
<td><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></td>
 
780
<td> the action object
 
781
</td>
 
782
</tr>
 
783
<tr>
 
784
<td><span class="term"><em class="parameter"><code>proxy</code></em>&#160;:</span></td>
 
785
<td> a proxy widget
 
786
</td>
 
787
</tr>
 
788
</tbody>
 
789
</table></div>
 
790
<p class="since">Since  2.4
 
791
</p>
 
792
</div>
 
793
<hr>
 
794
<div class="refsect2" lang="en">
 
795
<a name="id3439149"></a><h3>
 
796
<a name="gtk-action-unblock-activate-from"></a>gtk_action_unblock_activate_from ()</h3>
 
797
<a class="indexterm" name="id3439165"></a><pre class="programlisting">void                gtk_action_unblock_activate_from    (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action,
 
798
                                                         <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *proxy);</pre>
 
799
<p>
 
800
Re-enables calls to the <a href="GtkAction.html#gtk-action-activate"><code class="function">gtk_action_activate()</code></a>
 
801
function by signals on the given proxy widget.  This undoes the
 
802
blocking done by <a href="GtkAction.html#gtk-action-block-activate-from"><code class="function">gtk_action_block_activate_from()</code></a>.
 
803
</p>
 
804
<p>
 
805
This function is intended for use by action implementations.</p>
 
806
<p>
 
807
 
 
808
</p>
 
809
<div class="variablelist"><table border="0">
 
810
<col align="left" valign="top">
 
811
<tbody>
 
812
<tr>
 
813
<td><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></td>
 
814
<td> the action object
 
815
</td>
 
816
</tr>
 
817
<tr>
 
818
<td><span class="term"><em class="parameter"><code>proxy</code></em>&#160;:</span></td>
 
819
<td> a proxy widget
 
820
</td>
 
821
</tr>
 
822
</tbody>
 
823
</table></div>
 
824
<p class="since">Since  2.4
 
825
</p>
 
826
</div>
 
827
<hr>
 
828
<div class="refsect2" lang="en">
 
829
<a name="id3439271"></a><h3>
 
830
<a name="gtk-action-get-accel-path"></a>gtk_action_get_accel_path ()</h3>
 
831
<a class="indexterm" name="id3439288"></a><pre class="programlisting">const gchar*        gtk_action_get_accel_path           (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);</pre>
 
832
<p>
 
833
Returns the accel path for this action.</p>
 
834
<p>
 
835
 
 
836
</p>
 
837
<div class="variablelist"><table border="0">
 
838
<col align="left" valign="top">
 
839
<tbody>
 
840
<tr>
 
841
<td><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></td>
 
842
<td> the action object
 
843
</td>
 
844
</tr>
 
845
<tr>
 
846
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
847
<td> the accel path for this action, or <a
 
848
href="../liboil/liboil-liboiljunk.html#NULL:CAPS"
 
849
><code class="literal">NULL</code></a>
 
850
  if none is set. The returned string is owned by GTK+ 
 
851
  and must not be freed or modified.
 
852
</td>
 
853
</tr>
 
854
</tbody>
 
855
</table></div>
 
856
<p class="since">Since  2.6
 
857
 
 
858
</p>
 
859
</div>
 
860
<hr>
 
861
<div class="refsect2" lang="en">
 
862
<a name="id3439368"></a><h3>
 
863
<a name="gtk-action-set-accel-path"></a>gtk_action_set_accel_path ()</h3>
 
864
<a class="indexterm" name="id3439385"></a><pre class="programlisting">void                gtk_action_set_accel_path           (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action,
 
865
                                                         const gchar *accel_path);</pre>
 
866
<p>
 
867
Sets the accel path for this action.  All proxy widgets associated
 
868
with the action will have this accel path, so that their
 
869
accelerators are consistent.</p>
 
870
<p>
 
871
 
 
872
</p>
 
873
<div class="variablelist"><table border="0">
 
874
<col align="left" valign="top">
 
875
<tbody>
 
876
<tr>
 
877
<td><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></td>
 
878
<td> the action object
 
879
</td>
 
880
</tr>
 
881
<tr>
 
882
<td><span class="term"><em class="parameter"><code>accel_path</code></em>&#160;:</span></td>
 
883
<td> the accelerator path
 
884
</td>
 
885
</tr>
 
886
</tbody>
 
887
</table></div>
 
888
<p class="since">Since  2.4
 
889
</p>
 
890
</div>
 
891
<hr>
 
892
<div class="refsect2" lang="en">
 
893
<a name="id3439465"></a><h3>
 
894
<a name="gtk-action-get-accel-closure"></a>gtk_action_get_accel_closure ()</h3>
 
895
<a class="indexterm" name="id3439481"></a><pre class="programlisting">GClosure*           gtk_action_get_accel_closure        (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action);</pre>
 
896
<p>
 
897
Returns the accel closure for this action.</p>
 
898
<p>
 
899
 
 
900
</p>
 
901
<div class="variablelist"><table border="0">
 
902
<col align="left" valign="top">
 
903
<tbody>
 
904
<tr>
 
905
<td><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></td>
 
906
<td> the action object
 
907
</td>
 
908
</tr>
 
909
<tr>
 
910
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
911
<td> the accel closure for this action. The returned closure is
 
912
         owned by GTK+ and must not be unreffed or modified.
 
913
</td>
 
914
</tr>
 
915
</tbody>
 
916
</table></div>
 
917
<p class="since">Since  2.8
 
918
 
 
919
</p>
 
920
</div>
 
921
<hr>
 
922
<div class="refsect2" lang="en">
 
923
<a name="id3439551"></a><h3>
 
924
<a name="gtk-action-set-accel-group"></a>gtk_action_set_accel_group ()</h3>
 
925
<a class="indexterm" name="id3439567"></a><pre class="programlisting">void                gtk_action_set_accel_group          (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action,
 
926
                                                         <a href="gtk-Keyboard-Accelerators.html#GtkAccelGroup">GtkAccelGroup</a> *accel_group);</pre>
 
927
<p>
 
928
Sets the <a href="gtk-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> in which the accelerator for this action
 
929
will be installed.</p>
 
930
<p>
 
931
 
 
932
</p>
 
933
<div class="variablelist"><table border="0">
 
934
<col align="left" valign="top">
 
935
<tbody>
 
936
<tr>
 
937
<td><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></td>
 
938
<td> the action object
 
939
</td>
 
940
</tr>
 
941
<tr>
 
942
<td><span class="term"><em class="parameter"><code>accel_group</code></em>&#160;:</span></td>
 
943
<td> a <a href="gtk-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> or <a
 
944
href="../liboil/liboil-liboiljunk.html#NULL:CAPS"
 
945
><code class="literal">NULL</code></a>
 
946
</td>
 
947
</tr>
 
948
</tbody>
 
949
</table></div>
 
950
<p class="since">Since  2.4
 
951
</p>
 
952
</div>
 
953
</div>
 
954
<div class="refsect1" lang="en">
 
955
<a name="id3439674"></a><h2>Property Details</h2>
 
956
<div class="refsect2" lang="en">
 
957
<a name="id3439684"></a><h3>
 
958
<a name="GtkAction--action-group"></a>The "<code class="literal">action-group</code>" property</h3>
 
959
<a class="indexterm" name="id3439701"></a><pre class="programlisting">  "action-group"             <a href="GtkActionGroup.html" title="GtkActionGroup">GtkActionGroup</a>        : Read / Write</pre>
 
960
<p>The GtkActionGroup this GtkAction is associated with, or NULL (for internal use).</p>
 
961
</div>
 
962
<hr>
 
963
<div class="refsect2" lang="en">
 
964
<a name="id3439725"></a><h3>
 
965
<a name="GtkAction--hide-if-empty"></a>The "<code class="literal">hide-if-empty</code>" property</h3>
 
966
<a class="indexterm" name="id3439742"></a><pre class="programlisting">  "hide-if-empty"            gboolean              : Read / Write</pre>
 
967
<p>When TRUE, empty menu proxies for this action are hidden.</p>
 
968
<p>Default value: TRUE</p>
 
969
</div>
 
970
<hr>
 
971
<div class="refsect2" lang="en">
 
972
<a name="id3439769"></a><h3>
 
973
<a name="GtkAction--icon-name"></a>The "<code class="literal">icon-name</code>" property</h3>
 
974
<a class="indexterm" name="id3439786"></a><pre class="programlisting">  "icon-name"                gchararray            : Read / Write</pre>
 
975
<p>
 
976
The name of the icon from the icon theme. 
 
977
Note that the stock icon is preferred, if
 
978
the ::stock-id property holds the id of an
 
979
existing stock icon.</p>
 
980
<p>
 
981
 
 
982
</p>
 
983
<p>Default value: NULL</p>
 
984
<p>Since  2.10
 
985
</p>
 
986
</div>
 
987
<hr>
 
988
<div class="refsect2" lang="en">
 
989
<a name="id3439823"></a><h3>
 
990
<a name="GtkAction--is-important"></a>The "<code class="literal">is-important</code>" property</h3>
 
991
<a class="indexterm" name="id3439839"></a><pre class="programlisting">  "is-important"             gboolean              : Read / Write</pre>
 
992
<p>Whether the action is considered important. When TRUE, toolitem proxies for this action show text in GTK_TOOLBAR_BOTH_HORIZ mode.</p>
 
993
<p>Default value: FALSE</p>
 
994
</div>
 
995
<hr>
 
996
<div class="refsect2" lang="en">
 
997
<a name="id3439867"></a><h3>
 
998
<a name="GtkAction--label"></a>The "<code class="literal">label</code>" property</h3>
 
999
<a class="indexterm" name="id3439883"></a><pre class="programlisting">  "label"                    gchararray            : Read / Write</pre>
 
1000
<p>The label used for menu items and buttons that activate this action.</p>
 
1001
<p>Default value: NULL</p>
 
1002
</div>
 
1003
<hr>
 
1004
<div class="refsect2" lang="en">
 
1005
<a name="id3439911"></a><h3>
 
1006
<a name="GtkAction--name"></a>The "<code class="literal">name</code>" property</h3>
 
1007
<a class="indexterm" name="id3439927"></a><pre class="programlisting">  "name"                     gchararray            : Read / Write / Construct Only</pre>
 
1008
<p>A unique name for the action.</p>
 
1009
<p>Default value: NULL</p>
 
1010
</div>
 
1011
<hr>
 
1012
<div class="refsect2" lang="en">
 
1013
<a name="id3439955"></a><h3>
 
1014
<a name="GtkAction--sensitive"></a>The "<code class="literal">sensitive</code>" property</h3>
 
1015
<a class="indexterm" name="id3439971"></a><pre class="programlisting">  "sensitive"                gboolean              : Read / Write</pre>
 
1016
<p>Whether the action is enabled.</p>
 
1017
<p>Default value: TRUE</p>
 
1018
</div>
 
1019
<hr>
 
1020
<div class="refsect2" lang="en">
 
1021
<a name="id3439998"></a><h3>
 
1022
<a name="GtkAction--short-label"></a>The "<code class="literal">short-label</code>" property</h3>
 
1023
<a class="indexterm" name="id3440014"></a><pre class="programlisting">  "short-label"              gchararray            : Read / Write</pre>
 
1024
<p>A shorter label that may be used on toolbar buttons.</p>
 
1025
<p>Default value: NULL</p>
 
1026
</div>
 
1027
<hr>
 
1028
<div class="refsect2" lang="en">
 
1029
<a name="id3440040"></a><h3>
 
1030
<a name="GtkAction--stock-id"></a>The "<code class="literal">stock-id</code>" property</h3>
 
1031
<a class="indexterm" name="id3440056"></a><pre class="programlisting">  "stock-id"                 gchararray            : Read / Write</pre>
 
1032
<p>The stock icon displayed in widgets representing this action.</p>
 
1033
<p>Default value: NULL</p>
 
1034
</div>
 
1035
<hr>
 
1036
<div class="refsect2" lang="en">
 
1037
<a name="id3440083"></a><h3>
 
1038
<a name="GtkAction--tooltip"></a>The "<code class="literal">tooltip</code>" property</h3>
 
1039
<a class="indexterm" name="id3440099"></a><pre class="programlisting">  "tooltip"                  gchararray            : Read / Write</pre>
 
1040
<p>A tooltip for this action.</p>
 
1041
<p>Default value: NULL</p>
 
1042
</div>
 
1043
<hr>
 
1044
<div class="refsect2" lang="en">
 
1045
<a name="id3440125"></a><h3>
 
1046
<a name="GtkAction--visible"></a>The "<code class="literal">visible</code>" property</h3>
 
1047
<a class="indexterm" name="id3440142"></a><pre class="programlisting">  "visible"                  gboolean              : Read / Write</pre>
 
1048
<p>Whether the action is visible.</p>
 
1049
<p>Default value: TRUE</p>
 
1050
</div>
 
1051
<hr>
 
1052
<div class="refsect2" lang="en">
 
1053
<a name="id3440168"></a><h3>
 
1054
<a name="GtkAction--visible-horizontal"></a>The "<code class="literal">visible-horizontal</code>" property</h3>
 
1055
<a class="indexterm" name="id3440185"></a><pre class="programlisting">  "visible-horizontal"       gboolean              : Read / Write</pre>
 
1056
<p>Whether the toolbar item is visible when the toolbar is in a horizontal orientation.</p>
 
1057
<p>Default value: TRUE</p>
 
1058
</div>
 
1059
<hr>
 
1060
<div class="refsect2" lang="en">
 
1061
<a name="id3440213"></a><h3>
 
1062
<a name="GtkAction--visible-overflown"></a>The "<code class="literal">visible-overflown</code>" property</h3>
 
1063
<a class="indexterm" name="id3440230"></a><pre class="programlisting">  "visible-overflown"        gboolean              : Read / Write</pre>
 
1064
<p>
 
1065
When <code class="literal">TRUE</code>, toolitem proxies for this action are represented in the 
 
1066
toolbar overflow menu.</p>
 
1067
<p>
 
1068
 
 
1069
</p>
 
1070
<p>Default value: TRUE</p>
 
1071
<p>Since  2.6
 
1072
</p>
 
1073
</div>
 
1074
<hr>
 
1075
<div class="refsect2" lang="en">
 
1076
<a name="id3440276"></a><h3>
 
1077
<a name="GtkAction--visible-vertical"></a>The "<code class="literal">visible-vertical</code>" property</h3>
 
1078
<a class="indexterm" name="id3440293"></a><pre class="programlisting">  "visible-vertical"         gboolean              : Read / Write</pre>
 
1079
<p>Whether the toolbar item is visible when the toolbar is in a vertical orientation.</p>
 
1080
<p>Default value: TRUE</p>
 
1081
</div>
 
1082
</div>
 
1083
<div class="refsect1" lang="en">
 
1084
<a name="id3440322"></a><h2>Signal Details</h2>
 
1085
<div class="refsect2" lang="en">
 
1086
<a name="id3440332"></a><h3>
 
1087
<a name="GtkAction-activate"></a>The "activate" signal</h3>
 
1088
<a class="indexterm" name="id3440342"></a><pre class="programlisting">void                user_function                      (<a href="GtkAction.html" title="GtkAction">GtkAction</a> *action,
 
1089
                                                        gpointer   user_data)      : Run First / No Recursion</pre>
 
1090
<p>
 
1091
The "activate" signal is emitted when the action is activated.</p>
 
1092
<p>
 
1093
 
 
1094
</p>
 
1095
<div class="variablelist"><table border="0">
 
1096
<col align="left" valign="top">
 
1097
<tbody>
 
1098
<tr>
 
1099
<td><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></td>
 
1100
<td> the <a href="GtkAction.html" title="GtkAction"><span class="type">GtkAction</span></a>
 
1101
</td>
 
1102
</tr>
 
1103
<tr>
 
1104
<td><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
 
1105
<td>user data set when the signal handler was connected.</td>
 
1106
</tr>
 
1107
</tbody>
 
1108
</table></div>
 
1109
<p>Since  2.4
 
1110
</p>
 
1111
</div>
 
1112
</div>
 
1113
<div class="refsect1" lang="en">
 
1114
<a name="id3440429"></a><h2>See Also</h2>
 
1115
<p>
 
1116
<a href="GtkActionGroup.html" title="GtkActionGroup"><span class="type">GtkActionGroup</span></a>, <a href="GtkUIManager.html" title="GtkUIManager"><span class="type">GtkUIManager</span></a>
 
1117
</p>
 
1118
</div>
 
1119
</div>
 
1120
</body>
 
1121
</html>