~ubuntu-branches/ubuntu/trusty/gtk+2.0/trusty

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2013-03-25 19:44:15 UTC
  • mfrom: (1.14.18)
  • Revision ID: package-import@ubuntu.com-20130325194415-47ki11je5se76gim
Tags: 2.24.17-0ubuntu1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
#include <gtk/gtk.h>
48
48
 
49
49
struct              <a class="link" href="GtkRecentAction.html#GtkRecentAction-struct" title="struct GtkRecentAction">GtkRecentAction</a>;
50
 
<a class="link" href="GtkAction.html" title="GtkAction"><span class="returnvalue">GtkAction</span></a> *         <a class="link" href="GtkRecentAction.html#gtk-recent-action-new" title="gtk_recent_action_new ()">gtk_recent_action_new</a>               (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
51
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *label</code></em>,
52
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *tooltip</code></em>,
53
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *stock_id</code></em>);
54
 
<a class="link" href="GtkAction.html" title="GtkAction"><span class="returnvalue">GtkAction</span></a> *         <a class="link" href="GtkRecentAction.html#gtk-recent-action-new-for-manager" title="gtk_recent_action_new_for_manager ()">gtk_recent_action_new_for_manager</a>   (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
55
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *label</code></em>,
56
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *tooltip</code></em>,
57
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *stock_id</code></em>,
 
50
<a class="link" href="GtkAction.html" title="GtkAction"><span class="returnvalue">GtkAction</span></a> *         <a class="link" href="GtkRecentAction.html#gtk-recent-action-new" title="gtk_recent_action_new ()">gtk_recent_action_new</a>               (<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
 
51
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *label</code></em>,
 
52
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *tooltip</code></em>,
 
53
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *stock_id</code></em>);
 
54
<a class="link" href="GtkAction.html" title="GtkAction"><span class="returnvalue">GtkAction</span></a> *         <a class="link" href="GtkRecentAction.html#gtk-recent-action-new-for-manager" title="gtk_recent_action_new_for_manager ()">gtk_recent_action_new_for_manager</a>   (<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
 
55
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *label</code></em>,
 
56
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *tooltip</code></em>,
 
57
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *stock_id</code></em>,
58
58
                                                         <em class="parameter"><code><a class="link" href="GtkRecentManager.html" title="GtkRecentManager"><span class="type">GtkRecentManager</span></a> *manager</code></em>);
59
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkRecentAction.html#gtk-recent-action-get-show-numbers" title="gtk_recent_action_get_show_numbers ()">gtk_recent_action_get_show_numbers</a>  (<em class="parameter"><code><a class="link" href="GtkRecentAction.html" title="GtkRecentAction"><span class="type">GtkRecentAction</span></a> *action</code></em>);
 
59
<span class="returnvalue">gboolean</span>            <a class="link" href="GtkRecentAction.html#gtk-recent-action-get-show-numbers" title="gtk_recent_action_get_show_numbers ()">gtk_recent_action_get_show_numbers</a>  (<em class="parameter"><code><a class="link" href="GtkRecentAction.html" title="GtkRecentAction"><span class="type">GtkRecentAction</span></a> *action</code></em>);
60
60
<span class="returnvalue">void</span>                <a class="link" href="GtkRecentAction.html#gtk-recent-action-set-show-numbers" title="gtk_recent_action_set_show_numbers ()">gtk_recent_action_set_show_numbers</a>  (<em class="parameter"><code><a class="link" href="GtkRecentAction.html" title="GtkRecentAction"><span class="type">GtkRecentAction</span></a> *action</code></em>,
61
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> show_numbers</code></em>);
 
61
                                                         <em class="parameter"><code><span class="type">gboolean</span> show_numbers</code></em>);
62
62
</pre>
63
63
</div>
64
64
<div class="refsect1">
65
65
<a name="GtkRecentAction.object-hierarchy"></a><h2>Object Hierarchy</h2>
66
66
<pre class="synopsis">
67
 
  <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
 
67
  GObject
68
68
   +----<a class="link" href="GtkAction.html" title="GtkAction">GtkAction</a>
69
69
         +----GtkRecentAction
