New upstream version 3.23.0
This commit is contained in:
@ -3,12 +3,12 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>GtkLabel: GTK+ 3 Reference Manual</title>
|
||||
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
|
||||
<link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
|
||||
<link rel="up" href="DisplayWidgets.html" title="Display Widgets">
|
||||
<link rel="prev" href="DisplayWidgets.html" title="Display Widgets">
|
||||
<link rel="next" href="GtkImage.html" title="GtkImage">
|
||||
<meta name="generator" content="GTK-Doc V1.27 (XML mode)">
|
||||
<meta name="generator" content="GTK-Doc V1.25 (XML mode)">
|
||||
<link rel="stylesheet" href="style.css" type="text/css">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
@ -647,25 +647,13 @@ implies, most labels are used to label another widget such as a
|
||||
<a class="link" href="GtkButton.html" title="GtkButton"><span class="type">GtkButton</span></a>, a <a class="link" href="GtkMenuItem.html" title="GtkMenuItem"><span class="type">GtkMenuItem</span></a>, or a <a class="link" href="GtkComboBox.html" title="GtkComboBox"><span class="type">GtkComboBox</span></a>.</p>
|
||||
<div class="refsect2">
|
||||
<a name="id-1.3.8.2.10.3"></a><h3>CSS nodes</h3>
|
||||
<div class="informalexample">
|
||||
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="listing_lines" align="right"><pre>1
|
||||
2
|
||||
3
|
||||
4
|
||||
5</pre></td>
|
||||
<td class="listing_code"><pre class="programlisting"><span class="normal">label</span>
|
||||
<span class="normal">├── </span><span class="symbol">[</span><span class="normal">selection</span><span class="symbol">]</span>
|
||||
<span class="normal">├── </span><span class="symbol">[</span><span class="normal">link</span><span class="symbol">]</span>
|
||||
<span class="normal">┊</span>
|
||||
<span class="normal">╰── </span><span class="symbol">[</span><span class="normal">link</span><span class="symbol">]</span></pre></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="informalexample"><pre class="programlisting">
|
||||
label
|
||||
├── [selection]
|
||||
├── [link]
|
||||
┊
|
||||
╰── [link]
|
||||
</pre></div>
|
||||
<p></p>
|
||||
<p>GtkLabel has a single CSS node with the name label. A wide variety
|
||||
of style classes may be applied to labels, such as .title, .subtitle,
|
||||
@ -685,27 +673,14 @@ elements. The <attribute> element has attributes named “name“, “valu
|
||||
“start“ and “end“ and allows you to specify <span class="type">PangoAttribute</span> values for
|
||||
this label.</p>
|
||||
<p>An example of a UI definition fragment specifying Pango attributes:</p>
|
||||
<div class="informalexample">
|
||||
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="listing_lines" align="right"><pre>1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6</pre></td>
|
||||
<td class="listing_code"><pre class="programlisting"><span class="symbol"><</span><span class="usertype">object</span><span class="normal"> class</span><span class="symbol">=</span><span class="string">"GtkLabel"</span><span class="symbol">></span>
|
||||
<span class="normal"> </span><span class="symbol"><</span><span class="normal">attributes</span><span class="symbol">></span>
|
||||
<span class="normal"> </span><span class="symbol"><</span><span class="usertype">attribute</span><span class="normal"> name</span><span class="symbol">=</span><span class="string">"weight"</span><span class="normal"> value</span><span class="symbol">=</span><span class="string">"PANGO_WEIGHT_BOLD"</span><span class="symbol">/></span>
|
||||
<span class="normal"> </span><span class="symbol"><</span><span class="usertype">attribute</span><span class="normal"> name</span><span class="symbol">=</span><span class="string">"background"</span><span class="normal"> value</span><span class="symbol">=</span><span class="string">"red"</span><span class="normal"> start</span><span class="symbol">=</span><span class="string">"5"</span><span class="normal"> end</span><span class="symbol">=</span><span class="string">"10"</span><span class="symbol">/></span>
|
||||
<span class="normal"> </span><span class="symbol"></</span><span class="normal">attributes</span><span class="symbol">></span>
|
||||
<span class="symbol"></</span><span class="normal">object</span><span class="symbol">></span></pre></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="informalexample"><pre class="programlisting">
|
||||
<object class="GtkLabel">
|
||||
<attributes>
|
||||
<attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
|
||||
<attribute name="background" value="red" start="5" end="10"/>
|
||||
</attributes>
|
||||
</object>
|
||||
</pre></div>
|
||||
<p></p>
|
||||
<p>The start and end attributes specify the range of characters to which the
|
||||
Pango attribute applies. If start and end are not specified, the attribute is
|
||||
@ -727,60 +702,29 @@ inside, such as a <a class="link" href="GtkButton.html" title="GtkButton"><span
|
||||
mnemonic’s target widget, you have to tell the label about the target
|
||||
using <a class="link" href="GtkLabel.html#gtk-label-set-mnemonic-widget" title="gtk_label_set_mnemonic_widget ()"><code class="function">gtk_label_set_mnemonic_widget()</code></a>. Here’s a simple example where
|
||||
the label is inside a button:</p>
|
||||
<div class="informalexample">
|
||||
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="listing_lines" align="right"><pre>1
|
||||
2
|
||||
3
|
||||
4</pre></td>
|
||||
<td class="listing_code"><pre class="programlisting"><span class="comment">// Pressing Alt+H will activate this button</span>
|
||||
<span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">button </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkButton.html#gtk-button-new">gtk_button_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
||||
<span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">label </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkLabel.html#gtk-label-new-with-mnemonic">gtk_label_new_with_mnemonic</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"_Hello"</span><span class="symbol">);</span>
|
||||
<span class="function"><a href="GtkContainer.html#gtk-container-add">gtk_container_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button</span><span class="symbol">),</span><span class="normal"> label</span><span class="symbol">);</span></pre></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="informalexample"><pre class="programlisting">
|
||||
// Pressing Alt+H will activate this button
|
||||
GtkWidget *button = gtk_button_new ();
|
||||
GtkWidget *label = gtk_label_new_with_mnemonic ("_Hello");
|
||||
gtk_container_add (GTK_CONTAINER (button), label);
|
||||
</pre></div>
|
||||
<p></p>
|
||||
<p>There’s a convenience function to create buttons with a mnemonic label
|
||||
already inside:</p>
|
||||
<div class="informalexample">
|
||||
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="listing_lines" align="right"><pre>1
|
||||
2</pre></td>
|
||||
<td class="listing_code"><pre class="programlisting"><span class="comment">// Pressing Alt+H will activate this button</span>
|
||||
<span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">button </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkButton.html#gtk-button-new-with-mnemonic">gtk_button_new_with_mnemonic</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"_Hello"</span><span class="symbol">);</span></pre></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="informalexample"><pre class="programlisting">
|
||||
// Pressing Alt+H will activate this button
|
||||
GtkWidget *button = gtk_button_new_with_mnemonic ("_Hello");
|
||||
</pre></div>
|
||||
<p></p>
|
||||
<p>To create a mnemonic for a widget alongside the label, such as a
|
||||
<a class="link" href="GtkEntry.html" title="GtkEntry"><span class="type">GtkEntry</span></a>, you have to point the label at the entry with
|
||||
<a class="link" href="GtkLabel.html#gtk-label-set-mnemonic-widget" title="gtk_label_set_mnemonic_widget ()"><code class="function">gtk_label_set_mnemonic_widget()</code></a>:</p>
|
||||
<div class="informalexample">
|
||||
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="listing_lines" align="right"><pre>1
|
||||
2
|
||||
3
|
||||
4</pre></td>
|
||||
<td class="listing_code"><pre class="programlisting"><span class="comment">// Pressing Alt+H will focus the entry</span>
|
||||
<span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">entry </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkEntry.html#gtk-entry-new">gtk_entry_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
||||
<span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">label </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkLabel.html#gtk-label-new-with-mnemonic">gtk_label_new_with_mnemonic</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"_Hello"</span><span class="symbol">);</span>
|
||||
<span class="function"><a href="GtkLabel.html#gtk-label-set-mnemonic-widget">gtk_label_set_mnemonic_widget</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_LABEL</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">label</span><span class="symbol">),</span><span class="normal"> entry</span><span class="symbol">);</span></pre></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="informalexample"><pre class="programlisting">
|
||||
// Pressing Alt+H will focus the entry
|
||||
GtkWidget *entry = gtk_entry_new ();
|
||||
GtkWidget *label = gtk_label_new_with_mnemonic ("_Hello");
|
||||
gtk_label_set_mnemonic_widget (GTK_LABEL (label), entry);
|
||||
</pre></div>
|
||||
<p></p>
|
||||
</div>
|
||||
<hr>
|
||||
@ -790,19 +734,10 @@ already inside:</p>
|
||||
fonts, etc.), label text can be provided in a simple
|
||||
markup format.</p>
|
||||
<p>Here’s how to create a label with a small font:</p>
|
||||
<div class="informalexample">
|
||||
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="listing_lines" align="right"><pre>1
|
||||
2</pre></td>
|
||||
<td class="listing_code"><pre class="programlisting"><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">label </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkLabel.html#gtk-label-new">gtk_label_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">NULL</span><span class="symbol">);</span>
|
||||
<span class="function"><a href="GtkLabel.html#gtk-label-set-markup">gtk_label_set_markup</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_LABEL</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">label</span><span class="symbol">),</span><span class="normal"> </span><span class="string">"<small>Small text</small>"</span><span class="symbol">);</span></pre></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="informalexample"><pre class="programlisting">
|
||||
GtkWidget *label = gtk_label_new (NULL);
|
||||
gtk_label_set_markup (GTK_LABEL (label), "<small>Small text</small>");
|
||||
</pre></div>
|
||||
<p></p>
|
||||
<p>(See complete documentation of available
|
||||
tags in the Pango manual.)</p>
|
||||
@ -858,31 +793,18 @@ labels will be rewrapped to use all of the available width.</p>
|
||||
<a name="id-1.3.8.2.10.9"></a><h3>Links</h3>
|
||||
<p>Since 2.18, GTK+ supports markup for clickable hyperlinks in addition
|
||||
to regular Pango markup. The markup for links is borrowed from HTML,
|
||||
using the <code class="literal">&lt;a></code> with “href“ and “title“ attributes. GTK+ renders links
|
||||
using the <code class="literal"><a></code> with “href“ and “title“ attributes. GTK+ renders links
|
||||
similar to the way they appear in web browsers, with colored, underlined
|
||||
text. The “title“ attribute is displayed as a tooltip on the link.</p>
|
||||
<p>An example looks like this:</p>
|
||||
<div class="informalexample">
|
||||
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="listing_lines" align="right"><pre>1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6</pre></td>
|
||||
<td class="listing_code"><pre class="programlisting"><span class="keyword">const</span><span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">text </span><span class="symbol">=</span>
|
||||
<span class="string">"Go to the"</span>
|
||||
<span class="string">"<a href=</span><span class="specialchar">\"</span><span class="string">http://www.gtk.org title=</span><span class="specialchar">\"</span><span class="string"><i>Our</i> website</span><span class="specialchar">\"</span><span class="string">>"</span>
|
||||
<span class="string">"GTK+ website</a> for more..."</span><span class="symbol">;</span>
|
||||
<span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">label </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkLabel.html#gtk-label-new">gtk_label_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">NULL</span><span class="symbol">);</span>
|
||||
<span class="function"><a href="GtkLabel.html#gtk-label-set-markup">gtk_label_set_markup</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_LABEL</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">label</span><span class="symbol">),</span><span class="normal"> text</span><span class="symbol">);</span></pre></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="informalexample"><pre class="programlisting">
|
||||
const gchar *text =
|
||||
"Go to the"
|
||||
"<a href=\"http://www.gtk.org title=\"<i>Our</i> website\">"
|
||||
"GTK+ website</a> for more...";
|
||||
GtkWidget *label = gtk_label_new (NULL);
|
||||
gtk_label_set_markup (GTK_LABEL (label), text);
|
||||
</pre></div>
|
||||
<p></p>
|
||||
<p>It is possible to implement custom handling for links and their tooltips with
|
||||
the <a class="link" href="GtkLabel.html#GtkLabel-activate-link" title="The “activate-link” signal"><span class="type">“activate-link”</span></a> signal and the <a class="link" href="GtkLabel.html#gtk-label-get-current-uri" title="gtk_label_get_current_uri ()"><code class="function">gtk_label_get_current_uri()</code></a> function.</p>
|
||||
@ -906,7 +828,7 @@ pass <code class="literal">NULL</code> to get an empty label widget.</p>
|
||||
</colgroup>
|
||||
<tbody><tr>
|
||||
<td class="parameter_name"><p>str</p></td>
|
||||
<td class="parameter_description"><p>The text of the label. </p></td>
|
||||
<td class="parameter_description"><p> The text of the label. </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></tbody>
|
||||
</table></div>
|
||||
@ -982,7 +904,7 @@ to the label after the markup string is parsed.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>attrs</p></td>
|
||||
<td class="parameter_description"><p>a <span class="type">PangoAttrList</span>, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p> a <span class="type">PangoAttrList</span>, or <code class="literal">NULL</code>. </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>
|
||||
</tbody>
|
||||
@ -1002,31 +924,16 @@ label’s text and attribute list based on the parse results.</p>
|
||||
<p>If the <em class="parameter"><code>str</code></em>
|
||||
is external data, you may need to escape it with
|
||||
<code class="function">g_markup_escape_text()</code> or <code class="function">g_markup_printf_escaped()</code>:</p>
|
||||
<div class="informalexample">
|
||||
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="listing_lines" align="right"><pre>1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8</pre></td>
|
||||
<td class="listing_code"><pre class="programlisting"><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">label </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkLabel.html#gtk-label-new">gtk_label_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">NULL</span><span class="symbol">);</span>
|
||||
<span class="keyword">const</span><span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">str </span><span class="symbol">=</span><span class="normal"> </span><span class="string">"some text"</span><span class="symbol">;</span>
|
||||
<span class="keyword">const</span><span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">format </span><span class="symbol">=</span><span class="normal"> </span><span class="string">"<span style=</span><span class="specialchar">\"</span><span class="string">italic</span><span class="specialchar">\"</span><span class="string">></span><span class="specialchar">\%</span><span class="string">s</span>"</span><span class="symbol">;</span>
|
||||
<span class="type">char</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">markup</span><span class="symbol">;</span>
|
||||
|
||||
<span class="normal">markup </span><span class="symbol">=</span><span class="normal"> </span><span class="function">g_markup_printf_escaped</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">format</span><span class="symbol">,</span><span class="normal"> str</span><span class="symbol">);</span>
|
||||
<span class="function"><a href="GtkLabel.html#gtk-label-set-markup">gtk_label_set_markup</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_LABEL</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">label</span><span class="symbol">),</span><span class="normal"> markup</span><span class="symbol">);</span>
|
||||
<span class="function">g_free</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">markup</span><span class="symbol">);</span></pre></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="informalexample"><pre class="programlisting">
|
||||
GtkWidget *label = gtk_label_new (NULL);
|
||||
const char *str = "some text";
|
||||
const char *format = "<span style=\"italic\">\%s</span>";
|
||||
char *markup;
|
||||
|
||||
markup = g_markup_printf_escaped (format, str);
|
||||
gtk_label_set_markup (GTK_LABEL (label), markup);
|
||||
g_free (markup);
|
||||
</pre></div>
|
||||
<p></p>
|
||||
<p>This function will set the <a class="link" href="GtkLabel.html#GtkLabel--use-markup" title="The “use-markup” property"><span class="type">“use-markup”</span></a> property to <code class="literal">TRUE</code> as
|
||||
a side effect.</p>
|
||||
@ -1462,12 +1369,12 @@ and from pixels using <code class="function">PANGO_PIXELS()</code> or <span clas
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>x</p></td>
|
||||
<td class="parameter_description"><p>location to store X offset of layout, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p> location to store X offset of layout, or <code class="literal">NULL</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="NULL may be passed instead of a pointer to a location."><span class="acronym">optional</span></acronym>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>y</p></td>
|
||||
<td class="parameter_description"><p>location to store Y offset of layout, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p> location to store Y offset of layout, or <code class="literal">NULL</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="NULL may be passed instead of a pointer to a location."><span class="acronym">optional</span></acronym>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1586,7 +1493,7 @@ and be activated by the mnemonic.</p>
|
||||
</colgroup>
|
||||
<tbody><tr>
|
||||
<td class="parameter_name"><p>str</p></td>
|
||||
<td class="parameter_description"><p>The text of the label, with an underscore in front of the
|
||||
<td class="parameter_description"><p> The text of the label, with an underscore in front of the
|
||||
mnemonic character. </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></tbody>
|
||||
@ -1673,7 +1580,7 @@ and toggle focus between the colliding widgets otherwise.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>widget</p></td>
|
||||
<td class="parameter_description"><p>the target <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>, or <code class="literal">NULL</code> to unset. </p></td>
|
||||
<td class="parameter_description"><p> the target <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>, or <code class="literal">NULL</code> to unset. </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>
|
||||
</tbody>
|
||||
@ -1775,7 +1682,7 @@ pango_layout_get_attribute (gtk_label_get_layout (label)).</p>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-label-get-attributes.returns"></a><h4>Returns</h4>
|
||||
<p>the attribute list, or <code class="literal">NULL</code>
|
||||
<p> the attribute list, or <code class="literal">NULL</code>
|
||||
if none was set. </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>
|
||||
@ -2006,7 +1913,7 @@ any time, so it should be considered read-only.</p>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-label-get-layout.returns"></a><h4>Returns</h4>
|
||||
<p>the <span class="type">PangoLayout</span> for this label. </p>
|
||||
<p> the <span class="type">PangoLayout</span> for this label. </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>
|
||||
</div>
|
||||
@ -2116,7 +2023,7 @@ label. See <a class="link" href="GtkLabel.html#gtk-label-set-mnemonic-widget" ti
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-label-get-mnemonic-widget.returns"></a><h4>Returns</h4>
|
||||
<p>the target of the label’s mnemonic,
|
||||
<p> the target of the label’s mnemonic,
|
||||
or <code class="literal">NULL</code> if none has been set and the default algorithm will be used. </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>
|
||||
@ -2146,12 +2053,12 @@ if there’s a selection.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>start</p></td>
|
||||
<td class="parameter_description"><p>return location for start of selection, as a character offset. </p></td>
|
||||
<td class="parameter_description"><p> return location for start of selection, as a character offset. </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>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>end</p></td>
|
||||
<td class="parameter_description"><p>return location for end of selection, as a character offset. </p></td>
|
||||
<td class="parameter_description"><p> return location for end of selection, as a character offset. </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>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -3002,6 +2909,6 @@ to this signal and append your menuitems to the <em class="parameter"><code>menu
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<hr>Generated by GTK-Doc V1.27</div>
|
||||
<hr>Generated by GTK-Doc V1.25</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user