47
47
#include <gtk/gtk.h>
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>);
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>
68
68
+----<a class="link" href="GtkAction.html" title="GtkAction">GtkAction</a>
69
69
+----GtkRecentAction
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>
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,
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>.
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>
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
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>