70
70
</pre>
78
78
<div class="refsect1">
79
79
<a name="GtkRecentAction.properties"></a><h2>Properties</h2>
80
80
<pre class="synopsis">
81
 
  "<a class="link" href="GtkRecentAction.html#GtkRecentAction--show-numbers" title='The "show-numbers" property'>show-numbers</a>"             <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write
 
81
  "<a class="link" href="GtkRecentAction.html#GtkRecentAction--show-numbers" title='The "show-numbers" property'>show-numbers</a>"             <span class="type">gboolean</span>              : Read / Write
82
82
</pre>
83
83
</div>
84
84
<div class="refsect1">
106
106
<hr>
107
107
<div class="refsect2">
108
108
<a name="gtk-recent-action-new"></a><h3>gtk_recent_action_new ()</h3>
109
 
<pre class="programlisting"><a class="link" href="GtkAction.html" title="GtkAction"><span class="returnvalue">GtkAction</span></a> *         gtk_recent_action_new               (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
110
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *label</code></em>,
111
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *tooltip</code></em>,
112
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *stock_id</code></em>);</pre>
 
109
<pre class="programlisting"><a class="link" href="GtkAction.html" title="GtkAction"><span class="returnvalue">GtkAction</span></a> *         gtk_recent_action_new               (<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
 
110
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *label</code></em>,
 
111
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *tooltip</code></em>,
 
112
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *stock_id</code></em>);</pre>
113
113
<p>
114
114
Creates a new <a class="link" href="GtkRecentAction.html" title="GtkRecentAction"><span class="type">GtkRecentAction</span></a> object. To add the action to
115
115
a <a class="link" href="GtkActionGroup.html" title="GtkActionGroup"><span class="type">GtkActionGroup</span></a> and set the accelerator for the action,
127
127
</tr>
128
128
<tr>
129
129
<td><p><span class="term"><em class="parameter"><code>label</code></em> :</span></p></td>
130
 
<td>the label displayed in menu items and on buttons, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
130
<td>the label displayed in menu items and on buttons, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
131
131
</td>
132
132
</tr>
133
133
<tr>
134
134
<td><p><span class="term"><em class="parameter"><code>tooltip</code></em> :</span></p></td>
135
 
<td>a tooltip for the action, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
135
<td>a tooltip for the action, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
136
136
</td>
137
137
</tr>
138
138
<tr>
139
139
<td><p><span class="term"><em class="parameter"><code>stock_id</code></em> :</span></p></td>
140
140
<td>the stock icon to display in widgets representing the
141
 
action, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
 
141
action, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>
142
142
</td>
143
143
</tr>
144
144
<tr>
152
152
<hr>
153
153
<div class="refsect2">
154
154
<a name="gtk-recent-action-new-for-manager"></a><h3>gtk_recent_action_new_for_manager ()</h3>
155
 
