New upstream version 3.22.28

This commit is contained in:
Jeremy Bicha
2018-02-15 04:41:25 -05:00
652 changed files with 498643 additions and 49781 deletions

View File

@ -8,7 +8,7 @@
<link rel="up" href="Application.html" title="Application support">
<link rel="prev" href="Application.html" title="Application support">
<link rel="next" href="GtkApplicationWindow.html" title="GtkApplicationWindow">
<meta name="generator" content="GTK-Doc V1.25.1 (XML mode)">
<meta name="generator" content="GTK-Doc V1.27 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
@ -69,7 +69,7 @@
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
<span class="returnvalue">GList</span> *
</td>
<td class="function_name">
<a class="link" href="GtkApplication.html#gtk-application-get-windows" title="gtk_application_get_windows ()">gtk_application_get_windows</a> <span class="c_punctuation">()</span>
@ -93,7 +93,7 @@
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
<span class="returnvalue">guint</span>
</td>
<td class="function_name">
<a class="link" href="GtkApplication.html#gtk-application-inhibit" title="gtk_application_inhibit ()">gtk_application_inhibit</a> <span class="c_punctuation">()</span>
@ -109,7 +109,7 @@
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GtkApplication.html#gtk-application-is-inhibited" title="gtk_application_is_inhibited ()">gtk_application_is_inhibited</a> <span class="c_punctuation">()</span>
@ -117,7 +117,7 @@
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GtkApplication.html#gtk-application-prefers-app-menu" title="gtk_application_prefers_app_menu ()">gtk_application_prefers_app_menu</a> <span class="c_punctuation">()</span>
@ -125,7 +125,7 @@
</tr>
<tr>
<td class="function_type">
<a href="../gio/GMenuModel.html#GMenuModel-struct"><span class="returnvalue">GMenuModel</span></a> *
<span class="returnvalue">GMenuModel</span> *
</td>
<td class="function_name">
<a class="link" href="GtkApplication.html#gtk-application-get-app-menu" title="gtk_application_get_app_menu ()">gtk_application_get_app_menu</a> <span class="c_punctuation">()</span>
@ -141,7 +141,7 @@
</tr>
<tr>
<td class="function_type">
<a href="../gio/GMenuModel.html#GMenuModel-struct"><span class="returnvalue">GMenuModel</span></a> *
<span class="returnvalue">GMenuModel</span> *
</td>
<td class="function_name">
<a class="link" href="GtkApplication.html#gtk-application-get-menubar" title="gtk_application_get_menubar ()">gtk_application_get_menubar</a> <span class="c_punctuation">()</span>
@ -157,7 +157,7 @@
</tr>
<tr>
<td class="function_type">
<a href="../gio/GMenu.html#GMenu-struct"><span class="returnvalue">GMenu</span></a> *
<span class="returnvalue">GMenu</span> *
</td>
<td class="function_name">
<a class="link" href="GtkApplication.html#gtk-application-get-menu-by-id" title="gtk_application_get_menu_by_id ()">gtk_application_get_menu_by_id</a> <span class="c_punctuation">()</span>
@ -181,7 +181,7 @@
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> **
<span class="returnvalue">gchar</span> **
</td>
<td class="function_name">
<a class="link" href="GtkApplication.html#gtk-application-list-action-descriptions" title="gtk_application_list_action_descriptions ()">gtk_application_list_action_descriptions</a> <span class="c_punctuation">()</span>
@ -189,7 +189,7 @@
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> **
<span class="returnvalue">gchar</span> **
</td>
<td class="function_name">
<a class="link" href="GtkApplication.html#gtk-application-get-accels-for-action" title="gtk_application_get_accels_for_action ()">gtk_application_get_accels_for_action</a> <span class="c_punctuation">()</span>
@ -205,7 +205,7 @@
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> **
<span class="returnvalue">gchar</span> **
</td>
<td class="function_name">
<a class="link" href="GtkApplication.html#gtk-application-get-actions-for-accel" title="gtk_application_get_actions_for_accel ()">gtk_application_get_actions_for_accel</a> <span class="c_punctuation">()</span>
@ -231,18 +231,18 @@
</tr>
<tr>
<td class="property_type">
<a href="../gio/GMenuModel.html#GMenuModel-struct"><span class="type">GMenuModel</span></a> *</td>
<span class="type">GMenuModel</span> *</td>
<td class="property_name"><a class="link" href="GtkApplication.html#GtkApplication--app-menu" title="The “app-menu” property">app-menu</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type">
<a href="../gio/GMenuModel.html#GMenuModel-struct"><span class="type">GMenuModel</span></a> *</td>
<span class="type">GMenuModel</span> *</td>
<td class="property_name"><a class="link" href="GtkApplication.html#GtkApplication--menubar" title="The “menubar” property">menubar</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
<td class="property_type"><span class="type">gboolean</span></td>
<td class="property_name"><a class="link" href="GtkApplication.html#GtkApplication--register-session" title="The “register-session” property">register-session</a></td>
<td class="property_flags">Read / Write</td>
</tr>
@ -261,12 +261,12 @@
<tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="GtkApplication.html#GtkApplication-window-added" title="The “window-added” signal">window-added</a></td>
<td class="signal_flags"><a href="../gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS">Run First</a></td>
<td class="signal_flags">Run First</td>
</tr>
<tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="GtkApplication.html#GtkApplication-window-removed" title="The “window-removed” signal">window-removed</a></td>
<td class="signal_flags"><a href="../gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS">Run First</a></td>
<td class="signal_flags">Run First</td>
</tr>
</tbody>
</table></div>
@ -296,8 +296,8 @@
</div>
<div class="refsect1">
<a name="GtkApplication.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen"> <a href="../gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
<span class="lineart">╰──</span> <a href="../gio/GApplication.html#GApplication-struct">GApplication</a>
<pre class="screen"> GObject
<span class="lineart">╰──</span> GApplication
<span class="lineart">╰──</span> GtkApplication
</pre>
</div>
@ -305,11 +305,11 @@
<a name="GtkApplication.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
GtkApplication implements
<a href="../gio/GActionGroup.html#GActionGroup-struct">GActionGroup</a> and <a href="../gio/GActionMap.html#GActionMap-struct">GActionMap</a>.</p>
GActionGroup and GActionMap.</p>
</div>
<div class="refsect1">
<a name="GtkApplication.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include &lt;gtk/gtk.h&gt;
<pre class="synopsis">#include &lt;gtk/gtkunixprint.h&gt;
</pre>
</div>
<div class="refsect1">
@ -329,14 +329,14 @@ lock when invoking actions that arrive from other processes. The GDK
lock is not touched for local action invocations. In order to have
actions invoked in a predictable context it is therefore recommended
that the GDK lock be held while invoking actions locally with
<a href="../gio/GActionGroup.html#g-action-group-activate-action"><code class="function">g_action_group_activate_action()</code></a>. The same applies to actions
<code class="function">g_action_group_activate_action()</code>. The same applies to actions
associated with <a class="link" href="GtkApplicationWindow.html" title="GtkApplicationWindow"><span class="type">GtkApplicationWindow</span></a> and to the “activate” and
“open” <a href="../gio/GApplication.html#GApplication-struct"><span class="type">GApplication</span></a> methods.</p>
“open” <span class="type">GApplication</span> methods.</p>
<div class="refsect3">
<a name="automatic-resources"></a><h4>Automatic resources</h4>
<p><a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> will automatically load menus from the <a class="link" href="GtkBuilder.html" title="GtkBuilder"><span class="type">GtkBuilder</span></a>
resource located at "gtk/menus.ui", relative to the application's
resource base path (see <a href="../gio/GApplication.html#g-application-set-resource-base-path"><code class="function">g_application_set_resource_base_path()</code></a>). The
resource base path (see <code class="function">g_application_set_resource_base_path()</code>). The
menu with the ID "app-menu" is taken as the application's app menu
and the menu with the ID "menubar" is taken as the application's
menubar. Additional menus (most interesting submenus) can be named
@ -388,15 +388,15 @@ session while inhibitors are present.</p>
<div class="refsect2">
<a name="gtk-application-new"></a><h3>gtk_application_new ()</h3>
<pre class="programlisting"><a class="link" href="GtkApplication.html" title="GtkApplication"><span class="returnvalue">GtkApplication</span></a> *
gtk_application_new (<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *application_id</code></em>,
<em class="parameter"><code><a href="../gio/GApplication.html#GApplicationFlags"><span class="type">GApplicationFlags</span></a> flags</code></em>);</pre>
gtk_application_new (<em class="parameter"><code>const <span class="type">gchar</span> *application_id</code></em>,
<em class="parameter"><code><span class="type">GApplicationFlags</span> flags</code></em>);</pre>
<p>Creates a new <a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> instance.</p>
<p>When using <a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a>, it is not necessary to call <a class="link" href="gtk3-General.html#gtk-init" title="gtk_init ()"><code class="function">gtk_init()</code></a>
manually. It is called as soon as the application gets registered as
the primary instance.</p>
<p>Concretely, <a class="link" href="gtk3-General.html#gtk-init" title="gtk_init ()"><code class="function">gtk_init()</code></a> is called in the default handler for the
<a href="../gio/GApplication.html#GApplication-startup"><span class="type">“startup”</span></a> signal. Therefore, <a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> subclasses should
chain up in their <a href="../gio/GApplication.html#GApplication-startup"><span class="type">“startup”</span></a> handler before using any GTK+ API.</p>
<span class="type">“startup”</span> signal. Therefore, <a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> subclasses should
chain up in their <span class="type">“startup”</span> handler before using any GTK+ API.</p>
<p>Note that commandline arguments are not passed to <a class="link" href="gtk3-General.html#gtk-init" title="gtk_init ()"><code class="function">gtk_init()</code></a>.
All GTK+ functionality that is available via commandline arguments
can also be achieved by setting suitable environment variables
@ -404,8 +404,8 @@ such as <code class="literal">G_DEBUG</code>, so this should not be a big
problem. If you absolutely must support GTK+ commandline arguments,
you can explicitly call <a class="link" href="gtk3-General.html#gtk-init" title="gtk_init ()"><code class="function">gtk_init()</code></a> before creating the application
instance.</p>
<p>If non-<a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the application ID must be valid. See
<a href="../gio/GApplication.html#g-application-id-is-valid"><code class="function">g_application_id_is_valid()</code></a>.</p>
<p>If non-<code class="literal">NULL</code>, the application ID must be valid. See
<code class="function">g_application_id_is_valid()</code>.</p>
<p>If no application ID is given then some features (most notably application
uniqueness) will be disabled. A null application ID is only allowed with
GTK+ 3.6 or later.</p>
@ -420,7 +420,7 @@ GTK+ 3.6 or later.</p>
<tbody>
<tr>
<td class="parameter_name"><p>application_id</p></td>
<td class="parameter_description"><p> The application ID. </p></td>
<td class="parameter_description"><p>The application ID. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
<tr>
@ -448,7 +448,7 @@ gtk_application_add_window (<em class="parameter"><code><a class="link" href="Gt
<p>This call can only happen after the <em class="parameter"><code>application</code></em>
has started;
typically, you should add new application windows in response
to the emission of the <a href="../gio/GApplication.html#GApplication-activate"><span class="type">“activate”</span></a> signal.</p>
to the emission of the <span class="type">“activate”</span> signal.</p>
<p>This call is equivalent to setting the <a class="link" href="GtkWindow.html#GtkWindow--application" title="The “application” property"><span class="type">“application”</span></a>
property of <em class="parameter"><code>window</code></em>
to <em class="parameter"><code>application</code></em>
@ -496,7 +496,7 @@ gtk_application_remove_window (<em class="parameter"><code><a class="link" href=
then this call is equivalent to
setting the <a class="link" href="GtkWindow.html#GtkWindow--application" title="The “application” property"><span class="type">“application”</span></a> property of <em class="parameter"><code>window</code></em>
to
<a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p>
<code class="literal">NULL</code>.</p>
<p>The application may stop running as a result of a call to this
function.</p>
<div class="refsect3">
@ -526,7 +526,7 @@ function.</p>
<hr>
<div class="refsect2">
<a name="gtk-application-get-windows"></a><h3>gtk_application_get_windows ()</h3>
<pre class="programlisting"><a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
<pre class="programlisting"><span class="returnvalue">GList</span> *
gtk_application_get_windows (<em class="parameter"><code><a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> *application</code></em>);</pre>
<p>Gets a list of the <a href="GtkWindow.html#GtkWindow-struct"><span class="type">GtkWindows</span></a> associated with <em class="parameter"><code>application</code></em>
.</p>
@ -553,7 +553,7 @@ deletion.</p>
</div>
<div class="refsect3">
<a name="gtk-application-get-windows.returns"></a><h4>Returns</h4>
<p> a <a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>. </p>
<p>a <span class="type">GList</span> of <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>. </p>
<p><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GtkWindow][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></p>
@ -563,7 +563,7 @@ deletion.</p>
<a name="gtk-application-get-window-by-id"></a><h3>gtk_application_get_window_by_id ()</h3>
<pre class="programlisting"><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="returnvalue">GtkWindow</span></a> *
gtk_application_get_window_by_id (<em class="parameter"><code><a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> *application</code></em>,
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> id</code></em>);</pre>
<em class="parameter"><code><span class="type">guint</span> id</code></em>);</pre>
<p>Returns the <a class="link" href="GtkApplicationWindow.html" title="GtkApplicationWindow"><span class="type">GtkApplicationWindow</span></a> with the given ID.</p>
<p>The ID of a <a class="link" href="GtkApplicationWindow.html" title="GtkApplicationWindow"><span class="type">GtkApplicationWindow</span></a> can be retrieved with
<a class="link" href="GtkApplicationWindow.html#gtk-application-window-get-id" title="gtk_application_window_get_id ()"><code class="function">gtk_application_window_get_id()</code></a>.</p>
@ -591,9 +591,9 @@ gtk_application_get_window_by_id (<em class="parameter"><code><a class="link" hr
</div>
<div class="refsect3">
<a name="gtk-application-get-window-by-id.returns"></a><h4>Returns</h4>
<p> the window with ID <em class="parameter"><code>id</code></em>
<p>the window with ID <em class="parameter"><code>id</code></em>
, or
<a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is no window with this ID. </p>
<code class="literal">NULL</code> if there is no window with this ID. </p>
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-6.html#api-index-3.6">3.6</a></p>
@ -625,7 +625,7 @@ recently-focused window within this application.</p>
</div>
<div class="refsect3">
<a name="gtk-application-get-active-window.returns"></a><h4>Returns</h4>
<p> the active window, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if
<p>the active window, or <code class="literal">NULL</code> if
there isn't one. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
</div>
@ -634,11 +634,11 @@ there isn't one. </p>
<hr>
<div class="refsect2">
<a name="gtk-application-inhibit"></a><h3>gtk_application_inhibit ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
<pre class="programlisting"><span class="returnvalue">guint</span>
gtk_application_inhibit (<em class="parameter"><code><a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> *application</code></em>,
<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>,
<em class="parameter"><code><a class="link" href="GtkApplication.html#GtkApplicationInhibitFlags" title="enum GtkApplicationInhibitFlags"><span class="type">GtkApplicationInhibitFlags</span></a> flags</code></em>,
<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *reason</code></em>);</pre>
<em class="parameter"><code>const <span class="type">gchar</span> *reason</code></em>);</pre>
<p>Inform the session manager that certain types of actions should be
inhibited. This is not guaranteed to work on all platforms and for
all types of actions.</p>
@ -674,7 +674,7 @@ this window to find out more about why the action is inhibited.</p>
</tr>
<tr>
<td class="parameter_name"><p>window</p></td>
<td class="parameter_description"><p> a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>, or <code class="literal">NULL</code>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
<tr>
@ -684,7 +684,7 @@ this window to find out more about why the action is inhibited.</p>
</tr>
<tr>
<td class="parameter_name"><p>reason</p></td>
<td class="parameter_description"><p> a short, human-readable string that explains
<td class="parameter_description"><p>a short, human-readable string that explains
why these operations are inhibited. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
@ -705,7 +705,7 @@ inhibiting or the request failed for some reason, 0 is returned.</p>
<a name="gtk-application-uninhibit"></a><h3>gtk_application_uninhibit ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gtk_application_uninhibit (<em class="parameter"><code><a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> *application</code></em>,
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> cookie</code></em>);</pre>
<em class="parameter"><code><span class="type">guint</span> cookie</code></em>);</pre>
<p>Removes an inhibitor that has been established with <a class="link" href="GtkApplication.html#gtk-application-inhibit" title="gtk_application_inhibit ()"><code class="function">gtk_application_inhibit()</code></a>.
Inhibitors are also cleared when the application exits.</p>
<div class="refsect3">
@ -735,12 +735,14 @@ Inhibitors are also cleared when the application exits.</p>
<hr>
<div class="refsect2">
<a name="gtk-application-is-inhibited"></a><h3>gtk_application_is_inhibited ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gtk_application_is_inhibited (<em class="parameter"><code><a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> *application</code></em>,
<em class="parameter"><code><a class="link" href="GtkApplication.html#GtkApplicationInhibitFlags" title="enum GtkApplicationInhibitFlags"><span class="type">GtkApplicationInhibitFlags</span></a> flags</code></em>);</pre>
<p>Determines if any of the actions specified in <em class="parameter"><code>flags</code></em>
are
currently inhibited (possibly by another application).</p>
<p>Note that this information may not be available (for example
when the application is running in a sandbox).</p>
<div class="refsect3">
<a name="gtk-application-is-inhibited.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
@ -765,7 +767,7 @@ currently inhibited (possibly by another application).</p>
</div>
<div class="refsect3">
<a name="gtk-application-is-inhibited.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if any of the actions specified in <em class="parameter"><code>flags</code></em>
<p> <code class="literal">TRUE</code> if any of the actions specified in <em class="parameter"><code>flags</code></em>
are inhibited</p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-4.html#api-index-3.4">3.4</a></p>
@ -773,14 +775,14 @@ are inhibited</p>
<hr>
<div class="refsect2">
<a name="gtk-application-prefers-app-menu"></a><h3>gtk_application_prefers_app_menu ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gtk_application_prefers_app_menu (<em class="parameter"><code><a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> *application</code></em>);</pre>
<p>Determines if the desktop environment in which the application is
running would prefer an application menu be shown.</p>
<p>If this function returns <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> then the application should call
<p>If this function returns <code class="literal">TRUE</code> then the application should call
<a class="link" href="GtkApplication.html#gtk-application-set-app-menu" title="gtk_application_set_app_menu ()"><code class="function">gtk_application_set_app_menu()</code></a> with the contents of an application
menu, which will be shown by the desktop environment. If it returns
<a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> then you should consider using an alternate approach, such as
<code class="literal">FALSE</code> then you should consider using an alternate approach, such as
a menubar.</p>
<p>The value returned by this function is purely advisory and you are
free to ignore it. If you call <a class="link" href="GtkApplication.html#gtk-application-set-app-menu" title="gtk_application_set_app_menu ()"><code class="function">gtk_application_set_app_menu()</code></a> even
@ -798,7 +800,7 @@ likely to want to use this from your own startup handler. It may
also make sense to consult this function while constructing UI (in
activate, open or an action activation handler) in order to determine
if you should show a gear menu or not.</p>
<p>This function will return <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on Mac OS and a default app menu
<p>This function will return <code class="literal">FALSE</code> on Mac OS and a default app menu
will be created automatically with the "usual" contents of that menu
typical to most Mac OS applications. If you call
<a class="link" href="GtkApplication.html#gtk-application-set-app-menu" title="gtk_application_set_app_menu ()"><code class="function">gtk_application_set_app_menu()</code></a> anyway, then this menu will be
@ -820,14 +822,14 @@ replaced with your own.</p>
</div>
<div class="refsect3">
<a name="gtk-application-prefers-app-menu.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if you should set an app menu</p>
<p> <code class="literal">TRUE</code> if you should set an app menu</p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-14.html#api-index-3.14">3.14</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-application-get-app-menu"></a><h3>gtk_application_get_app_menu ()</h3>
<pre class="programlisting"><a href="../gio/GMenuModel.html#GMenuModel-struct"><span class="returnvalue">GMenuModel</span></a> *
<pre class="programlisting"><span class="returnvalue">GMenuModel</span> *
gtk_application_get_app_menu (<em class="parameter"><code><a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> *application</code></em>);</pre>
<p>Returns the menu model that has been set with
<a class="link" href="GtkApplication.html#gtk-application-set-app-menu" title="gtk_application_set_app_menu ()"><code class="function">gtk_application_set_app_menu()</code></a>.</p>
@ -848,8 +850,8 @@ gtk_application_get_app_menu (<em class="parameter"><code><a class="link" href="
</div>
<div class="refsect3">
<a name="gtk-application-get-app-menu.returns"></a><h4>Returns</h4>
<p> the application menu of <em class="parameter"><code>application</code></em>
or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no application menu has been set. </p>
<p>the application menu of <em class="parameter"><code>application</code></em>
or <code class="literal">NULL</code> if no application menu has been set. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-4.html#api-index-3.4">3.4</a></p>
@ -859,11 +861,11 @@ or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">N
<a name="gtk-application-set-app-menu"></a><h3>gtk_application_set_app_menu ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gtk_application_set_app_menu (<em class="parameter"><code><a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> *application</code></em>,
<em class="parameter"><code><a href="../gio/GMenuModel.html#GMenuModel-struct"><span class="type">GMenuModel</span></a> *app_menu</code></em>);</pre>
<em class="parameter"><code><span class="type">GMenuModel</span> *app_menu</code></em>);</pre>
<p>Sets or unsets the application menu for <em class="parameter"><code>application</code></em>
.</p>
<p>This can only be done in the primary instance of the application,
after it has been registered. <a href="../gio/GApplication.html#GApplication-startup"><span class="type">“startup”</span></a> is a good place
after it has been registered. <span class="type">“startup”</span> is a good place
to call this.</p>
<p>The application menu is a single menu containing items that typically
impact the application as a whole, rather than acting on a specific
@ -872,7 +874,7 @@ window or document. For example, you would expect to see
“Print”.</p>
<p>If supported, the application menu will be rendered by the desktop
environment.</p>
<p>Use the base <a href="../gio/GActionMap.html#GActionMap-struct"><span class="type">GActionMap</span></a> interface to add actions, to respond to the user
<p>Use the base <span class="type">GActionMap</span> interface to add actions, to respond to the user
selecting these menu items.</p>
<div class="refsect3">
<a name="gtk-application-set-app-menu.parameters"></a><h4>Parameters</h4>
@ -890,7 +892,7 @@ selecting these menu items.</p>
</tr>
<tr>
<td class="parameter_name"><p>app_menu</p></td>
<td class="parameter_description"><p> a <a href="../gio/GMenuModel.html#GMenuModel-struct"><span class="type">GMenuModel</span></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_description"><p>a <span class="type">GMenuModel</span>, or <code class="literal">NULL</code>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
</tbody>
@ -901,7 +903,7 @@ selecting these menu items.</p>
<hr>
<div class="refsect2">
<a name="gtk-application-get-menubar"></a><h3>gtk_application_get_menubar ()</h3>
<pre class="programlisting"><a href="../gio/GMenuModel.html#GMenuModel-struct"><span class="returnvalue">GMenuModel</span></a> *
<pre class="programlisting"><span class="returnvalue">GMenuModel</span> *
gtk_application_get_menubar (<em class="parameter"><code><a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> *application</code></em>);</pre>
<p>Returns the menu model that has been set with
<a class="link" href="GtkApplication.html#gtk-application-set-menubar" title="gtk_application_set_menubar ()"><code class="function">gtk_application_set_menubar()</code></a>.</p>
@ -922,7 +924,7 @@ gtk_application_get_menubar (<em class="parameter"><code><a class="link" href="G
</div>
<div class="refsect3">
<a name="gtk-application-get-menubar.returns"></a><h4>Returns</h4>
<p> the menubar for windows of <em class="parameter"><code>application</code></em>
<p>the menubar for windows of <em class="parameter"><code>application</code></em>
. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
@ -933,12 +935,12 @@ gtk_application_get_menubar (<em class="parameter"><code><a class="link" href="G
<a name="gtk-application-set-menubar"></a><h3>gtk_application_set_menubar ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gtk_application_set_menubar (<em class="parameter"><code><a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> *application</code></em>,
<em class="parameter"><code><a href="../gio/GMenuModel.html#GMenuModel-struct"><span class="type">GMenuModel</span></a> *menubar</code></em>);</pre>
<em class="parameter"><code><span class="type">GMenuModel</span> *menubar</code></em>);</pre>
<p>Sets or unsets the menubar for windows of <em class="parameter"><code>application</code></em>
.</p>
<p>This is a menubar in the traditional sense.</p>
<p>This can only be done in the primary instance of the application,
after it has been registered. <a href="../gio/GApplication.html#GApplication-startup"><span class="type">“startup”</span></a> is a good place
after it has been registered. <span class="type">“startup”</span> is a good place
to call this.</p>
<p>Depending on the desktop environment, this may appear at the top of
each window, or at the top of the screen. In some environments, if
@ -947,7 +949,7 @@ menu will be presented as if it were the first item of the menubar.
Other environments treat the two as completely separate — for example,
the application menu may be rendered by the desktop shell while the
menubar (if set) remains in each individual window.</p>
<p>Use the base <a href="../gio/GActionMap.html#GActionMap-struct"><span class="type">GActionMap</span></a> interface to add actions, to respond to the
<p>Use the base <span class="type">GActionMap</span> interface to add actions, to respond to the
user selecting these menu items.</p>
<div class="refsect3">
<a name="gtk-application-set-menubar.parameters"></a><h4>Parameters</h4>
@ -965,7 +967,7 @@ user selecting these menu items.</p>
</tr>
<tr>
<td class="parameter_name"><p>menubar</p></td>
<td class="parameter_description"><p> a <a href="../gio/GMenuModel.html#GMenuModel-struct"><span class="type">GMenuModel</span></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_description"><p>a <span class="type">GMenuModel</span>, or <code class="literal">NULL</code>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
</tbody>
@ -976,9 +978,9 @@ user selecting these menu items.</p>
<hr>
<div class="refsect2">
<a name="gtk-application-get-menu-by-id"></a><h3>gtk_application_get_menu_by_id ()</h3>
<pre class="programlisting"><a href="../gio/GMenu.html#GMenu-struct"><span class="returnvalue">GMenu</span></a> *
<pre class="programlisting"><span class="returnvalue">GMenu</span> *
gtk_application_get_menu_by_id (<em class="parameter"><code><a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> *application</code></em>,
<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>);</pre>
<em class="parameter"><code>const <span class="type">gchar</span> *id</code></em>);</pre>
<p>Gets a menu from automatically loaded resources.
See <a class="link" href="GtkApplication.html#automatic-resources" title="Automatic resources">Automatic resources</a>
for more information.</p>
@ -1006,7 +1008,7 @@ for more information.</p>
</div>
<div class="refsect3">
<a name="gtk-application-get-menu-by-id.returns"></a><h4>Returns</h4>
<p> Gets the menu with the
<p>Gets the menu with the
given id from the automatically loaded resources. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
@ -1017,9 +1019,9 @@ given id from the automatically loaded resources. </p>
<a name="gtk-application-add-accelerator"></a><h3>gtk_application_add_accelerator ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gtk_application_add_accelerator (<em class="parameter"><code><a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> *application</code></em>,
<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accelerator</code></em>,
<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *action_name</code></em>,
<em class="parameter"><code><a href="../glib/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> *parameter</code></em>);</pre>
<em class="parameter"><code>const <span class="type">gchar</span> *accelerator</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *action_name</code></em>,
<em class="parameter"><code><span class="type">GVariant</span> *parameter</code></em>);</pre>
<div class="warning">
<p><code class="literal">gtk_application_add_accelerator</code> has been deprecated since version 3.14 and should not be used in newly-written code.</p>
<p>Use <a class="link" href="GtkApplication.html#gtk-application-set-accels-for-action" title="gtk_application_set_accels_for_action ()"><code class="function">gtk_application_set_accels_for_action()</code></a> instead</p>
@ -1037,7 +1039,7 @@ in the app menu, i.e. actions that have been added to the application
are referred to with an “app.” prefix, and window-specific actions
with a “win.” prefix.</p>
<p>GtkApplication also extracts accelerators out of “accel” attributes
in the <a href="../gio/GMenuModel.html#GMenuModel-struct"><span class="type">GMenuModels</span></a> passed to <a class="link" href="GtkApplication.html#gtk-application-set-app-menu" title="gtk_application_set_app_menu ()"><code class="function">gtk_application_set_app_menu()</code></a> and
in the <span class="type">GMenuModels</span> passed to <a class="link" href="GtkApplication.html#gtk-application-set-app-menu" title="gtk_application_set_app_menu ()"><code class="function">gtk_application_set_app_menu()</code></a> and
<a class="link" href="GtkApplication.html#gtk-application-set-menubar" title="gtk_application_set_menubar ()"><code class="function">gtk_application_set_menubar()</code></a>, which is usually more convenient
than calling this function for each accelerator.</p>
<div class="refsect3">
@ -1066,8 +1068,8 @@ than calling this function for each accelerator.</p>
</tr>
<tr>
<td class="parameter_name"><p>parameter</p></td>
<td class="parameter_description"><p> parameter to pass when activating the action,
or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the action does not accept an activation parameter. </p></td>
<td class="parameter_description"><p>parameter to pass when activating the action,
or <code class="literal">NULL</code> if the action does not accept an activation parameter. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
</tbody>
@ -1080,8 +1082,8 @@ or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">N
<a name="gtk-application-remove-accelerator"></a><h3>gtk_application_remove_accelerator ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gtk_application_remove_accelerator (<em class="parameter"><code><a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> *application</code></em>,
<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *action_name</code></em>,
<em class="parameter"><code><a href="../glib/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> *parameter</code></em>);</pre>
<em class="parameter"><code>const <span class="type">gchar</span> *action_name</code></em>,
<em class="parameter"><code><span class="type">GVariant</span> *parameter</code></em>);</pre>
<div class="warning">
<p><code class="literal">gtk_application_remove_accelerator</code> has been deprecated since version 3.14 and should not be used in newly-written code.</p>
<p>Use <a class="link" href="GtkApplication.html#gtk-application-set-accels-for-action" title="gtk_application_set_accels_for_action ()"><code class="function">gtk_application_set_accels_for_action()</code></a> instead</p>
@ -1109,8 +1111,8 @@ with <a class="link" href="GtkApplication.html#gtk-application-add-accelerator"
</tr>
<tr>
<td class="parameter_name"><p>parameter</p></td>
<td class="parameter_description"><p> parameter to pass when activating the action,
or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the action does not accept an activation parameter. </p></td>
<td class="parameter_description"><p>parameter to pass when activating the action,
or <code class="literal">NULL</code> if the action does not accept an activation parameter. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
</tbody>
@ -1121,7 +1123,7 @@ or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">N
<hr>
<div class="refsect2">
<a name="gtk-application-list-action-descriptions"></a><h3>gtk_application_list_action_descriptions ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> **
<pre class="programlisting"><span class="returnvalue">gchar</span> **
gtk_application_list_action_descriptions
(<em class="parameter"><code><a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> *application</code></em>);</pre>
<p>Lists the detailed action names which have associated accelerators.
@ -1143,8 +1145,8 @@ See <a class="link" href="GtkApplication.html#gtk-application-set-accels-for-act
</div>
<div class="refsect3">
<a name="gtk-application-list-action-descriptions.returns"></a><h4>Returns</h4>
<p> a <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated array of strings,
free with <a href="../glib/glib-String-Utility-Functions.html#g-strfreev"><code class="function">g_strfreev()</code></a> when done. </p>
<p>a <code class="literal">NULL</code>-terminated array of strings,
free with <code class="function">g_strfreev()</code> when done. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-12.html#api-index-3.12">3.12</a></p>
@ -1152,9 +1154,9 @@ free with <a href="../glib/glib-String-Utility-Functions.html#g-strfreev"><code
<hr>
<div class="refsect2">
<a name="gtk-application-get-accels-for-action"></a><h3>gtk_application_get_accels_for_action ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> **
<pre class="programlisting"><span class="returnvalue">gchar</span> **
gtk_application_get_accels_for_action (<em class="parameter"><code><a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> *application</code></em>,
<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *detailed_action_name</code></em>);</pre>
<em class="parameter"><code>const <span class="type">gchar</span> *detailed_action_name</code></em>);</pre>
<p>Gets the accelerators that are currently associated with
the given action.</p>
<div class="refsect3">
@ -1182,9 +1184,9 @@ and target to obtain accelerators for</p></td>
</div>
<div class="refsect3">
<a name="gtk-application-get-accels-for-action.returns"></a><h4>Returns</h4>
<p> accelerators for <em class="parameter"><code>detailed_action_name</code></em>
<p>accelerators for <em class="parameter"><code>detailed_action_name</code></em>
, as
a <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated array. Free with <a href="../glib/glib-String-Utility-Functions.html#g-strfreev"><code class="function">g_strfreev()</code></a> when no longer needed. </p>
a <code class="literal">NULL</code>-terminated array. Free with <code class="function">g_strfreev()</code> when no longer needed. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-12.html#api-index-3.12">3.12</a></p>
@ -1194,8 +1196,8 @@ a <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NU
<a name="gtk-application-set-accels-for-action"></a><h3>gtk_application_set_accels_for_action ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gtk_application_set_accels_for_action (<em class="parameter"><code><a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> *application</code></em>,
<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *detailed_action_name</code></em>,
<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> * const *accels</code></em>);</pre>
<em class="parameter"><code>const <span class="type">gchar</span> *detailed_action_name</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> * const *accels</code></em>);</pre>
<p>Sets zero or more keyboard accelerators that will trigger the
given action. The first item in <em class="parameter"><code>accels</code></em>
will be the primary
@ -1204,8 +1206,8 @@ accelerator, which may be displayed in the UI.</p>
array for <em class="parameter"><code>accels</code></em>
.</p>
<p>For the <em class="parameter"><code>detailed_action_name</code></em>
, see <a href="../gio/GAction.html#g-action-parse-detailed-name"><code class="function">g_action_parse_detailed_name()</code></a> and
<a href="../gio/GAction.html#g-action-print-detailed-name"><code class="function">g_action_print_detailed_name()</code></a>.</p>
, see <code class="function">g_action_parse_detailed_name()</code> and
<code class="function">g_action_print_detailed_name()</code>.</p>
<div class="refsect3">
<a name="gtk-application-set-accels-for-action.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
@ -1228,7 +1230,7 @@ and target to associate accelerators with</p></td>
</tr>
<tr>
<td class="parameter_name"><p>accels</p></td>
<td class="parameter_description"><p> a list of accelerators in the format
<td class="parameter_description"><p>a list of accelerators in the format
understood by <a class="link" href="gtk3-Keyboard-Accelerators.html#gtk-accelerator-parse" title="gtk_accelerator_parse ()"><code class="function">gtk_accelerator_parse()</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> zero-terminated=1]</span></td>
</tr>
@ -1240,9 +1242,9 @@ understood by <a class="link" href="gtk3-Keyboard-Accelerators.html#gtk-accelera
<hr>
<div class="refsect2">
<a name="gtk-application-get-actions-for-accel"></a><h3>gtk_application_get_actions_for_accel ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> **
<pre class="programlisting"><span class="returnvalue">gchar</span> **
gtk_application_get_actions_for_accel (<em class="parameter"><code><a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> *application</code></em>,
<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel</code></em>);</pre>
<em class="parameter"><code>const <span class="type">gchar</span> *accel</code></em>);</pre>
<p>Returns the list of actions (possibly empty) that <em class="parameter"><code>accel</code></em>
maps to.
Each item in the list is a detailed action name in the usual form.</p>
@ -1253,7 +1255,7 @@ having more than one action per accelerator may not be a bad thing
and might make sense in cases where the actions never appear in the
same context.</p>
<p>In case there are no actions for a given accelerator, an empty array
is returned. <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is never returned.</p>
is returned. <code class="literal">NULL</code> is never returned.</p>
<p>It is a programmer error to pass an invalid accelerator string.
If you are unsure, check it with <a class="link" href="gtk3-Keyboard-Accelerators.html#gtk-accelerator-parse" title="gtk_accelerator_parse ()"><code class="function">gtk_accelerator_parse()</code></a> first.</p>
<div class="refsect3">
@ -1280,7 +1282,7 @@ If you are unsure, check it with <a class="link" href="gtk3-Keyboard-Accelerator
</div>
<div class="refsect3">
<a name="gtk-application-get-actions-for-accel.returns"></a><h4>Returns</h4>
<p> a <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated array of actions for <em class="parameter"><code>accel</code></em>
<p>a <code class="literal">NULL</code>-terminated array of actions for <em class="parameter"><code>accel</code></em>
. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
@ -1393,22 +1395,22 @@ explicitly through <a class="link" href="GtkApplication.html#gtk-application-rem
<hr>
<div class="refsect2">
<a name="GtkApplication--app-menu"></a><h3>The <code class="literal">“app-menu”</code> property</h3>
<pre class="programlisting"> “app-menu” <a href="../gio/GMenuModel.html#GMenuModel-struct"><span class="type">GMenuModel</span></a> *</pre>
<pre class="programlisting"> “app-menu” <span class="type">GMenuModel</span> *</pre>
<p>The GMenuModel for the application menu.</p>
<p>Flags: Read / Write</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkApplication--menubar"></a><h3>The <code class="literal">“menubar”</code> property</h3>
<pre class="programlisting"> “menubar” <a href="../gio/GMenuModel.html#GMenuModel-struct"><span class="type">GMenuModel</span></a> *</pre>
<pre class="programlisting"> “menubar” <span class="type">GMenuModel</span> *</pre>
<p>The GMenuModel for the menubar.</p>
<p>Flags: Read / Write</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkApplication--register-session"></a><h3>The <code class="literal">“register-session”</code> property</h3>
<pre class="programlisting"> “register-session” <a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
<p>Set this property to <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to register with the session manager.</p>
<pre class="programlisting"> “register-session” <span class="type">gboolean</span></pre>
<p>Set this property to <code class="literal">TRUE</code> to register with the session manager.</p>
<p>Flags: Read / Write</p>
<p>Default value: FALSE</p>
<p class="since">Since: <a class="link" href="api-index-3-4.html#api-index-3.4">3.4</a></p>
@ -1421,7 +1423,7 @@ explicitly through <a class="link" href="GtkApplication.html#gtk-application-rem
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> *application,
<a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window,
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
<span class="type">gpointer</span> user_data)</pre>
<p>Emitted when a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> is added to <em class="parameter"><code>application</code></em>
through
<a class="link" href="GtkApplication.html#gtk-application-add-window" title="gtk_application_add_window ()"><code class="function">gtk_application_add_window()</code></a>.</p>
@ -1452,7 +1454,7 @@ user_function (<a class="link" href="GtkApplication.html" title="GtkApplication"
</tbody>
</table></div>
</div>
<p>Flags: <a href="../gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS">Run First</a></p>
<p>Flags: Run First</p>
<p class="since">Since: <a class="link" href="api-index-3-2.html#api-index-3.2">3.2</a></p>
</div>
<hr>
@ -1461,7 +1463,7 @@ user_function (<a class="link" href="GtkApplication.html" title="GtkApplication"
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="GtkApplication.html" title="GtkApplication"><span class="type">GtkApplication</span></a> *application,
<a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window,
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
<span class="type">gpointer</span> user_data)</pre>
<p>Emitted when a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> is removed from <em class="parameter"><code>application</code></em>
,
either as a side-effect of being destroyed or explicitly
@ -1493,12 +1495,12 @@ through <a class="link" href="GtkApplication.html#gtk-application-remove-window"
</tbody>
</table></div>
</div>
<p>Flags: <a href="../gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS">Run First</a></p>
<p>Flags: Run First</p>
<p class="since">Since: <a class="link" href="api-index-3-2.html#api-index-3.2">3.2</a></p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.25.1</div>
<hr>Generated by GTK-Doc V1.27</div>
</body>
</html>