New upstream version 3.24.8
This commit is contained in:
@ -123,7 +123,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="https://developer.gnome.org/gdk4/GdkDisplay.html#GdkDisplay-struct"><span class="returnvalue">GdkDisplay</span></a> *
|
||||
<span class="returnvalue">GdkDisplay</span> *
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="gtk3-Clipboards.html#gtk-clipboard-get-display" title="gtk_clipboard_get_display ()">gtk_clipboard_get_display</a> <span class="c_punctuation">()</span>
|
||||
@ -139,7 +139,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="https://developer.gnome.org/glib/unstable/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="gtk3-Clipboards.html#gtk-clipboard-set-with-data" title="gtk_clipboard_set_with_data ()">gtk_clipboard_set_with_data</a> <span class="c_punctuation">()</span>
|
||||
@ -147,7 +147,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="https://developer.gnome.org/glib/unstable/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="gtk3-Clipboards.html#gtk-clipboard-set-with-owner" title="gtk_clipboard_set_with_owner ()">gtk_clipboard_set_with_owner</a> <span class="c_punctuation">()</span>
|
||||
@ -155,7 +155,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GObject-struct"><span class="returnvalue">GObject</span></a> *
|
||||
<span class="returnvalue">GObject</span> *
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="gtk3-Clipboards.html#gtk-clipboard-get-owner" title="gtk_clipboard_get_owner ()">gtk_clipboard_get_owner</a> <span class="c_punctuation">()</span>
|
||||
@ -243,7 +243,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="https://developer.gnome.org/glib/unstable/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="gtk3-Clipboards.html#gtk-clipboard-wait-for-text" title="gtk_clipboard_wait_for_text ()">gtk_clipboard_wait_for_text</a> <span class="c_punctuation">()</span>
|
||||
@ -259,7 +259,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> *
|
||||
<span class="returnvalue">guint8</span> *
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="gtk3-Clipboards.html#gtk-clipboard-wait-for-rich-text" title="gtk_clipboard_wait_for_rich_text ()">gtk_clipboard_wait_for_rich_text</a> <span class="c_punctuation">()</span>
|
||||
@ -267,7 +267,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="https://developer.gnome.org/glib/unstable/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="gtk3-Clipboards.html#gtk-clipboard-wait-for-uris" title="gtk_clipboard_wait_for_uris ()">gtk_clipboard_wait_for_uris</a> <span class="c_punctuation">()</span>
|
||||
@ -275,7 +275,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="https://developer.gnome.org/glib/unstable/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="gtk3-Clipboards.html#gtk-clipboard-wait-is-text-available" title="gtk_clipboard_wait_is_text_available ()">gtk_clipboard_wait_is_text_available</a> <span class="c_punctuation">()</span>
|
||||
@ -283,7 +283,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="https://developer.gnome.org/glib/unstable/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="gtk3-Clipboards.html#gtk-clipboard-wait-is-image-available" title="gtk_clipboard_wait_is_image_available ()">gtk_clipboard_wait_is_image_available</a> <span class="c_punctuation">()</span>
|
||||
@ -291,7 +291,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="https://developer.gnome.org/glib/unstable/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="gtk3-Clipboards.html#gtk-clipboard-wait-is-rich-text-available" title="gtk_clipboard_wait_is_rich_text_available ()">gtk_clipboard_wait_is_rich_text_available</a> <span class="c_punctuation">()</span>
|
||||
@ -299,7 +299,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="https://developer.gnome.org/glib/unstable/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="gtk3-Clipboards.html#gtk-clipboard-wait-is-uris-available" title="gtk_clipboard_wait_is_uris_available ()">gtk_clipboard_wait_is_uris_available</a> <span class="c_punctuation">()</span>
|
||||
@ -307,7 +307,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="https://developer.gnome.org/glib/unstable/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="gtk3-Clipboards.html#gtk-clipboard-wait-for-targets" title="gtk_clipboard_wait_for_targets ()">gtk_clipboard_wait_for_targets</a> <span class="c_punctuation">()</span>
|
||||
@ -315,7 +315,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="https://developer.gnome.org/glib/unstable/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="gtk3-Clipboards.html#gtk-clipboard-wait-is-target-available" title="gtk_clipboard_wait_is_target_available ()">gtk_clipboard_wait_is_target_available</a> <span class="c_punctuation">()</span>
|
||||
@ -339,7 +339,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="https://developer.gnome.org/gdk4/gdk4-Properties-and-Atoms.html#GdkAtom"><span class="returnvalue">GdkAtom</span></a>
|
||||
<span class="returnvalue">GdkAtom</span>
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="gtk3-Clipboards.html#gtk-clipboard-get-selection" title="gtk_clipboard_get_selection ()">gtk_clipboard_get_selection</a> <span class="c_punctuation">()</span>
|
||||
@ -359,7 +359,7 @@
|
||||
<tbody><tr>
|
||||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||||
<td class="signal_name"><a class="link" href="gtk3-Clipboards.html#GtkClipboard-owner-change" title="The “owner-change” signal">owner-change</a></td>
|
||||
<td class="signal_flags"><a href="https://developer.gnome.org/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS">Run First</a></td>
|
||||
<td class="signal_flags">Run First</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
@ -378,7 +378,7 @@
|
||||
</div>
|
||||
<div class="refsect1">
|
||||
<a name="gtk3-Clipboards.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
||||
<pre class="screen"> <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
|
||||
<pre class="screen"> GObject
|
||||
<span class="lineart">╰──</span> GtkClipboard
|
||||
</pre>
|
||||
</div>
|
||||
@ -392,8 +392,8 @@
|
||||
<p>The <a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> object represents a clipboard of data shared
|
||||
between different processes or between different widgets in
|
||||
the same process. Each clipboard is identified by a name encoded as a
|
||||
<a href="https://developer.gnome.org/gdk4/gdk4-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a>. (Conversion to and from strings can be done with
|
||||
<a href="https://developer.gnome.org/gdk3/gdk3-Properties-and-Atoms.html#gdk-atom-intern"><code class="function">gdk_atom_intern()</code></a> and <a href="https://developer.gnome.org/gdk3/gdk3-Properties-and-Atoms.html#gdk-atom-name"><code class="function">gdk_atom_name()</code></a>.) The default clipboard
|
||||
<span class="type">GdkAtom</span>. (Conversion to and from strings can be done with
|
||||
<code class="function">gdk_atom_intern()</code> and <code class="function">gdk_atom_name()</code>.) The default clipboard
|
||||
corresponds to the “CLIPBOARD” atom; another commonly used clipboard
|
||||
is the “PRIMARY” clipboard, which, in X, traditionally contains
|
||||
the currently selected text.</p>
|
||||
@ -414,7 +414,7 @@ with callbacks to convert it into the various data types that you
|
||||
advertise. When the <em class="parameter"><code>clear_func</code></em>
|
||||
you provided is called, you
|
||||
simply free the data blob. The latter is more useful when the
|
||||
contents of clipboard reflect the internal state of a <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a>
|
||||
contents of clipboard reflect the internal state of a <span class="type">GObject</span>
|
||||
(As an example, for the PRIMARY clipboard, when an entry widget
|
||||
provides the clipboard’s contents the contents are simply the
|
||||
text within the selected region.) If the contents change, the
|
||||
@ -452,7 +452,7 @@ form for representing strings in GTK+.)</p>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
<span class="c_punctuation">(</span>*GtkClipboardReceivedFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Selections.html#GtkSelectionData"><span class="type">GtkSelectionData</span></a> *selection_data</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
|
||||
<p>A function to be called when the results of <a class="link" href="gtk3-Clipboards.html#gtk-clipboard-request-contents" title="gtk_clipboard_request_contents ()"><code class="function">gtk_clipboard_request_contents()</code></a>
|
||||
are received, or when the request fails.</p>
|
||||
<div class="refsect3">
|
||||
@ -493,8 +493,8 @@ supplied to
|
||||
<a name="GtkClipboardTextReceivedFunc"></a><h3>GtkClipboardTextReceivedFunc ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
<span class="c_punctuation">(</span>*GtkClipboardTextReceivedFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
||||
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *text</code></em>,
|
||||
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
|
||||
<p>A function to be called when the results of <a class="link" href="gtk3-Clipboards.html#gtk-clipboard-request-text" title="gtk_clipboard_request_text ()"><code class="function">gtk_clipboard_request_text()</code></a>
|
||||
are received, or when the request fails.</p>
|
||||
<div class="refsect3">
|
||||
@ -514,7 +514,7 @@ are received, or when the request fails.</p>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>text</p></td>
|
||||
<td class="parameter_description"><p>the text received, as a UTF-8 encoded string, or
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if retrieving the data failed. </p></td>
|
||||
<code class="literal">NULL</code> if retrieving the data failed. </p></td>
|
||||
<td class="parameter_annotations"><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>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -534,7 +534,7 @@ supplied to
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
<span class="c_punctuation">(</span>*GtkClipboardImageReceivedFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
|
||||
<p>A function to be called when the results of <a class="link" href="gtk3-Clipboards.html#gtk-clipboard-request-image" title="gtk_clipboard_request_image ()"><code class="function">gtk_clipboard_request_image()</code></a>
|
||||
are received, or when the request fails.</p>
|
||||
<div class="refsect3">
|
||||
@ -573,9 +573,9 @@ supplied to
|
||||
<a name="GtkClipboardTargetsReceivedFunc"></a><h3>GtkClipboardTargetsReceivedFunc ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
<span class="c_punctuation">(</span>*GtkClipboardTargetsReceivedFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gdk4/gdk4-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a> *atoms</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n_atoms</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">GdkAtom</span> *atoms</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> n_atoms</code></em>,
|
||||
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
|
||||
<p>A function to be called when the results of <a class="link" href="gtk3-Clipboards.html#gtk-clipboard-request-targets" title="gtk_clipboard_request_targets ()"><code class="function">gtk_clipboard_request_targets()</code></a>
|
||||
are received, or when the request fails.</p>
|
||||
<div class="refsect3">
|
||||
@ -595,7 +595,7 @@ are received, or when the request fails.</p>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>atoms</p></td>
|
||||
<td class="parameter_description"><p>the supported targets,
|
||||
as array of <a href="https://developer.gnome.org/gdk4/gdk4-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a>, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if retrieving the data failed. </p></td>
|
||||
as array of <span class="type">GdkAtom</span>, or <code class="literal">NULL</code> if retrieving the data failed. </p></td>
|
||||
<td class="parameter_annotations"><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="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=n_atoms]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -621,10 +621,10 @@ supplied to
|
||||
<a name="GtkClipboardRichTextReceivedFunc"></a><h3>GtkClipboardRichTextReceivedFunc ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
<span class="c_punctuation">(</span>*GtkClipboardRichTextReceivedFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gdk4/gdk4-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a> format</code></em>,
|
||||
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *text</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> length</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">GdkAtom</span> format</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">guint8</span> *text</code></em>,
|
||||
<em class="parameter"><code><span class="type">gsize</span> length</code></em>,
|
||||
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
|
||||
<p>A function to be called when the results of
|
||||
<a class="link" href="gtk3-Clipboards.html#gtk-clipboard-request-rich-text" title="gtk_clipboard_request_rich_text ()"><code class="function">gtk_clipboard_request_rich_text()</code></a> are received, or when the request
|
||||
fails.</p>
|
||||
@ -650,7 +650,7 @@ fails.</p>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>text</p></td>
|
||||
<td class="parameter_description"><p>the rich text received, as
|
||||
a UTF-8 encoded string, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if retrieving the data failed. </p></td>
|
||||
a UTF-8 encoded string, or <code class="literal">NULL</code> if retrieving the data failed. </p></td>
|
||||
<td class="parameter_annotations"><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="Override the parsed C type with given type."><span class="acronym">type</span></acronym> utf8]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -675,8 +675,8 @@ supplied to
|
||||
<a name="GtkClipboardURIReceivedFunc"></a><h3>GtkClipboardURIReceivedFunc ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
<span class="c_punctuation">(</span>*GtkClipboardURIReceivedFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **uris</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">gchar</span> **uris</code></em>,
|
||||
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
|
||||
<p>A function to be called when the results of
|
||||
<a class="link" href="gtk3-Clipboards.html#gtk-clipboard-request-uris" title="gtk_clipboard_request_uris ()"><code class="function">gtk_clipboard_request_uris()</code></a> are received, or when the request
|
||||
fails.</p>
|
||||
@ -717,8 +717,8 @@ supplied to
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
<span class="c_punctuation">(</span>*GtkClipboardGetFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Selections.html#GtkSelectionData"><span class="type">GtkSelectionData</span></a> *selection_data</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> info</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data_or_owner</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">guint</span> info</code></em>,
|
||||
<em class="parameter"><code><span class="type">gpointer</span> user_data_or_owner</code></em>);</pre>
|
||||
<p>A function that will be called to provide the contents of the selection.
|
||||
If multiple types of data were advertised, the requested type can
|
||||
be determined from the <em class="parameter"><code>info</code></em>
|
||||
@ -775,7 +775,7 @@ argument passed to
|
||||
<a name="GtkClipboardClearFunc"></a><h3>GtkClipboardClearFunc ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
<span class="c_punctuation">(</span>*GtkClipboardClearFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data_or_owner</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">gpointer</span> user_data_or_owner</code></em>);</pre>
|
||||
<p>A function that will be called when the contents of the clipboard are changed
|
||||
or cleared. Once this has called, the <em class="parameter"><code>user_data_or_owner</code></em>
|
||||
argument
|
||||
@ -810,7 +810,7 @@ argument passed to <a class="link" href="gtk3-Clipboards.html#gtk-clipboard-set-
|
||||
<div class="refsect2">
|
||||
<a name="gtk-clipboard-get"></a><h3>gtk_clipboard_get ()</h3>
|
||||
<pre class="programlisting"><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="returnvalue">GtkClipboard</span></a> *
|
||||
gtk_clipboard_get (<em class="parameter"><code><a href="https://developer.gnome.org/gdk4/gdk4-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a> selection</code></em>);</pre>
|
||||
gtk_clipboard_get (<em class="parameter"><code><span class="type">GdkAtom</span> selection</code></em>);</pre>
|
||||
<p>Returns the clipboard object for the given selection.
|
||||
See <a class="link" href="gtk3-Clipboards.html#gtk-clipboard-get-for-display" title="gtk_clipboard_get_for_display ()"><code class="function">gtk_clipboard_get_for_display()</code></a> for complete details.</p>
|
||||
<div class="refsect3">
|
||||
@ -823,7 +823,7 @@ See <a class="link" href="gtk3-Clipboards.html#gtk-clipboard-get-for-display" ti
|
||||
</colgroup>
|
||||
<tbody><tr>
|
||||
<td class="parameter_name"><p>selection</p></td>
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gdk4/gdk4-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a> which identifies the clipboard to use</p></td>
|
||||
<td class="parameter_description"><p>a <span class="type">GdkAtom</span> which identifies the clipboard to use</p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
@ -841,26 +841,26 @@ owned by GTK+, must not be freed or unreffed. </p>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-clipboard-get-for-display"></a><h3>gtk_clipboard_get_for_display ()</h3>
|
||||
<pre class="programlisting"><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="returnvalue">GtkClipboard</span></a> *
|
||||
gtk_clipboard_get_for_display (<em class="parameter"><code><a href="https://developer.gnome.org/gdk4/GdkDisplay.html#GdkDisplay-struct"><span class="type">GdkDisplay</span></a> *display</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gdk4/gdk4-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a> selection</code></em>);</pre>
|
||||
gtk_clipboard_get_for_display (<em class="parameter"><code><span class="type">GdkDisplay</span> *display</code></em>,
|
||||
<em class="parameter"><code><span class="type">GdkAtom</span> selection</code></em>);</pre>
|
||||
<p>Returns the clipboard object for the given selection.
|
||||
Cut/copy/paste menu items and keyboard shortcuts should use
|
||||
the default clipboard, returned by passing <a href="https://developer.gnome.org/gdk3/gdk3-Selections.html#GDK-SELECTION-CLIPBOARD:CAPS"><code class="literal">GDK_SELECTION_CLIPBOARD</code></a> for <em class="parameter"><code>selection</code></em>
|
||||
the default clipboard, returned by passing <code class="literal">GDK_SELECTION_CLIPBOARD</code> for <em class="parameter"><code>selection</code></em>
|
||||
.
|
||||
(<a href="https://developer.gnome.org/gdk3/gdk3-Properties-and-Atoms.html#GDK-NONE:CAPS"><code class="literal">GDK_NONE</code></a> is supported as a synonym for GDK_SELECTION_CLIPBOARD
|
||||
(<code class="literal">GDK_NONE</code> is supported as a synonym for GDK_SELECTION_CLIPBOARD
|
||||
for backwards compatibility reasons.)
|
||||
The currently-selected object or text should be provided on the clipboard
|
||||
identified by <a href="https://developer.gnome.org/gdk3/gdk3-Selections.html#GDK-SELECTION-PRIMARY:CAPS"><span class="type">GDK_SELECTION_PRIMARY</span></a>. Cut/copy/paste menu items
|
||||
conceptually copy the contents of the <a href="https://developer.gnome.org/gdk3/gdk3-Selections.html#GDK-SELECTION-PRIMARY:CAPS"><span class="type">GDK_SELECTION_PRIMARY</span></a> clipboard
|
||||
identified by <span class="type">GDK_SELECTION_PRIMARY</span>. Cut/copy/paste menu items
|
||||
conceptually copy the contents of the <span class="type">GDK_SELECTION_PRIMARY</span> clipboard
|
||||
to the default clipboard, i.e. they copy the selection to what the
|
||||
user sees as the clipboard.</p>
|
||||
<p>(Passing <a href="https://developer.gnome.org/gdk3/gdk3-Properties-and-Atoms.html#GDK-NONE:CAPS"><span class="type">GDK_NONE</span></a> is the same as using <code class="literal">gdk_atom_intern
|
||||
<p>(Passing <span class="type">GDK_NONE</span> is the same as using <code class="literal">gdk_atom_intern
|
||||
("CLIPBOARD", FALSE)</code>.</p>
|
||||
<p>See the
|
||||
<a class="ulink" href="http://www.freedesktop.org/Standards/clipboards-spec" target="_top">FreeDesktop Clipboard Specification</a>
|
||||
for a detailed discussion of the “CLIPBOARD” vs. “PRIMARY”
|
||||
selections under the X window system. On Win32 the
|
||||
<a href="https://developer.gnome.org/gdk3/gdk3-Selections.html#GDK-SELECTION-PRIMARY:CAPS"><span class="type">GDK_SELECTION_PRIMARY</span></a> clipboard is essentially ignored.)</p>
|
||||
<span class="type">GDK_SELECTION_PRIMARY</span> clipboard is essentially ignored.)</p>
|
||||
<p>It’s possible to have arbitrary named clipboards; if you do invent
|
||||
new clipboards, you should prefix the selection name with an
|
||||
underscore (because the ICCCM requires that nonstandard atoms are
|
||||
@ -878,12 +878,12 @@ clipboard, you might call it “_FOO_SPECIAL_CLIPBOARD”.</p>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>display</p></td>
|
||||
<td class="parameter_description"><p>the <a href="https://developer.gnome.org/gdk4/GdkDisplay.html#GdkDisplay-struct"><span class="type">GdkDisplay</span></a> for which the clipboard is to be retrieved or created.</p></td>
|
||||
<td class="parameter_description"><p>the <span class="type">GdkDisplay</span> for which the clipboard is to be retrieved or created.</p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>selection</p></td>
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gdk4/gdk4-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a> which identifies the clipboard to use.</p></td>
|
||||
<td class="parameter_description"><p>a <span class="type">GdkAtom</span> which identifies the clipboard to use.</p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -902,9 +902,9 @@ GTK+, must not be freed or unrefd. </p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-clipboard-get-display"></a><h3>gtk_clipboard_get_display ()</h3>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/gdk4/GdkDisplay.html#GdkDisplay-struct"><span class="returnvalue">GdkDisplay</span></a> *
|
||||
<pre class="programlisting"><span class="returnvalue">GdkDisplay</span> *
|
||||
gtk_clipboard_get_display (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>);</pre>
|
||||
<p>Gets the <a href="https://developer.gnome.org/gdk4/GdkDisplay.html#GdkDisplay-struct"><span class="type">GdkDisplay</span></a> associated with <em class="parameter"><code>clipboard</code></em>
|
||||
<p>Gets the <span class="type">GdkDisplay</span> associated with <em class="parameter"><code>clipboard</code></em>
|
||||
</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-clipboard-get-display.parameters"></a><h4>Parameters</h4>
|
||||
@ -923,7 +923,7 @@ gtk_clipboard_get_display (<em class="parameter"><code><a class="link" href="gtk
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-clipboard-get-display.returns"></a><h4>Returns</h4>
|
||||
<p>the <a href="https://developer.gnome.org/gdk4/GdkDisplay.html#GdkDisplay-struct"><span class="type">GdkDisplay</span></a> associated with <em class="parameter"><code>clipboard</code></em>
|
||||
<p>the <span class="type">GdkDisplay</span> associated with <em class="parameter"><code>clipboard</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,7 +933,7 @@ gtk_clipboard_get_display (<em class="parameter"><code><a class="link" href="gtk
|
||||
<div class="refsect2">
|
||||
<a name="gtk-clipboard-get-default"></a><h3>gtk_clipboard_get_default ()</h3>
|
||||
<pre class="programlisting"><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="returnvalue">GtkClipboard</span></a> *
|
||||
gtk_clipboard_get_default (<em class="parameter"><code><a href="https://developer.gnome.org/gdk4/GdkDisplay.html#GdkDisplay-struct"><span class="type">GdkDisplay</span></a> *display</code></em>);</pre>
|
||||
gtk_clipboard_get_default (<em class="parameter"><code><span class="type">GdkDisplay</span> *display</code></em>);</pre>
|
||||
<p>Returns the default clipboard object for use with cut/copy/paste menu items
|
||||
and keyboard shortcuts.</p>
|
||||
<div class="refsect3">
|
||||
@ -946,7 +946,7 @@ and keyboard shortcuts.</p>
|
||||
</colgroup>
|
||||
<tbody><tr>
|
||||
<td class="parameter_name"><p>display</p></td>
|
||||
<td class="parameter_description"><p>the <a href="https://developer.gnome.org/gdk4/GdkDisplay.html#GdkDisplay-struct"><span class="type">GdkDisplay</span></a> for which the clipboard is to be retrieved.</p></td>
|
||||
<td class="parameter_description"><p>the <span class="type">GdkDisplay</span> for which the clipboard is to be retrieved.</p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
@ -961,13 +961,13 @@ and keyboard shortcuts.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-clipboard-set-with-data"></a><h3>gtk_clipboard_set_with_data ()</h3>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||||
gtk_clipboard_set_with_data (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
||||
<em class="parameter"><code>const <a class="link" href="gtk3-Selections.html#GtkTargetEntry" title="struct GtkTargetEntry"><span class="type">GtkTargetEntry</span></a> *targets</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> n_targets</code></em>,
|
||||
<em class="parameter"><code><span class="type">guint</span> n_targets</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboardGetFunc" title="GtkClipboardGetFunc ()"><span class="type">GtkClipboardGetFunc</span></a> get_func</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboardClearFunc" title="GtkClipboardClearFunc ()"><span class="type">GtkClipboardClearFunc</span></a> clear_func</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
|
||||
<p>Virtually sets the contents of the specified clipboard by providing
|
||||
a list of supported formats for the clipboard data and a function
|
||||
to call to get the actual data when it is requested.</p>
|
||||
@ -1023,7 +1023,7 @@ and <em class="parameter"><code>clear_func</code></em>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-clipboard-set-with-data.returns"></a><h4>Returns</h4>
|
||||
<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if setting the clipboard data succeeded.
|
||||
<p> <code class="literal">TRUE</code> if setting the clipboard data succeeded.
|
||||
If setting the clipboard data failed the provided callback
|
||||
functions will be ignored.</p>
|
||||
</div>
|
||||
@ -1031,19 +1031,19 @@ functions will be ignored.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-clipboard-set-with-owner"></a><h3>gtk_clipboard_set_with_owner ()</h3>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||||
gtk_clipboard_set_with_owner (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
||||
<em class="parameter"><code>const <a class="link" href="gtk3-Selections.html#GtkTargetEntry" title="struct GtkTargetEntry"><span class="type">GtkTargetEntry</span></a> *targets</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> n_targets</code></em>,
|
||||
<em class="parameter"><code><span class="type">guint</span> n_targets</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboardGetFunc" title="GtkClipboardGetFunc ()"><span class="type">GtkClipboardGetFunc</span></a> get_func</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboardClearFunc" title="GtkClipboardClearFunc ()"><span class="type">GtkClipboardClearFunc</span></a> clear_func</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> *owner</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">GObject</span> *owner</code></em>);</pre>
|
||||
<p>Virtually sets the contents of the specified clipboard by providing
|
||||
a list of supported formats for the clipboard data and a function
|
||||
to call to get the actual data when it is requested.</p>
|
||||
<p>The difference between this function and <a class="link" href="gtk3-Clipboards.html#gtk-clipboard-set-with-data" title="gtk_clipboard_set_with_data ()"><code class="function">gtk_clipboard_set_with_data()</code></a>
|
||||
is that instead of an generic <em class="parameter"><code>user_data</code></em>
|
||||
pointer, a <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> is passed
|
||||
pointer, a <span class="type">GObject</span> is passed
|
||||
in.</p>
|
||||
<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
|
||||
<div class="refsect3">
|
||||
@ -1096,7 +1096,7 @@ to the callbacks when called</p></td>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-clipboard-set-with-owner.returns"></a><h4>Returns</h4>
|
||||
<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if setting the clipboard data succeeded.
|
||||
<p> <code class="literal">TRUE</code> if setting the clipboard data succeeded.
|
||||
If setting the clipboard data failed the provided callback
|
||||
functions will be ignored.</p>
|
||||
</div>
|
||||
@ -1104,7 +1104,7 @@ functions will be ignored.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-clipboard-get-owner"></a><h3>gtk_clipboard_get_owner ()</h3>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GObject-struct"><span class="returnvalue">GObject</span></a> *
|
||||
<pre class="programlisting"><span class="returnvalue">GObject</span> *
|
||||
gtk_clipboard_get_owner (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>);</pre>
|
||||
<p>If the clipboard contents callbacks were set with
|
||||
<a class="link" href="gtk3-Clipboards.html#gtk-clipboard-set-with-owner" title="gtk_clipboard_set_with_owner ()"><code class="function">gtk_clipboard_set_with_owner()</code></a>, and the <a class="link" href="gtk3-Clipboards.html#gtk-clipboard-set-with-data" title="gtk_clipboard_set_with_data ()"><code class="function">gtk_clipboard_set_with_data()</code></a> or
|
||||
@ -1128,7 +1128,7 @@ by <a class="link" href="gtk3-Clipboards.html#gtk-clipboard-set-with-owner" titl
|
||||
<div class="refsect3">
|
||||
<a name="gtk-clipboard-get-owner.returns"></a><h4>Returns</h4>
|
||||
<p>the owner of the clipboard, if any;
|
||||
otherwise <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p>
|
||||
otherwise <code class="literal">NULL</code>. </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>
|
||||
</div>
|
||||
@ -1164,8 +1164,8 @@ clipboard may be owned by someone else.</p>
|
||||
<a name="gtk-clipboard-set-text"></a><h3>gtk_clipboard_set_text ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_clipboard_set_text (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
||||
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *text</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> len</code></em>);</pre>
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *text</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> len</code></em>);</pre>
|
||||
<p>Sets the contents of the clipboard to the given UTF-8 string. GTK+ will
|
||||
make a copy of the text and take responsibility for responding
|
||||
for requests for the text, and for converting the text into
|
||||
@ -1239,9 +1239,9 @@ requested format.</p>
|
||||
<a name="gtk-clipboard-request-contents"></a><h3>gtk_clipboard_request_contents ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_clipboard_request_contents (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gdk4/gdk4-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a> target</code></em>,
|
||||
<em class="parameter"><code><span class="type">GdkAtom</span> target</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboardReceivedFunc" title="GtkClipboardReceivedFunc ()"><span class="type">GtkClipboardReceivedFunc</span></a> callback</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
|
||||
<p>Requests the contents of clipboard as the given target.
|
||||
When the results of the result are later received the supplied callback
|
||||
will be called.</p>
|
||||
@ -1289,7 +1289,7 @@ will be negative. </p></td>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_clipboard_request_text (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboardTextReceivedFunc" title="GtkClipboardTextReceivedFunc ()"><span class="type">GtkClipboardTextReceivedFunc</span></a> callback</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
|
||||
<p>Requests the contents of the clipboard as text. When the text is
|
||||
later received, it will be converted to UTF-8 if necessary, and
|
||||
<em class="parameter"><code>callback</code></em>
|
||||
@ -1297,7 +1297,7 @@ later received, it will be converted to UTF-8 if necessary, and
|
||||
<p>The <em class="parameter"><code>text</code></em>
|
||||
parameter to <em class="parameter"><code>callback</code></em>
|
||||
will contain the resulting text if
|
||||
the request succeeded, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if it failed. This could happen for
|
||||
the request succeeded, or <code class="literal">NULL</code> if it failed. This could happen for
|
||||
various reasons, in particular if the clipboard was empty or if the
|
||||
contents of the clipboard could not be converted into text form.</p>
|
||||
<div class="refsect3">
|
||||
@ -1336,7 +1336,7 @@ or the retrieval fails. (It will always be called one way or the other.). </p></
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_clipboard_request_image (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboardImageReceivedFunc" title="GtkClipboardImageReceivedFunc ()"><span class="type">GtkClipboardImageReceivedFunc</span></a> callback</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
|
||||
<p>Requests the contents of the clipboard as image. When the image is
|
||||
later received, it will be converted to a <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="type">GdkPixbuf</span></a>, and
|
||||
<em class="parameter"><code>callback</code></em>
|
||||
@ -1344,7 +1344,7 @@ later received, it will be converted to a <a href="http://library.gnome.org/deve
|
||||
<p>The <em class="parameter"><code>pixbuf</code></em>
|
||||
parameter to <em class="parameter"><code>callback</code></em>
|
||||
will contain the resulting
|
||||
<a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="type">GdkPixbuf</span></a> if the request succeeded, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if it failed. This
|
||||
<a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="type">GdkPixbuf</span></a> if the request succeeded, or <code class="literal">NULL</code> if it failed. This
|
||||
could happen for various reasons, in particular if the clipboard
|
||||
was empty or if the contents of the clipboard could not be
|
||||
converted into an image.</p>
|
||||
@ -1385,14 +1385,14 @@ or the retrieval fails. (It will always be called one way or the other.). </p></
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_clipboard_request_targets (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboardTargetsReceivedFunc" title="GtkClipboardTargetsReceivedFunc ()"><span class="type">GtkClipboardTargetsReceivedFunc</span></a> callback</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
|
||||
<p>Requests the contents of the clipboard as list of supported targets.
|
||||
When the list is later received, <em class="parameter"><code>callback</code></em>
|
||||
will be called.</p>
|
||||
<p>The <em class="parameter"><code>targets</code></em>
|
||||
parameter to <em class="parameter"><code>callback</code></em>
|
||||
will contain the resulting targets if
|
||||
the request succeeded, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if it failed.</p>
|
||||
the request succeeded, or <code class="literal">NULL</code> if it failed.</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-clipboard-request-targets.parameters"></a><h4>Parameters</h4>
|
||||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||||
@ -1432,14 +1432,14 @@ one way or the other.). </p></td>
|
||||
gtk_clipboard_request_rich_text (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> *buffer</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboardRichTextReceivedFunc" title="GtkClipboardRichTextReceivedFunc ()"><span class="type">GtkClipboardRichTextReceivedFunc</span></a> callback</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
|
||||
<p>Requests the contents of the clipboard as rich text. When the rich
|
||||
text is later received, <em class="parameter"><code>callback</code></em>
|
||||
will be called.</p>
|
||||
<p>The <em class="parameter"><code>text</code></em>
|
||||
parameter to <em class="parameter"><code>callback</code></em>
|
||||
will contain the resulting rich
|
||||
text if the request succeeded, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if it failed. The <em class="parameter"><code>length</code></em>
|
||||
text if the request succeeded, or <code class="literal">NULL</code> if it failed. The <em class="parameter"><code>length</code></em>
|
||||
|
||||
parameter will contain <em class="parameter"><code>text</code></em>
|
||||
’s length. This function can fail for
|
||||
@ -1487,14 +1487,14 @@ or the retrieval fails. (It will always be called one way or the other.). </p></
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_clipboard_request_uris (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboardURIReceivedFunc" title="GtkClipboardURIReceivedFunc ()"><span class="type">GtkClipboardURIReceivedFunc</span></a> callback</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
|
||||
<p>Requests the contents of the clipboard as URIs. When the URIs are
|
||||
later received <em class="parameter"><code>callback</code></em>
|
||||
will be called.</p>
|
||||
<p>The <em class="parameter"><code>uris</code></em>
|
||||
parameter to <em class="parameter"><code>callback</code></em>
|
||||
will contain the resulting array of
|
||||
URIs if the request succeeded, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if it failed. This could happen
|
||||
URIs if the request succeeded, or <code class="literal">NULL</code> if it failed. This could happen
|
||||
for various reasons, in particular if the clipboard was empty or if the
|
||||
contents of the clipboard could not be converted into URI form.</p>
|
||||
<div class="refsect3">
|
||||
@ -1533,7 +1533,7 @@ or the retrieval fails. (It will always be called one way or the other.). </p></
|
||||
<a name="gtk-clipboard-wait-for-contents"></a><h3>gtk_clipboard_wait_for_contents ()</h3>
|
||||
<pre class="programlisting"><a class="link" href="gtk3-Selections.html#GtkSelectionData"><span class="returnvalue">GtkSelectionData</span></a> *
|
||||
gtk_clipboard_wait_for_contents (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gdk4/gdk4-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a> target</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">GdkAtom</span> target</code></em>);</pre>
|
||||
<p>Requests the contents of the clipboard using the given target.
|
||||
This function waits for the data to be received using the main
|
||||
loop, so events, timeouts, etc, may be dispatched during the wait.</p>
|
||||
@ -1562,8 +1562,8 @@ owner should convert the selection.</p></td>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-clipboard-wait-for-contents.returns"></a><h4>Returns</h4>
|
||||
<p>a newly-allocated <a class="link" href="gtk3-Selections.html#GtkSelectionData"><span class="type">GtkSelectionData</span></a> object or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
||||
if retrieving the given target failed. If non-<a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>,
|
||||
<p>a newly-allocated <a class="link" href="gtk3-Selections.html#GtkSelectionData"><span class="type">GtkSelectionData</span></a> object or <code class="literal">NULL</code>
|
||||
if retrieving the given target failed. If non-<code class="literal">NULL</code>,
|
||||
this value must be freed with <a class="link" href="gtk3-Selections.html#gtk-selection-data-free" title="gtk_selection_data_free ()"><code class="function">gtk_selection_data_free()</code></a>
|
||||
when you are finished with it. </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>]</span></p>
|
||||
@ -1572,7 +1572,7 @@ when you are finished with it. </p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-clipboard-wait-for-text"></a><h3>gtk_clipboard_wait_for_text ()</h3>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
||||
<pre class="programlisting"><span class="returnvalue">gchar</span> *
|
||||
gtk_clipboard_wait_for_text (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>);</pre>
|
||||
<p>Requests the contents of the clipboard as text and converts
|
||||
the result to UTF-8 if necessary. This function waits for
|
||||
@ -1596,7 +1596,7 @@ timeouts, etc, may be dispatched during the wait.</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-clipboard-wait-for-text.returns"></a><h4>Returns</h4>
|
||||
<p>a newly-allocated UTF-8 string which must
|
||||
be freed with <a href="https://developer.gnome.org/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if retrieving
|
||||
be freed with <code class="function">g_free()</code>, or <code class="literal">NULL</code> if retrieving
|
||||
the selection data failed. (This could happen
|
||||
for various reasons, in particular if the
|
||||
clipboard was empty or if the contents of the
|
||||
@ -1631,8 +1631,8 @@ timeouts, etc, may be dispatched during the wait.</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-clipboard-wait-for-image.returns"></a><h4>Returns</h4>
|
||||
<p>a newly-allocated <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="type">GdkPixbuf</span></a>
|
||||
object which must be disposed with <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>, or
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if retrieving the selection data failed. (This could
|
||||
object which must be disposed with <code class="function">g_object_unref()</code>, or
|
||||
<code class="literal">NULL</code> if retrieving the selection data failed. (This could
|
||||
happen for various reasons, in particular if the clipboard
|
||||
was empty or if the contents of the clipboard could not be
|
||||
converted into an image.). </p>
|
||||
@ -1643,11 +1643,11 @@ converted into an image.). </p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-clipboard-wait-for-rich-text"></a><h3>gtk_clipboard_wait_for_rich_text ()</h3>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> *
|
||||
<pre class="programlisting"><span class="returnvalue">guint8</span> *
|
||||
gtk_clipboard_wait_for_rich_text (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> *buffer</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gdk4/gdk4-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a> *format</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> *length</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">GdkAtom</span> *format</code></em>,
|
||||
<em class="parameter"><code><span class="type">gsize</span> *length</code></em>);</pre>
|
||||
<p>Requests the contents of the clipboard as rich text. This function
|
||||
waits for the data to be received using the main loop, so events,
|
||||
timeouts, etc, may be dispatched during the wait.</p>
|
||||
@ -1687,7 +1687,7 @@ timeouts, etc, may be dispatched during the wait.</p>
|
||||
<a name="gtk-clipboard-wait-for-rich-text.returns"></a><h4>Returns</h4>
|
||||
<p>a
|
||||
newly-allocated binary block of data which must be
|
||||
freed with <a href="https://developer.gnome.org/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if retrieving the
|
||||
freed with <code class="function">g_free()</code>, or <code class="literal">NULL</code> if retrieving the
|
||||
selection data failed. (This could happen for various
|
||||
reasons, in particular if the clipboard was empty or
|
||||
if the contents of the clipboard could not be
|
||||
@ -1699,7 +1699,7 @@ converted into text form.). </p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-clipboard-wait-for-uris"></a><h3>gtk_clipboard_wait_for_uris ()</h3>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> **
|
||||
<pre class="programlisting"><span class="returnvalue">gchar</span> **
|
||||
gtk_clipboard_wait_for_uris (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>);</pre>
|
||||
<p>Requests the contents of the clipboard as URIs. This function waits
|
||||
for the data to be received using the main loop, so events,
|
||||
@ -1721,8 +1721,8 @@ timeouts, etc, may be dispatched during the wait.</p>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-clipboard-wait-for-uris.returns"></a><h4>Returns</h4>
|
||||
<p>a newly-allocated <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated array of strings which must
|
||||
be freed with <a href="https://developer.gnome.org/glib/unstable/glib-String-Utility-Functions.html#g-strfreev"><code class="function">g_strfreev()</code></a>, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if retrieving the
|
||||
<p>a newly-allocated <code class="literal">NULL</code>-terminated array of strings which must
|
||||
be freed with <code class="function">g_strfreev()</code>, or <code class="literal">NULL</code> if retrieving the
|
||||
selection data failed. (This could happen for various reasons,
|
||||
in particular if the clipboard was empty or if the contents of
|
||||
the clipboard could not be converted into URI form.). </p>
|
||||
@ -1733,7 +1733,7 @@ the clipboard could not be converted into URI form.). </p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-clipboard-wait-is-text-available"></a><h3>gtk_clipboard_wait_is_text_available ()</h3>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||||
gtk_clipboard_wait_is_text_available (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>);</pre>
|
||||
<p>Test to see if there is text available to be pasted
|
||||
This is done by requesting the TARGETS atom and checking
|
||||
@ -1760,13 +1760,13 @@ the actual text.</p>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-clipboard-wait-is-text-available.returns"></a><h4>Returns</h4>
|
||||
<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> is there is text available, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
|
||||
<p> <code class="literal">TRUE</code> is there is text available, <code class="literal">FALSE</code> otherwise.</p>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-clipboard-wait-is-image-available"></a><h3>gtk_clipboard_wait_is_image_available ()</h3>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||||
gtk_clipboard_wait_is_image_available (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>);</pre>
|
||||
<p>Test to see if there is an image available to be pasted
|
||||
This is done by requesting the TARGETS atom and checking
|
||||
@ -1793,14 +1793,14 @@ the actual image data.</p>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-clipboard-wait-is-image-available.returns"></a><h4>Returns</h4>
|
||||
<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> is there is an image available, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
|
||||
<p> <code class="literal">TRUE</code> is there is an image available, <code class="literal">FALSE</code> otherwise.</p>
|
||||
</div>
|
||||
<p class="since">Since: 2.6</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-clipboard-wait-is-rich-text-available"></a><h3>gtk_clipboard_wait_is_rich_text_available ()</h3>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||||
gtk_clipboard_wait_is_rich_text_available
|
||||
(<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> *buffer</code></em>);</pre>
|
||||
@ -1836,14 +1836,14 @@ the actual text.</p>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-clipboard-wait-is-rich-text-available.returns"></a><h4>Returns</h4>
|
||||
<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> is there is rich text available, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
|
||||
<p> <code class="literal">TRUE</code> is there is rich text available, <code class="literal">FALSE</code> otherwise.</p>
|
||||
</div>
|
||||
<p class="since">Since: 2.10</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-clipboard-wait-is-uris-available"></a><h3>gtk_clipboard_wait_is_uris_available ()</h3>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||||
gtk_clipboard_wait_is_uris_available (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>);</pre>
|
||||
<p>Test to see if there is a list of URIs available to be pasted
|
||||
This is done by requesting the TARGETS atom and checking
|
||||
@ -1870,20 +1870,20 @@ the actual URI data.</p>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-clipboard-wait-is-uris-available.returns"></a><h4>Returns</h4>
|
||||
<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> is there is an URI list available, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
|
||||
<p> <code class="literal">TRUE</code> is there is an URI list available, <code class="literal">FALSE</code> otherwise.</p>
|
||||
</div>
|
||||
<p class="since">Since: 2.14</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-clipboard-wait-for-targets"></a><h3>gtk_clipboard_wait_for_targets ()</h3>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||||
gtk_clipboard_wait_for_targets (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gdk4/gdk4-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a> **targets</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *n_targets</code></em>);</pre>
|
||||
<p>Returns a list of targets that are present on the clipboard, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
||||
<em class="parameter"><code><span class="type">GdkAtom</span> **targets</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> *n_targets</code></em>);</pre>
|
||||
<p>Returns a list of targets that are present on the clipboard, or <code class="literal">NULL</code>
|
||||
if there aren’t any targets available. The returned list must be
|
||||
freed with <a href="https://developer.gnome.org/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.
|
||||
freed with <code class="function">g_free()</code>.
|
||||
This function waits for the data to be received using the main
|
||||
loop, so events, timeouts, etc, may be dispatched during the wait.</p>
|
||||
<div class="refsect3">
|
||||
@ -1904,7 +1904,7 @@ loop, so events, timeouts, etc, may be dispatched during the wait.</p>
|
||||
<td class="parameter_name"><p>targets</p></td>
|
||||
<td class="parameter_description"><p>location
|
||||
to store an array of targets. The result stored here must
|
||||
be freed with <a href="https://developer.gnome.org/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>. </p></td>
|
||||
be freed with <code class="function">g_free()</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=n_targets][<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -1918,18 +1918,18 @@ be freed with <a href="https://developer.gnome.org/glib/unstable/glib-Memory-All
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-clipboard-wait-for-targets.returns"></a><h4>Returns</h4>
|
||||
<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if any targets are present on the clipboard,
|
||||
otherwise <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>.</p>
|
||||
<p> <code class="literal">TRUE</code> if any targets are present on the clipboard,
|
||||
otherwise <code class="literal">FALSE</code>.</p>
|
||||
</div>
|
||||
<p class="since">Since: 2.4</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-clipboard-wait-is-target-available"></a><h3>gtk_clipboard_wait_is_target_available ()</h3>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||||
gtk_clipboard_wait_is_target_available
|
||||
(<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gdk4/gdk4-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a> target</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">GdkAtom</span> target</code></em>);</pre>
|
||||
<p>Checks if a clipboard supports pasting data of a given type. This
|
||||
function can be used to determine if a “Paste” menu item should be
|
||||
insensitive or not.</p>
|
||||
@ -1951,7 +1951,7 @@ insensitive or not.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>target</p></td>
|
||||
<td class="parameter_description"><p>A <a href="https://developer.gnome.org/gdk4/gdk4-Properties-and-Atoms.html#GdkAtom"><span class="type">GdkAtom</span></a> indicating which target to look for.</p></td>
|
||||
<td class="parameter_description"><p>A <span class="type">GdkAtom</span> indicating which target to look for.</p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1959,7 +1959,7 @@ insensitive or not.</p>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-clipboard-wait-is-target-available.returns"></a><h4>Returns</h4>
|
||||
<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the target is available, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
|
||||
<p> <code class="literal">TRUE</code> if the target is available, <code class="literal">FALSE</code> otherwise.</p>
|
||||
</div>
|
||||
<p class="since">Since: 2.6</p>
|
||||
</div>
|
||||
@ -1969,12 +1969,12 @@ insensitive or not.</p>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_clipboard_set_can_store (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
||||
<em class="parameter"><code>const <a class="link" href="gtk3-Selections.html#GtkTargetEntry" title="struct GtkTargetEntry"><span class="type">GtkTargetEntry</span></a> *targets</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n_targets</code></em>);</pre>
|
||||
<em class="parameter"><code><span class="type">gint</span> n_targets</code></em>);</pre>
|
||||
<p>Hints that the clipboard data should be stored somewhere when the
|
||||
application exits or when <a class="link" href="gtk3-Clipboards.html#gtk-clipboard-store" title="gtk_clipboard_store ()"><code class="function">gtk_clipboard_store()</code></a> is called.</p>
|
||||
<p>This value is reset when the clipboard owner changes.
|
||||
Where the clipboard data is stored is platform dependent,
|
||||
see <a href="https://developer.gnome.org/gdk3/GdkDisplay.html#gdk-display-store-clipboard"><code class="function">gdk_display_store_clipboard()</code></a> for more information.</p>
|
||||
see <code class="function">gdk_display_store_clipboard()</code> for more information.</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-clipboard-set-can-store.parameters"></a><h4>Parameters</h4>
|
||||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||||
@ -1992,7 +1992,7 @@ see <a href="https://developer.gnome.org/gdk3/GdkDisplay.html#gdk-display-store-
|
||||
<tr>
|
||||
<td class="parameter_name"><p>targets</p></td>
|
||||
<td class="parameter_description"><p>array containing
|
||||
information about which forms should be stored or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
||||
information about which forms should be stored or <code class="literal">NULL</code>
|
||||
to indicate that all forms should be stored. </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>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=n_targets]</span></td>
|
||||
</tr>
|
||||
@ -2034,7 +2034,7 @@ around after the application has quit.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-clipboard-get-selection"></a><h3>gtk_clipboard_get_selection ()</h3>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/gdk4/gdk4-Properties-and-Atoms.html#GdkAtom"><span class="returnvalue">GdkAtom</span></a>
|
||||
<pre class="programlisting"><span class="returnvalue">GdkAtom</span>
|
||||
gtk_clipboard_get_selection (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>);</pre>
|
||||
<p>Gets the selection that this clipboard is for.</p>
|
||||
<div class="refsect3">
|
||||
@ -2072,8 +2072,8 @@ gtk_clipboard_get_selection (<em class="parameter"><code><a class="link" href="g
|
||||
<a name="GtkClipboard-owner-change"></a><h3>The <code class="literal">“owner-change”</code> signal</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
user_function (<a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard,
|
||||
<a href="https://developer.gnome.org/gdk3/gdk3-Event-Structures.html#GdkEvent"><span class="type">GdkEvent</span></a> *event,
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
|
||||
<span class="type">GdkEvent</span> *event,
|
||||
<span class="type">gpointer</span> user_data)</pre>
|
||||
<p>The ::owner-change signal is emitted when GTK+ receives an
|
||||
event that indicates that the ownership of the selection
|
||||
associated with <em class="parameter"><code>clipboard</code></em>
|
||||
@ -2106,7 +2106,7 @@ event. </p></td>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
<p>Flags: <a href="https://developer.gnome.org/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS">Run First</a></p>
|
||||
<p>Flags: Run First</p>
|
||||
<p class="since">Since: 2.6</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user