<pre class="programlisting"><a class="link" href="GtkAction.html" title="GtkAction"><span class="returnvalue">GtkAction</span></a> *         gtk_recent_action_new_for_manager   (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
156
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *label</code></em>,
157
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *tooltip</code></em>,
158
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *stock_id</code></em>,
 
155
<pre class="programlisting"><a class="link" href="GtkAction.html" title="GtkAction"><span class="returnvalue">GtkAction</span></a> *         gtk_recent_action_new_for_manager   (<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
 
156
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *label</code></em>,
 
157
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *tooltip</code></em>,
 
158
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *stock_id</code></em>,
159
159
                                                         <em class="parameter"><code><a class="link" href="GtkRecentManager.html" title="GtkRecentManager"><span class="type">GtkRecentManager</span></a> *manager</code></em>);</pre>
160
160
<p>
161
161
Creates a new <a class="link" href="GtkRecentAction.html" title="GtkRecentAction"><span class="type">GtkRecentAction</span></a> object. To add the action to
174
174
</tr>
175
175
<tr>
176
176
<td><p><span class="term"><em class="parameter"><code>label</code></em> :</span></p></td>
177
 
<td>the label displayed in menu items and on buttons, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
177
<td>the label displayed in menu items and on buttons, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
178
178
</td>
179
179
</tr>
180
180
<tr>
181
181
<td><p><span class="term"><em class="parameter"><code>tooltip</code></em> :</span></p></td>
182
 
<td>a tooltip for the action, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
182
<td>a tooltip for the action, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
183
183
</td>
184
184
</tr>
185
185
<tr>
186
186
<td><p><span class="term"><em class="parameter"><code>stock_id</code></em> :</span></p></td>
187
187
<td>the stock icon to display in widgets representing the
188
 
action, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
 
188
action, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>
189
189
</td>
190
190
</tr>
191
191
<tr>
192
192
<td><p><span class="term"><em class="parameter"><code>manager</code></em> :</span></p></td>
193
 
<td>a <a class="link" href="GtkRecentManager.html" title="GtkRecentManager"><span class="type">GtkRecentManager</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for using the default
 
193
<td>a <a class="link" href="GtkRecentManager.html" title="GtkRecentManager"><span class="type">GtkRecentManager</span></a>, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> for using the default
194
194
<a class="link" href="GtkRecentManager.html" title="GtkRecentManager"><span class="type">GtkRecentManager</span></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
195
195
</td>
196
196
</tr>
206
206
<hr>
207
207
<div class="refsect2">
208
208
<a name="gtk-recent-action-get-show-numbers"></a><h3>gtk_recent_action_get_show_numbers ()</h3>
209
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_recent_action_get_show_numbers  (<em class="parameter"><code><a class="link" href="GtkRecentAction.html" title="GtkRecentAction"><span class="type">GtkRecentAction</span></a> *action</code></em>);</pre>
 
209
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gtk_recent_action_get_show_numbers  (<em class="parameter"><code><a class="link" href="GtkRecentAction.html" title="GtkRecentAction"><span class="type">GtkRecentAction</span></a> *action</code></em>);</pre>
210
210
<p>
211
211
Returns the value set by <a class="link" href="GtkRecentChooserMenu.html#gtk-recent-chooser-menu-set-show-numbers" title="gtk_recent_chooser_menu_set_show_numbers ()"><code class="function">gtk_recent_chooser_menu_set_show_numbers()</code></a>.
212
212
</p>
224
224
<tr>
225
225
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
226
226
<td>
227
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if numbers should be shown.</td>
 
227
<code class="literal">TRUE</code> if numbers should be shown.</td>
228
228
</tr>
229
229
</tbody>
230
230
</table></div>
234
234
<div class="refsect2">
235
235
<a name="gtk-recent-action-set-show-numbers"></a><h3>gtk_recent_action_set_show_numbers ()</h3>
236
236
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_recent_action_set_show_numbers  (<em class="parameter"><code><a class="link" href="GtkRecentAction.html" title="GtkRecentAction"><span class="type">GtkRecentAction</span></a> *action</code></em>,
237
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> show_numbers</code></em>);</pre>
 
237
                                                         <em class="parameter"><code><span class="type">gboolean</span> show_numbers</code></em>);</pre>
238
238
<p>
239
239
Sets whether a number should be added to the items shown by the
240
240
widgets representing <em class="parameter"><code>action</code></em>. The numbers are shown to provide
255
255
<tr>
256
256
<td><p><span class="term"><em class="parameter"><code>show_numbers</code></em> :</span></p></td>
257
257
<td>
258
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the shown items should be numbered</td>
 
258
<code class="literal">TRUE</code> if the shown items should be numbered</td>
259
259
</tr>
260
260
</tbody>
261
261
</table></div>
266
266
<a name="GtkRecentAction.property-details"></a><h2>Property Details</h2>
267
267
<div class="refsect2">
268
268
<a name="GtkRecentAction--show-numbers"></a><h3>The <code class="literal">"show-numbers"</code> property</h3>
269
 
<pre class="programlisting">  "show-numbers"             <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write</pre>
 
269
<pre class="programlisting">  "show-numbers"             <span class="type">gboolean</span>              : Read / Write</pre>
270
270
<p>Whether the items should be displayed with a number.</p>
271
271
<p>Default value: FALSE</p>
272
272
</div>