New upstream version 3.24.14
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
<link rel="up" href="theming.html" title="Part IV. Theming in GTK+">
|
||||
<link rel="prev" href="gtk3-GtkWidgetPath.html" title="GtkWidgetPath">
|
||||
<link rel="next" href="migrating.html" title="Part V. Migrating from Previous Versions of GTK+">
|
||||
<meta name="generator" content="GTK-Doc V1.29 (XML mode)">
|
||||
<meta name="generator" content="GTK-Doc V1.32.1 (XML mode)">
|
||||
<link rel="stylesheet" href="style.css" type="text/css">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
@ -37,8 +37,8 @@
|
||||
<a name="GtkIconTheme.functions"></a><h2>Functions</h2>
|
||||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||||
<colgroup>
|
||||
<col width="150px" class="functions_return">
|
||||
<col class="functions_name">
|
||||
<col width="150px" class="functions_proto_type">
|
||||
<col class="functions_proto_name">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
@ -131,7 +131,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
<a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-icon" title="gtk_icon_theme_lookup_icon ()">gtk_icon_theme_lookup_icon</a> <span class="c_punctuation">()</span>
|
||||
@ -139,7 +139,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
<a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-icon-for-scale" title="gtk_icon_theme_lookup_icon_for_scale ()">gtk_icon_theme_lookup_icon_for_scale</a> <span class="c_punctuation">()</span>
|
||||
@ -147,7 +147,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
<a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkIconTheme.html#gtk-icon-theme-choose-icon" title="gtk_icon_theme_choose_icon ()">gtk_icon_theme_choose_icon</a> <span class="c_punctuation">()</span>
|
||||
@ -155,7 +155,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
<a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkIconTheme.html#gtk-icon-theme-choose-icon-for-scale" title="gtk_icon_theme_choose_icon_for_scale ()">gtk_icon_theme_choose_icon_for_scale</a> <span class="c_punctuation">()</span>
|
||||
@ -163,7 +163,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
<a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-by-gicon" title="gtk_icon_theme_lookup_by_gicon ()">gtk_icon_theme_lookup_by_gicon</a> <span class="c_punctuation">()</span>
|
||||
@ -171,7 +171,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
<a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-by-gicon-for-scale" title="gtk_icon_theme_lookup_by_gicon_for_scale ()">gtk_icon_theme_lookup_by_gicon_for_scale</a> <span class="c_punctuation">()</span>
|
||||
@ -251,7 +251,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
<a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkIconTheme.html#gtk-icon-info-copy" title="gtk_icon_info_copy ()">gtk_icon_info_copy</a> <span class="c_punctuation">()</span>
|
||||
@ -267,7 +267,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
<a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkIconTheme.html#gtk-icon-info-new-for-pixbuf" title="gtk_icon_info_new_for_pixbuf ()">gtk_icon_info_new_for_pixbuf</a> <span class="c_punctuation">()</span>
|
||||
@ -438,9 +438,9 @@
|
||||
<a name="GtkIconTheme.signals"></a><h2>Signals</h2>
|
||||
<div class="informaltable"><table class="informaltable" border="0">
|
||||
<colgroup>
|
||||
<col width="150px" class="signals_return">
|
||||
<col width="300px" class="signals_name">
|
||||
<col width="200px" class="signals_flags">
|
||||
<col width="150px" class="signal_proto_type">
|
||||
<col width="300px" class="signal_proto_name">
|
||||
<col width="200px" class="signal_proto_flags">
|
||||
</colgroup>
|
||||
<tbody><tr>
|
||||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||||
@ -453,33 +453,33 @@
|
||||
<a name="GtkIconTheme.other"></a><h2>Types and Values</h2>
|
||||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||||
<colgroup>
|
||||
<col width="150px" class="name">
|
||||
<col class="description">
|
||||
<col width="150px" class="other_proto_type">
|
||||
<col class="other_proto_name">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="datatype_keyword"> </td>
|
||||
<td class="function_name"><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo">GtkIconInfo</a></td>
|
||||
<td class="function_name"><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo">GtkIconInfo</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="datatype_keyword">struct</td>
|
||||
<td class="function_name"><a class="link" href="GtkIconTheme.html#GtkIconTheme-struct" title="struct GtkIconTheme">GtkIconTheme</a></td>
|
||||
<td class="function_name"><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconTheme-struct">GtkIconTheme</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="datatype_keyword">struct</td>
|
||||
<td class="function_name"><a class="link" href="GtkIconTheme.html#GtkIconThemeClass" title="struct GtkIconThemeClass">GtkIconThemeClass</a></td>
|
||||
<td class="function_name">GtkIconThemeClass</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="datatype_keyword">enum</td>
|
||||
<td class="function_name"><a class="link" href="GtkIconTheme.html#GtkIconLookupFlags" title="enum GtkIconLookupFlags">GtkIconLookupFlags</a></td>
|
||||
<td class="function_name"><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconLookupFlags">GtkIconLookupFlags</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="define_keyword">#define</td>
|
||||
<td class="function_name"><a class="link" href="GtkIconTheme.html#GTK-ICON-THEME-ERROR:CAPS" title="GTK_ICON_THEME_ERROR">GTK_ICON_THEME_ERROR</a></td>
|
||||
<td class="function_name"><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GTK-ICON-THEME-ERROR:CAPS">GTK_ICON_THEME_ERROR</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="datatype_keyword">enum</td>
|
||||
<td class="function_name"><a class="link" href="GtkIconTheme.html#GtkIconThemeError" title="enum GtkIconThemeError">GtkIconThemeError</a></td>
|
||||
<td class="function_name"><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconThemeError">GtkIconThemeError</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
@ -511,12 +511,12 @@ and the distinction between the two may be a bit confusing.
|
||||
A few things to keep in mind:</p>
|
||||
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
|
||||
<li class="listitem"><p>Stock images usually are used in conjunction with
|
||||
Stock Items, such as <a class="link" href="gtk3-Stock-Items.html#GTK-STOCK-OK:CAPS" title="GTK_STOCK_OK"><code class="literal">GTK_STOCK_OK</code></a> or
|
||||
<a class="link" href="gtk3-Stock-Items.html#GTK-STOCK-OPEN:CAPS" title="GTK_STOCK_OPEN"><code class="literal">GTK_STOCK_OPEN</code></a>. Named icons are easier to set up and therefore
|
||||
Stock Items, such as <code class="literal">GTK_STOCK_OK</code> or
|
||||
<code class="literal">GTK_STOCK_OPEN</code>. Named icons are easier to set up and therefore
|
||||
are more useful for new icons that an application wants to
|
||||
add, such as application icons or window icons.</p></li>
|
||||
<li class="listitem"><p>Stock images can only be loaded at the symbolic sizes defined
|
||||
by the <a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSize" title="enum GtkIconSize"><span class="type">GtkIconSize</span></a> enumeration, or by custom sizes defined
|
||||
by the <a href="https://developer.gnome.org/gtk4/gtk4-Standard-Enumerations.html#GtkIconSize"><span class="type">GtkIconSize</span></a> enumeration, or by custom sizes defined
|
||||
by <a class="link" href="gtk3-Themeable-Stock-Images.html#gtk-icon-size-register" title="gtk_icon_size_register ()"><code class="function">gtk_icon_size_register()</code></a>, while named icons are more flexible
|
||||
and any pixel size can be specified.</p></li>
|
||||
<li class="listitem"><p>Because stock images are closely tied to stock items, and thus
|
||||
@ -529,7 +529,7 @@ you want to use, use it, otherwise use a named icon. It turns
|
||||
out that internally stock images are generally defined in
|
||||
terms of one or more named icons. (An example of the
|
||||
more than one case is icons that depend on writing direction;
|
||||
<a class="link" href="gtk3-Stock-Items.html#GTK-STOCK-GO-FORWARD:CAPS" title="GTK_STOCK_GO_FORWARD"><code class="literal">GTK_STOCK_GO_FORWARD</code></a> uses the two themed icons
|
||||
<code class="literal">GTK_STOCK_GO_FORWARD</code> uses the two themed icons
|
||||
“gtk-stock-go-forward-ltr” and “gtk-stock-go-forward-rtl”.)</p>
|
||||
<p>In many cases, named themes are used indirectly, via <a class="link" href="GtkImage.html" title="GtkImage"><span class="type">GtkImage</span></a>
|
||||
or stock items, rather than directly, but looking up icons
|
||||
@ -563,26 +563,26 @@ looking up icons.</p>
|
||||
18
|
||||
19
|
||||
20</pre></td>
|
||||
<td class="listing_code"><pre class="programlisting"><span class="usertype">GError</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">error </span><span class="symbol">=</span><span class="normal"> NULL</span><span class="symbol">;</span>
|
||||
<span class="usertype">GtkIconTheme</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">icon_theme</span><span class="symbol">;</span>
|
||||
<span class="usertype">GdkPixbuf</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">pixbuf</span><span class="symbol">;</span>
|
||||
<td class="listing_code"><pre class="programlisting"><span class="n">GError</span> <span class="o">*</span><span class="n">error</span> <span class="o">=</span> <span class="nb">NULL</span><span class="p">;</span>
|
||||
<span class="n">GtkIconTheme</span> <span class="o">*</span><span class="n">icon_theme</span><span class="p">;</span>
|
||||
<span class="n">GdkPixbuf</span> <span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span>
|
||||
|
||||
<span class="normal">icon_theme </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkIconTheme.html#gtk-icon-theme-get-default">gtk_icon_theme_get_default</a></span><span class="normal"> </span><span class="symbol">();</span>
|
||||
<span class="normal">pixbuf </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkIconTheme.html#gtk-icon-theme-load-icon">gtk_icon_theme_load_icon</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">icon_theme</span><span class="symbol">,</span>
|
||||
<span class="normal"> </span><span class="string">"my-icon-name"</span><span class="symbol">,</span><span class="normal"> </span><span class="comment">// icon name</span>
|
||||
<span class="normal"> </span><span class="number">48</span><span class="symbol">,</span><span class="normal"> </span><span class="comment">// icon size</span>
|
||||
<span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="comment">// flags</span>
|
||||
<span class="normal"> </span><span class="symbol">&</span><span class="normal">error</span><span class="symbol">);</span>
|
||||
<span class="keyword">if</span><span class="normal"> </span><span class="symbol">(!</span><span class="normal">pixbuf</span><span class="symbol">)</span>
|
||||
<span class="normal"> </span><span class="cbracket">{</span>
|
||||
<span class="normal"> </span><span class="function">g_warning</span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Couldn’t load icon: %s"</span><span class="symbol">,</span><span class="normal"> error</span><span class="symbol">-></span><span class="normal">message</span><span class="symbol">);</span>
|
||||
<span class="normal"> </span><span class="function">g_error_free</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error</span><span class="symbol">);</span>
|
||||
<span class="normal"> </span><span class="cbracket">}</span>
|
||||
<span class="keyword">else</span>
|
||||
<span class="normal"> </span><span class="cbracket">{</span>
|
||||
<span class="normal"> </span><span class="comment">// Use the pixbuf</span>
|
||||
<span class="normal"> </span><span class="function">g_object_unref</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">);</span>
|
||||
<span class="normal"> </span><span class="cbracket">}</span></pre></td>
|
||||
<span class="n">icon_theme</span> <span class="o">=</span> <span class="n">gtk_icon_theme_get_default</span> <span class="p">();</span>
|
||||
<span class="n">pixbuf</span> <span class="o">=</span> <span class="n">gtk_icon_theme_load_icon</span> <span class="p">(</span><span class="n">icon_theme</span><span class="p">,</span>
|
||||
<span class="s">"my-icon-name"</span><span class="p">,</span> <span class="c1">// icon name</span>
|
||||
<span class="mi">48</span><span class="p">,</span> <span class="c1">// icon size</span>
|
||||
<span class="mi">0</span><span class="p">,</span> <span class="c1">// flags</span>
|
||||
<span class="o">&</span><span class="n">error</span><span class="p">);</span>
|
||||
<span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="n">pixbuf</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="n">g_warning</span> <span class="p">(</span><span class="s">"Couldn’t load icon: %s"</span><span class="p">,</span> <span class="n">error</span><span class="o">-></span><span class="n">message</span><span class="p">);</span>
|
||||
<span class="n">g_error_free</span> <span class="p">(</span><span class="n">error</span><span class="p">);</span>
|
||||
<span class="p">}</span>
|
||||
<span class="k">else</span>
|
||||
<span class="p">{</span>
|
||||
<span class="c1">// Use the pixbuf</span>
|
||||
<span class="n">g_object_unref</span> <span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span>
|
||||
<span class="p">}</span></pre></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -968,12 +968,12 @@ icon for <em class="parameter"><code>icon_name</code></em>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-theme-lookup-icon"></a><h3>gtk_icon_theme_lookup_icon ()</h3>
|
||||
<pre class="programlisting"><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
gtk_icon_theme_lookup_icon (<em class="parameter"><code><a class="link" href="GtkIconTheme.html" title="GtkIconTheme"><span class="type">GtkIconTheme</span></a> *icon_theme</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *icon_name</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> size</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconLookupFlags" title="enum GtkIconLookupFlags"><span class="type">GtkIconLookupFlags</span></a> flags</code></em>);</pre>
|
||||
<p>Looks up a named icon and returns a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> containing
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconLookupFlags"><span class="type">GtkIconLookupFlags</span></a> flags</code></em>);</pre>
|
||||
<p>Looks up a named icon and returns a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> containing
|
||||
information such as the filename of the icon. The icon
|
||||
can then be rendered into a pixbuf using
|
||||
<a class="link" href="GtkIconTheme.html#gtk-icon-info-load-icon" title="gtk_icon_info_load_icon ()"><code class="function">gtk_icon_info_load_icon()</code></a>. (<a class="link" href="GtkIconTheme.html#gtk-icon-theme-load-icon" title="gtk_icon_theme_load_icon ()"><code class="function">gtk_icon_theme_load_icon()</code></a>
|
||||
@ -1018,7 +1018,7 @@ for a given scaling factor may be different.</p>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-icon-theme-lookup-icon.returns"></a><h4>Returns</h4>
|
||||
<p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> object
|
||||
<p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> object
|
||||
containing information about the icon, or <code class="literal">NULL</code> if the
|
||||
icon wasn’t found. </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="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
||||
@ -1028,14 +1028,14 @@ icon wasn’t found. </p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-theme-lookup-icon-for-scale"></a><h3>gtk_icon_theme_lookup_icon_for_scale ()</h3>
|
||||
<pre class="programlisting"><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
gtk_icon_theme_lookup_icon_for_scale (<em class="parameter"><code><a class="link" href="GtkIconTheme.html" title="GtkIconTheme"><span class="type">GtkIconTheme</span></a> *icon_theme</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *icon_name</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> size</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> scale</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconLookupFlags" title="enum GtkIconLookupFlags"><span class="type">GtkIconLookupFlags</span></a> flags</code></em>);</pre>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconLookupFlags"><span class="type">GtkIconLookupFlags</span></a> flags</code></em>);</pre>
|
||||
<p>Looks up a named icon for a particular window scale and returns a
|
||||
<a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> containing information such as the filename of the
|
||||
<a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> containing information such as the filename of the
|
||||
icon. The icon can then be rendered into a pixbuf using
|
||||
<a class="link" href="GtkIconTheme.html#gtk-icon-info-load-icon" title="gtk_icon_info_load_icon ()"><code class="function">gtk_icon_info_load_icon()</code></a>. (<a class="link" href="GtkIconTheme.html#gtk-icon-theme-load-icon" title="gtk_icon_theme_load_icon ()"><code class="function">gtk_icon_theme_load_icon()</code></a> combines
|
||||
these two steps if all you need is the pixbuf.)</p>
|
||||
@ -1078,7 +1078,7 @@ these two steps if all you need is the pixbuf.)</p>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-icon-theme-lookup-icon-for-scale.returns"></a><h4>Returns</h4>
|
||||
<p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> object
|
||||
<p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> object
|
||||
containing information about the icon, or <code class="literal">NULL</code> if the
|
||||
icon wasn’t found. </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="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
||||
@ -1088,12 +1088,12 @@ icon wasn’t found. </p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-theme-choose-icon"></a><h3>gtk_icon_theme_choose_icon ()</h3>
|
||||
<pre class="programlisting"><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
gtk_icon_theme_choose_icon (<em class="parameter"><code><a class="link" href="GtkIconTheme.html" title="GtkIconTheme"><span class="type">GtkIconTheme</span></a> *icon_theme</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *icon_names[]</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> size</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconLookupFlags" title="enum GtkIconLookupFlags"><span class="type">GtkIconLookupFlags</span></a> flags</code></em>);</pre>
|
||||
<p>Looks up a named icon and returns a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> containing
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconLookupFlags"><span class="type">GtkIconLookupFlags</span></a> flags</code></em>);</pre>
|
||||
<p>Looks up a named icon and returns a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> containing
|
||||
information such as the filename of the icon. The icon
|
||||
can then be rendered into a pixbuf using
|
||||
<a class="link" href="GtkIconTheme.html#gtk-icon-info-load-icon" title="gtk_icon_info_load_icon ()"><code class="function">gtk_icon_info_load_icon()</code></a>. (<a class="link" href="GtkIconTheme.html#gtk-icon-theme-load-icon" title="gtk_icon_theme_load_icon ()"><code class="function">gtk_icon_theme_load_icon()</code></a>
|
||||
@ -1137,7 +1137,7 @@ icon names to lookup. </p></td>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-icon-theme-choose-icon.returns"></a><h4>Returns</h4>
|
||||
<p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> object
|
||||
<p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> object
|
||||
containing information about the icon, or <code class="literal">NULL</code> if the icon wasn’t
|
||||
found. </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="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
||||
@ -1147,14 +1147,14 @@ found. </p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-theme-choose-icon-for-scale"></a><h3>gtk_icon_theme_choose_icon_for_scale ()</h3>
|
||||
<pre class="programlisting"><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
gtk_icon_theme_choose_icon_for_scale (<em class="parameter"><code><a class="link" href="GtkIconTheme.html" title="GtkIconTheme"><span class="type">GtkIconTheme</span></a> *icon_theme</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *icon_names[]</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> size</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> scale</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconLookupFlags" title="enum GtkIconLookupFlags"><span class="type">GtkIconLookupFlags</span></a> flags</code></em>);</pre>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconLookupFlags"><span class="type">GtkIconLookupFlags</span></a> flags</code></em>);</pre>
|
||||
<p>Looks up a named icon for a particular window scale and returns
|
||||
a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> containing information such as the filename of the
|
||||
a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> containing information such as the filename of the
|
||||
icon. The icon can then be rendered into a pixbuf using
|
||||
<a class="link" href="GtkIconTheme.html#gtk-icon-info-load-icon" title="gtk_icon_info_load_icon ()"><code class="function">gtk_icon_info_load_icon()</code></a>. (<a class="link" href="GtkIconTheme.html#gtk-icon-theme-load-icon" title="gtk_icon_theme_load_icon ()"><code class="function">gtk_icon_theme_load_icon()</code></a>
|
||||
combines these two steps if all you need is the pixbuf.)</p>
|
||||
@ -1202,7 +1202,7 @@ array of icon names to lookup. </p></td>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-icon-theme-choose-icon-for-scale.returns"></a><h4>Returns</h4>
|
||||
<p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> object
|
||||
<p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> object
|
||||
containing information about the icon, or <code class="literal">NULL</code> if the
|
||||
icon wasn’t found. </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="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
||||
@ -1212,12 +1212,12 @@ icon wasn’t found. </p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-theme-lookup-by-gicon"></a><h3>gtk_icon_theme_lookup_by_gicon ()</h3>
|
||||
<pre class="programlisting"><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
gtk_icon_theme_lookup_by_gicon (<em class="parameter"><code><a class="link" href="GtkIconTheme.html" title="GtkIconTheme"><span class="type">GtkIconTheme</span></a> *icon_theme</code></em>,
|
||||
<em class="parameter"><code><span class="type">GIcon</span> *icon</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> size</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconLookupFlags" title="enum GtkIconLookupFlags"><span class="type">GtkIconLookupFlags</span></a> flags</code></em>);</pre>
|
||||
<p>Looks up an icon and returns a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> containing information
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconLookupFlags"><span class="type">GtkIconLookupFlags</span></a> flags</code></em>);</pre>
|
||||
<p>Looks up an icon and returns a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> containing information
|
||||
such as the filename of the icon. The icon can then be rendered
|
||||
into a pixbuf using <a class="link" href="GtkIconTheme.html#gtk-icon-info-load-icon" title="gtk_icon_info_load_icon ()"><code class="function">gtk_icon_info_load_icon()</code></a>.</p>
|
||||
<p>When rendering on displays with high pixel densities you should not
|
||||
@ -1260,7 +1260,7 @@ for a given scaling factor may be different.</p>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-icon-theme-lookup-by-gicon.returns"></a><h4>Returns</h4>
|
||||
<p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> containing
|
||||
<p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> containing
|
||||
information about the icon, or <code class="literal">NULL</code> if the icon wasn’t
|
||||
found. Unref with <code class="function">g_object_unref()</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="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
||||
@ -1270,14 +1270,14 @@ found. Unref with <code class="function">g_object_unref()</code>. </p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-theme-lookup-by-gicon-for-scale"></a><h3>gtk_icon_theme_lookup_by_gicon_for_scale ()</h3>
|
||||
<pre class="programlisting"><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
gtk_icon_theme_lookup_by_gicon_for_scale
|
||||
(<em class="parameter"><code><a class="link" href="GtkIconTheme.html" title="GtkIconTheme"><span class="type">GtkIconTheme</span></a> *icon_theme</code></em>,
|
||||
<em class="parameter"><code><span class="type">GIcon</span> *icon</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> size</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> scale</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconLookupFlags" title="enum GtkIconLookupFlags"><span class="type">GtkIconLookupFlags</span></a> flags</code></em>);</pre>
|
||||
<p>Looks up an icon and returns a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> containing information
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconLookupFlags"><span class="type">GtkIconLookupFlags</span></a> flags</code></em>);</pre>
|
||||
<p>Looks up an icon and returns a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> containing information
|
||||
such as the filename of the icon. The icon can then be rendered into
|
||||
a pixbuf using <a class="link" href="GtkIconTheme.html#gtk-icon-info-load-icon" title="gtk_icon_info_load_icon ()"><code class="function">gtk_icon_info_load_icon()</code></a>.</p>
|
||||
<div class="refsect3">
|
||||
@ -1319,7 +1319,7 @@ a pixbuf using <a class="link" href="GtkIconTheme.html#gtk-icon-info-load-icon"
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-icon-theme-lookup-by-gicon-for-scale.returns"></a><h4>Returns</h4>
|
||||
<p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> containing
|
||||
<p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> containing
|
||||
information about the icon, or <code class="literal">NULL</code> if the icon wasn’t
|
||||
found. Unref with <code class="function">g_object_unref()</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="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
||||
@ -1333,7 +1333,7 @@ found. Unref with <code class="function">g_object_unref()</code>. </p>
|
||||
gtk_icon_theme_load_icon (<em class="parameter"><code><a class="link" href="GtkIconTheme.html" title="GtkIconTheme"><span class="type">GtkIconTheme</span></a> *icon_theme</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *icon_name</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> size</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconLookupFlags" title="enum GtkIconLookupFlags"><span class="type">GtkIconLookupFlags</span></a> flags</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconLookupFlags"><span class="type">GtkIconLookupFlags</span></a> flags</code></em>,
|
||||
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
|
||||
<p>Looks up an icon in an icon theme, scales it to the given size
|
||||
and renders it into a pixbuf. This is a convenience function;
|
||||
@ -1403,7 +1403,7 @@ gtk_icon_theme_load_icon_for_scale (<em class="parameter"><code><a class="link"
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *icon_name</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> size</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> scale</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconLookupFlags" title="enum GtkIconLookupFlags"><span class="type">GtkIconLookupFlags</span></a> flags</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconLookupFlags"><span class="type">GtkIconLookupFlags</span></a> flags</code></em>,
|
||||
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
|
||||
<p>Looks up an icon in an icon theme for a particular window scale,
|
||||
scales it to the given size and renders it into a pixbuf. This is a
|
||||
@ -1480,7 +1480,7 @@ gtk_icon_theme_load_surface (<em class="parameter"><code><a class="link" href="G
|
||||
<em class="parameter"><code><span class="type">gint</span> size</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> scale</code></em>,
|
||||
<em class="parameter"><code><span class="type">GdkWindow</span> *for_window</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconLookupFlags" title="enum GtkIconLookupFlags"><span class="type">GtkIconLookupFlags</span></a> flags</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconLookupFlags"><span class="type">GtkIconLookupFlags</span></a> flags</code></em>,
|
||||
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
|
||||
<p>Looks up an icon in an icon theme for a particular window scale,
|
||||
scales it to the given size and renders it into a cairo surface. This is a
|
||||
@ -1792,13 +1792,13 @@ images can be registered for the same icon name at different sizes.)</p></td>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-info-copy"></a><h3>gtk_icon_info_copy ()</h3>
|
||||
<pre class="programlisting"><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
gtk_icon_info_copy (<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>);</pre>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
gtk_icon_info_copy (<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>);</pre>
|
||||
<div class="warning">
|
||||
<p><code class="literal">gtk_icon_info_copy</code> has been deprecated since version 3.8 and should not be used in newly-written code.</p>
|
||||
<p>Use <code class="function">g_object_ref()</code></p>
|
||||
</div>
|
||||
<p>Make a copy of a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a>.</p>
|
||||
<p>Make a copy of a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a>.</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">
|
||||
<a name="gtk-icon-info-copy.parameters"></a><h4>Parameters</h4>
|
||||
@ -1810,7 +1810,7 @@ gtk_icon_info_copy (<em class="parameter"><code><a class="link" href="GtkIconThe
|
||||
</colgroup>
|
||||
<tbody><tr>
|
||||
<td class="parameter_name"><p>icon_info</p></td>
|
||||
<td class="parameter_description"><p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
@ -1826,12 +1826,12 @@ gtk_icon_info_copy (<em class="parameter"><code><a class="link" href="GtkIconThe
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-info-free"></a><h3>gtk_icon_info_free ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_icon_info_free (<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>);</pre>
|
||||
gtk_icon_info_free (<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>);</pre>
|
||||
<div class="warning">
|
||||
<p><code class="literal">gtk_icon_info_free</code> has been deprecated since version 3.8 and should not be used in newly-written code.</p>
|
||||
<p>Use <code class="function">g_object_unref()</code></p>
|
||||
</div>
|
||||
<p>Free a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> and associated information</p>
|
||||
<p>Free a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> and associated information</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">
|
||||
<a name="gtk-icon-info-free.parameters"></a><h4>Parameters</h4>
|
||||
@ -1843,7 +1843,7 @@ gtk_icon_info_free (<em class="parameter"><code><a class="link" href="GtkIconThe
|
||||
</colgroup>
|
||||
<tbody><tr>
|
||||
<td class="parameter_name"><p>icon_info</p></td>
|
||||
<td class="parameter_description"><p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
@ -1853,10 +1853,10 @@ gtk_icon_info_free (<em class="parameter"><code><a class="link" href="GtkIconThe
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-info-new-for-pixbuf"></a><h3>gtk_icon_info_new_for_pixbuf ()</h3>
|
||||
<pre class="programlisting"><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="returnvalue">GtkIconInfo</span></a> *
|
||||
gtk_icon_info_new_for_pixbuf (<em class="parameter"><code><a class="link" href="GtkIconTheme.html" title="GtkIconTheme"><span class="type">GtkIconTheme</span></a> *icon_theme</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>);</pre>
|
||||
<p>Creates a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> for 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>.</p>
|
||||
<p>Creates a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> for 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>.</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-icon-info-new-for-pixbuf.parameters"></a><h4>Parameters</h4>
|
||||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||||
@ -1873,7 +1873,7 @@ gtk_icon_info_new_for_pixbuf (<em class="parameter"><code><a class="link" href="
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>pixbuf</p></td>
|
||||
<td class="parameter_description"><p>the pixbuf to wrap in a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_description"><p>the pixbuf to wrap in a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1881,7 +1881,7 @@ gtk_icon_info_new_for_pixbuf (<em class="parameter"><code><a class="link" href="
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-icon-info-new-for-pixbuf.returns"></a><h4>Returns</h4>
|
||||
<p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a>. </p>
|
||||
<p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a>. </p>
|
||||
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
||||
</div>
|
||||
<p class="since">Since: 2.14</p>
|
||||
@ -1890,7 +1890,7 @@ gtk_icon_info_new_for_pixbuf (<em class="parameter"><code><a class="link" href="
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-info-get-base-size"></a><h3>gtk_icon_info_get_base_size ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">gint</span>
|
||||
gtk_icon_info_get_base_size (<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>);</pre>
|
||||
gtk_icon_info_get_base_size (<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>);</pre>
|
||||
<p>Gets the base size for the icon. The base size
|
||||
is a size for the icon that was specified by
|
||||
the icon theme creator. This may be different
|
||||
@ -1911,7 +1911,7 @@ not include the base scale.</p>
|
||||
</colgroup>
|
||||
<tbody><tr>
|
||||
<td class="parameter_name"><p>icon_info</p></td>
|
||||
<td class="parameter_description"><p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
@ -1927,7 +1927,7 @@ size is known for the icon.</p>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-info-get-base-scale"></a><h3>gtk_icon_info_get_base_scale ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">gint</span>
|
||||
gtk_icon_info_get_base_scale (<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>);</pre>
|
||||
gtk_icon_info_get_base_scale (<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>);</pre>
|
||||
<p>Gets the base scale for the icon. The base scale is a scale
|
||||
for the icon that was specified by the icon theme creator.
|
||||
For instance an icon drawn for a high-dpi screen with window
|
||||
@ -1943,7 +1943,7 @@ a base scale of 2.</p>
|
||||
</colgroup>
|
||||
<tbody><tr>
|
||||
<td class="parameter_name"><p>icon_info</p></td>
|
||||
<td class="parameter_description"><p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
@ -1958,8 +1958,8 @@ a base scale of 2.</p>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-info-get-filename"></a><h3>gtk_icon_info_get_filename ()</h3>
|
||||
<pre class="programlisting">const <span class="returnvalue">gchar</span> *
|
||||
gtk_icon_info_get_filename (<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>);</pre>
|
||||
<p>Gets the filename for the icon. If the <a class="link" href="GtkIconTheme.html#GTK-ICON-LOOKUP-USE-BUILTIN:CAPS"><code class="literal">GTK_ICON_LOOKUP_USE_BUILTIN</code></a>
|
||||
gtk_icon_info_get_filename (<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>);</pre>
|
||||
<p>Gets the filename for the icon. If the <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GTK-ICON-LOOKUP-USE-BUILTIN:CAPS"><code class="literal">GTK_ICON_LOOKUP_USE_BUILTIN</code></a>
|
||||
flag was passed to <a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-icon" title="gtk_icon_theme_lookup_icon ()"><code class="function">gtk_icon_theme_lookup_icon()</code></a>, there may be no
|
||||
filename if a builtin icon is returned; in this case, you should
|
||||
use <a class="link" href="GtkIconTheme.html#gtk-icon-info-get-builtin-pixbuf" title="gtk_icon_info_get_builtin_pixbuf ()"><code class="function">gtk_icon_info_get_builtin_pixbuf()</code></a>.</p>
|
||||
@ -1973,7 +1973,7 @@ use <a class="link" href="GtkIconTheme.html#gtk-icon-info-get-builtin-pixbuf" ti
|
||||
</colgroup>
|
||||
<tbody><tr>
|
||||
<td class="parameter_name"><p>icon_info</p></td>
|
||||
<td class="parameter_description"><p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
@ -1992,14 +1992,14 @@ or freed. </p>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-info-get-builtin-pixbuf"></a><h3>gtk_icon_info_get_builtin_pixbuf ()</h3>
|
||||
<pre class="programlisting"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="returnvalue">GdkPixbuf</span></a> *
|
||||
gtk_icon_info_get_builtin_pixbuf (<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>);</pre>
|
||||
gtk_icon_info_get_builtin_pixbuf (<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>);</pre>
|
||||
<div class="warning">
|
||||
<p><code class="literal">gtk_icon_info_get_builtin_pixbuf</code> has been deprecated since version 3.14 and should not be used in newly-written code.</p>
|
||||
<p>This function is deprecated, use
|
||||
<a class="link" href="GtkIconTheme.html#gtk-icon-theme-add-resource-path" title="gtk_icon_theme_add_resource_path ()"><code class="function">gtk_icon_theme_add_resource_path()</code></a> instead of builtin icons.</p>
|
||||
</div>
|
||||
<p>Gets the built-in image for this icon, if any. To allow GTK+ to use
|
||||
built in icon images, you must pass the <a class="link" href="GtkIconTheme.html#GTK-ICON-LOOKUP-USE-BUILTIN:CAPS"><code class="literal">GTK_ICON_LOOKUP_USE_BUILTIN</code></a>
|
||||
built in icon images, you must pass the <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GTK-ICON-LOOKUP-USE-BUILTIN:CAPS"><code class="literal">GTK_ICON_LOOKUP_USE_BUILTIN</code></a>
|
||||
to <a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-icon" title="gtk_icon_theme_lookup_icon ()"><code class="function">gtk_icon_theme_lookup_icon()</code></a>.</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-icon-info-get-builtin-pixbuf.parameters"></a><h4>Parameters</h4>
|
||||
@ -2011,7 +2011,7 @@ to <a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-icon" title="gt
|
||||
</colgroup>
|
||||
<tbody><tr>
|
||||
<td class="parameter_name"><p>icon_info</p></td>
|
||||
<td class="parameter_description"><p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
@ -2030,7 +2030,7 @@ The returned image must not be modified. </p>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-info-load-icon"></a><h3>gtk_icon_info_load_icon ()</h3>
|
||||
<pre class="programlisting"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="returnvalue">GdkPixbuf</span></a> *
|
||||
gtk_icon_info_load_icon (<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
gtk_icon_info_load_icon (<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
|
||||
<p>Renders an icon previously looked up in an icon theme using
|
||||
<a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-icon" title="gtk_icon_theme_lookup_icon ()"><code class="function">gtk_icon_theme_lookup_icon()</code></a>; the size will be based on the size
|
||||
@ -2040,8 +2040,8 @@ that differ slightly from their nominal sizes, and in addition GTK+
|
||||
will avoid scaling icons that it considers sufficiently close to the
|
||||
requested size or for which the source image would have to be scaled
|
||||
up too far. (This maintains sharpness.). This behaviour can be changed
|
||||
by passing the <a class="link" href="GtkIconTheme.html#GTK-ICON-LOOKUP-FORCE-SIZE:CAPS"><code class="literal">GTK_ICON_LOOKUP_FORCE_SIZE</code></a> flag when obtaining
|
||||
the <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a>. If this flag has been specified, the pixbuf
|
||||
by passing the <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GTK-ICON-LOOKUP-FORCE-SIZE:CAPS"><code class="literal">GTK_ICON_LOOKUP_FORCE_SIZE</code></a> flag when obtaining
|
||||
the <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a>. If this flag has been specified, the pixbuf
|
||||
returned by this function will be scaled to the exact size.</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-icon-info-load-icon.parameters"></a><h4>Parameters</h4>
|
||||
@ -2054,7 +2054,7 @@ returned by this function will be scaled to the exact size.</p>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>icon_info</p></td>
|
||||
<td class="parameter_description"><p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> from <a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-icon" title="gtk_icon_theme_lookup_icon ()"><code class="function">gtk_icon_theme_lookup_icon()</code></a></p></td>
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> from <a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-icon" title="gtk_icon_theme_lookup_icon ()"><code class="function">gtk_icon_theme_lookup_icon()</code></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -2080,7 +2080,7 @@ to the icon. </p>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-info-load-surface"></a><h3>gtk_icon_info_load_surface ()</h3>
|
||||
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html#cairo-surface-t"><span class="returnvalue">cairo_surface_t</span></a> *
|
||||
gtk_icon_info_load_surface (<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
gtk_icon_info_load_surface (<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
<em class="parameter"><code><span class="type">GdkWindow</span> *for_window</code></em>,
|
||||
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
|
||||
<p>Renders an icon previously looked up in an icon theme using
|
||||
@ -2091,8 +2091,8 @@ that differ slightly from their nominal sizes, and in addition GTK+
|
||||
will avoid scaling icons that it considers sufficiently close to the
|
||||
requested size or for which the source image would have to be scaled
|
||||
up too far. (This maintains sharpness.). This behaviour can be changed
|
||||
by passing the <a class="link" href="GtkIconTheme.html#GTK-ICON-LOOKUP-FORCE-SIZE:CAPS"><code class="literal">GTK_ICON_LOOKUP_FORCE_SIZE</code></a> flag when obtaining
|
||||
the <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a>. If this flag has been specified, the pixbuf
|
||||
by passing the <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GTK-ICON-LOOKUP-FORCE-SIZE:CAPS"><code class="literal">GTK_ICON_LOOKUP_FORCE_SIZE</code></a> flag when obtaining
|
||||
the <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a>. If this flag has been specified, the pixbuf
|
||||
returned by this function will be scaled to the exact size.</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-icon-info-load-surface.parameters"></a><h4>Parameters</h4>
|
||||
@ -2105,7 +2105,7 @@ returned by this function will be scaled to the exact size.</p>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>icon_info</p></td>
|
||||
<td class="parameter_description"><p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> from <a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-icon" title="gtk_icon_theme_lookup_icon ()"><code class="function">gtk_icon_theme_lookup_icon()</code></a></p></td>
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> from <a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-icon" title="gtk_icon_theme_lookup_icon ()"><code class="function">gtk_icon_theme_lookup_icon()</code></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -2135,7 +2135,7 @@ reference to the icon. </p>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-info-load-icon-async"></a><h3>gtk_icon_info_load_icon_async ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_icon_info_load_icon_async (<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
gtk_icon_info_load_icon_async (<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
|
||||
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
|
||||
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
|
||||
@ -2154,7 +2154,7 @@ version of this call.</p>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>icon_info</p></td>
|
||||
<td class="parameter_description"><p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> from <a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-icon" title="gtk_icon_theme_lookup_icon ()"><code class="function">gtk_icon_theme_lookup_icon()</code></a></p></td>
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> from <a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-icon" title="gtk_icon_theme_lookup_icon ()"><code class="function">gtk_icon_theme_lookup_icon()</code></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -2182,7 +2182,7 @@ request is satisfied. </p></td>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-info-load-icon-finish"></a><h3>gtk_icon_info_load_icon_finish ()</h3>
|
||||
<pre class="programlisting"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="returnvalue">GdkPixbuf</span></a> *
|
||||
gtk_icon_info_load_icon_finish (<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
gtk_icon_info_load_icon_finish (<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
<em class="parameter"><code><span class="type">GAsyncResult</span> *res</code></em>,
|
||||
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
|
||||
<p>Finishes an async icon load, see <a class="link" href="GtkIconTheme.html#gtk-icon-info-load-icon-async" title="gtk_icon_info_load_icon_async ()"><code class="function">gtk_icon_info_load_icon_async()</code></a>.</p>
|
||||
@ -2197,7 +2197,7 @@ gtk_icon_info_load_icon_finish (<em class="parameter"><code><a class="link" href
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>icon_info</p></td>
|
||||
<td class="parameter_description"><p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> from <a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-icon" title="gtk_icon_theme_lookup_icon ()"><code class="function">gtk_icon_theme_lookup_icon()</code></a></p></td>
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> from <a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-icon" title="gtk_icon_theme_lookup_icon ()"><code class="function">gtk_icon_theme_lookup_icon()</code></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -2228,7 +2228,7 @@ to the icon. </p>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-info-load-symbolic"></a><h3>gtk_icon_info_load_symbolic ()</h3>
|
||||
<pre class="programlisting"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="returnvalue">GdkPixbuf</span></a> *
|
||||
gtk_icon_info_load_symbolic (<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
gtk_icon_info_load_symbolic (<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">GdkRGBA</span> *fg</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">GdkRGBA</span> *success_color</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">GdkRGBA</span> *warning_color</code></em>,
|
||||
@ -2258,7 +2258,7 @@ for more information about symbolic icons.</p>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>icon_info</p></td>
|
||||
<td class="parameter_description"><p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -2312,7 +2312,7 @@ or <code class="literal">NULL</code>. </p></td>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-info-load-symbolic-async"></a><h3>gtk_icon_info_load_symbolic_async ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_icon_info_load_symbolic_async (<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
gtk_icon_info_load_symbolic_async (<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">GdkRGBA</span> *fg</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">GdkRGBA</span> *success_color</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">GdkRGBA</span> *warning_color</code></em>,
|
||||
@ -2335,7 +2335,7 @@ version of this call.</p>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>icon_info</p></td>
|
||||
<td class="parameter_description"><p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> from <a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-icon" title="gtk_icon_theme_lookup_icon ()"><code class="function">gtk_icon_theme_lookup_icon()</code></a></p></td>
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> from <a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-icon" title="gtk_icon_theme_lookup_icon ()"><code class="function">gtk_icon_theme_lookup_icon()</code></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -2387,7 +2387,7 @@ request is satisfied. </p></td>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-info-load-symbolic-finish"></a><h3>gtk_icon_info_load_symbolic_finish ()</h3>
|
||||
<pre class="programlisting"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="returnvalue">GdkPixbuf</span></a> *
|
||||
gtk_icon_info_load_symbolic_finish (<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
gtk_icon_info_load_symbolic_finish (<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
<em class="parameter"><code><span class="type">GAsyncResult</span> *res</code></em>,
|
||||
<em class="parameter"><code><span class="type">gboolean</span> *was_symbolic</code></em>,
|
||||
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
|
||||
@ -2403,7 +2403,7 @@ gtk_icon_info_load_symbolic_finish (<em class="parameter"><code><a class="link"
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>icon_info</p></td>
|
||||
<td class="parameter_description"><p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> from <a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-icon" title="gtk_icon_theme_lookup_icon ()"><code class="function">gtk_icon_theme_lookup_icon()</code></a></p></td>
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> from <a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-icon" title="gtk_icon_theme_lookup_icon ()"><code class="function">gtk_icon_theme_lookup_icon()</code></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -2442,9 +2442,9 @@ to the icon. </p>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-info-load-symbolic-for-style"></a><h3>gtk_icon_info_load_symbolic_for_style ()</h3>
|
||||
<pre class="programlisting"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="returnvalue">GdkPixbuf</span></a> *
|
||||
gtk_icon_info_load_symbolic_for_style (<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
gtk_icon_info_load_symbolic_for_style (<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkStyle.html" title="GtkStyle"><span class="type">GtkStyle</span></a> *style</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkWidget.html#GtkStateType" title="enum GtkStateType"><span class="type">GtkStateType</span></a> state</code></em>,
|
||||
<em class="parameter"><code><span class="type">GtkStateType</span> state</code></em>,
|
||||
<em class="parameter"><code><span class="type">gboolean</span> *was_symbolic</code></em>,
|
||||
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
|
||||
<div class="warning">
|
||||
@ -2467,7 +2467,7 @@ one, the function will return the result from <a class="link" href="GtkIconTheme
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>icon_info</p></td>
|
||||
<td class="parameter_description"><p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -2509,7 +2509,7 @@ or <code class="literal">NULL</code>. </p></td>
|
||||
<a name="gtk-icon-info-load-symbolic-for-context"></a><h3>gtk_icon_info_load_symbolic_for_context ()</h3>
|
||||
<pre class="programlisting"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="returnvalue">GdkPixbuf</span></a> *
|
||||
gtk_icon_info_load_symbolic_for_context
|
||||
(<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
(<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
|
||||
<em class="parameter"><code><span class="type">gboolean</span> *was_symbolic</code></em>,
|
||||
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
|
||||
@ -2532,7 +2532,7 @@ the context.</p>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>icon_info</p></td>
|
||||
<td class="parameter_description"><p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -2569,7 +2569,7 @@ or <code class="literal">NULL</code>. </p></td>
|
||||
<a name="gtk-icon-info-load-symbolic-for-context-async"></a><h3>gtk_icon_info_load_symbolic_for_context_async ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_icon_info_load_symbolic_for_context_async
|
||||
(<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
(<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
|
||||
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
|
||||
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
|
||||
@ -2589,7 +2589,7 @@ which is the synchronous version of this call.</p>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>icon_info</p></td>
|
||||
<td class="parameter_description"><p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> from <a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-icon" title="gtk_icon_theme_lookup_icon ()"><code class="function">gtk_icon_theme_lookup_icon()</code></a></p></td>
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> from <a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-icon" title="gtk_icon_theme_lookup_icon ()"><code class="function">gtk_icon_theme_lookup_icon()</code></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -2624,7 +2624,7 @@ request is satisfied. </p></td>
|
||||
<a name="gtk-icon-info-load-symbolic-for-context-finish"></a><h3>gtk_icon_info_load_symbolic_for_context_finish ()</h3>
|
||||
<pre class="programlisting"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="returnvalue">GdkPixbuf</span></a> *
|
||||
gtk_icon_info_load_symbolic_for_context_finish
|
||||
(<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
(<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
<em class="parameter"><code><span class="type">GAsyncResult</span> *res</code></em>,
|
||||
<em class="parameter"><code><span class="type">gboolean</span> *was_symbolic</code></em>,
|
||||
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
|
||||
@ -2640,7 +2640,7 @@ gtk_icon_info_load_symbolic_for_context_finish
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>icon_info</p></td>
|
||||
<td class="parameter_description"><p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> from <a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-icon" title="gtk_icon_theme_lookup_icon ()"><code class="function">gtk_icon_theme_lookup_icon()</code></a></p></td>
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> from <a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-icon" title="gtk_icon_theme_lookup_icon ()"><code class="function">gtk_icon_theme_lookup_icon()</code></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -2679,7 +2679,7 @@ to the icon. </p>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-info-set-raw-coordinates"></a><h3>gtk_icon_info_set_raw_coordinates ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_icon_info_set_raw_coordinates (<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
gtk_icon_info_set_raw_coordinates (<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
<em class="parameter"><code><span class="type">gboolean</span> raw_coordinates</code></em>);</pre>
|
||||
<div class="warning">
|
||||
<p><code class="literal">gtk_icon_info_set_raw_coordinates</code> has been deprecated since version 3.14 and should not be used in newly-written code.</p>
|
||||
@ -2708,7 +2708,7 @@ for older API's, and is not expected to be useful for applications.</p>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>icon_info</p></td>
|
||||
<td class="parameter_description"><p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -2727,7 +2727,7 @@ and attached points should be returned in their original
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-info-get-embedded-rect"></a><h3>gtk_icon_info_get_embedded_rect ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||||
gtk_icon_info_get_embedded_rect (<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
gtk_icon_info_get_embedded_rect (<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
<em class="parameter"><code><span class="type">GdkRectangle</span> *rectangle</code></em>);</pre>
|
||||
<div class="warning">
|
||||
<p><code class="literal">gtk_icon_info_get_embedded_rect</code> has been deprecated since version 3.14 and should not be used in newly-written code.</p>
|
||||
@ -2745,7 +2745,7 @@ gtk_icon_info_get_embedded_rect (<em class="parameter"><code><a class="link" hre
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>icon_info</p></td>
|
||||
<td class="parameter_description"><p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -2768,7 +2768,7 @@ when this function returns <code class="literal">TRUE</code>. </p></td>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-info-get-attach-points"></a><h3>gtk_icon_info_get_attach_points ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||||
gtk_icon_info_get_attach_points (<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
gtk_icon_info_get_attach_points (<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>,
|
||||
<em class="parameter"><code><span class="type">GdkPoint</span> **points</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> *n_points</code></em>);</pre>
|
||||
<div class="warning">
|
||||
@ -2787,7 +2787,7 @@ gtk_icon_info_get_attach_points (<em class="parameter"><code><a class="link" hre
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>icon_info</p></td>
|
||||
<td class="parameter_description"><p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -2816,7 +2816,7 @@ or <code class="literal">NULL</code>. </p></td>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-info-get-display-name"></a><h3>gtk_icon_info_get_display_name ()</h3>
|
||||
<pre class="programlisting">const <span class="returnvalue">gchar</span> *
|
||||
gtk_icon_info_get_display_name (<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>);</pre>
|
||||
gtk_icon_info_get_display_name (<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>);</pre>
|
||||
<div class="warning">
|
||||
<p><code class="literal">gtk_icon_info_get_display_name</code> has been deprecated since version 3.14 and should not be used in newly-written code.</p>
|
||||
<p>Display names are deprecated</p>
|
||||
@ -2832,7 +2832,7 @@ gtk_icon_info_get_display_name (<em class="parameter"><code><a class="link" href
|
||||
</colgroup>
|
||||
<tbody><tr>
|
||||
<td class="parameter_name"><p>icon_info</p></td>
|
||||
<td class="parameter_description"><p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
@ -2847,7 +2847,7 @@ gtk_icon_info_get_display_name (<em class="parameter"><code><a class="link" href
|
||||
<div class="refsect2">
|
||||
<a name="gtk-icon-info-is-symbolic"></a><h3>gtk_icon_info_is_symbolic ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||||
gtk_icon_info_is_symbolic (<em class="parameter"><code><a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>);</pre>
|
||||
gtk_icon_info_is_symbolic (<em class="parameter"><code><a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a> *icon_info</code></em>);</pre>
|
||||
<p>Checks if the icon is symbolic or not. This currently uses only
|
||||
the file name and not the file contents for determining this.
|
||||
This behaviour may change in the future.</p>
|
||||
@ -2861,7 +2861,7 @@ This behaviour may change in the future.</p>
|
||||
</colgroup>
|
||||
<tbody><tr>
|
||||
<td class="parameter_name"><p>icon_info</p></td>
|
||||
<td class="parameter_description"><p>a <a class="link" href="GtkIconTheme.html#GtkIconInfo" title="GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk4/GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
@ -2874,187 +2874,6 @@ This behaviour may change in the future.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="refsect1">
|
||||
<a name="GtkIconTheme.other_details"></a><h2>Types and Values</h2>
|
||||
<div class="refsect2">
|
||||
<a name="GtkIconInfo"></a><h3>GtkIconInfo</h3>
|
||||
<pre class="programlisting">typedef struct _GtkIconInfo GtkIconInfo;</pre>
|
||||
<p>Contains information found when looking up an icon in
|
||||
an icon theme.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkIconTheme-struct"></a><h3>struct GtkIconTheme</h3>
|
||||
<pre class="programlisting">struct GtkIconTheme;</pre>
|
||||
<p>Acts as a database of information about an icon theme.
|
||||
Normally, you retrieve the icon theme for a particular
|
||||
screen using <a class="link" href="GtkIconTheme.html#gtk-icon-theme-get-for-screen" title="gtk_icon_theme_get_for_screen ()"><code class="function">gtk_icon_theme_get_for_screen()</code></a> and it
|
||||
will contain information about current icon theme for
|
||||
that screen, but you can also create a new <a class="link" href="GtkIconTheme.html" title="GtkIconTheme"><span class="type">GtkIconTheme</span></a>
|
||||
object and set the icon theme name explicitly using
|
||||
<a class="link" href="GtkIconTheme.html#gtk-icon-theme-set-custom-theme" title="gtk_icon_theme_set_custom_theme ()"><code class="function">gtk_icon_theme_set_custom_theme()</code></a>.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkIconThemeClass"></a><h3>struct GtkIconThemeClass</h3>
|
||||
<pre class="programlisting">struct GtkIconThemeClass {
|
||||
GObjectClass parent_class;
|
||||
|
||||
|
||||
void (* changed) (GtkIconTheme *icon_theme);
|
||||
};
|
||||
</pre>
|
||||
<div class="refsect3">
|
||||
<a name="GtkIconThemeClass.members"></a><h4>Members</h4>
|
||||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||||
<colgroup>
|
||||
<col width="300px" class="struct_members_name">
|
||||
<col class="struct_members_description">
|
||||
<col width="200px" class="struct_members_annotations">
|
||||
</colgroup>
|
||||
<tbody><tr>
|
||||
<td class="struct_member_name"><p><em class="structfield"><code><a name="GtkIconThemeClass.changed"></a>changed</code></em> ()</p></td>
|
||||
<td class="struct_member_description"><p>Signal emitted when the current icon theme is switched or
|
||||
GTK+ detects that a change has occurred in the contents of the
|
||||
current icon theme.</p></td>
|
||||
<td class="struct_member_annotations"> </td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkIconLookupFlags"></a><h3>enum GtkIconLookupFlags</h3>
|
||||
<p>Used to specify options for <a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-icon" title="gtk_icon_theme_lookup_icon ()"><code class="function">gtk_icon_theme_lookup_icon()</code></a></p>
|
||||
<div class="refsect3">
|
||||
<a name="GtkIconLookupFlags.members"></a><h4>Members</h4>
|
||||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||||
<colgroup>
|
||||
<col width="300px" class="enum_members_name">
|
||||
<col class="enum_members_description">
|
||||
<col width="200px" class="enum_members_annotations">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="enum_member_name"><p><a name="GTK-ICON-LOOKUP-NO-SVG:CAPS"></a>GTK_ICON_LOOKUP_NO_SVG</p></td>
|
||||
<td class="enum_member_description">
|
||||
<p>Never get SVG icons, even if gdk-pixbuf
|
||||
supports them. Cannot be used together with <a class="link" href="GtkIconTheme.html#GTK-ICON-LOOKUP-FORCE-SVG:CAPS"><code class="literal">GTK_ICON_LOOKUP_FORCE_SVG</code></a>.</p>
|
||||
</td>
|
||||
<td class="enum_member_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="enum_member_name"><p><a name="GTK-ICON-LOOKUP-FORCE-SVG:CAPS"></a>GTK_ICON_LOOKUP_FORCE_SVG</p></td>
|
||||
<td class="enum_member_description">
|
||||
<p>Get SVG icons, even if gdk-pixbuf
|
||||
doesn’t support them.
|
||||
Cannot be used together with <a class="link" href="GtkIconTheme.html#GTK-ICON-LOOKUP-NO-SVG:CAPS"><code class="literal">GTK_ICON_LOOKUP_NO_SVG</code></a>.</p>
|
||||
</td>
|
||||
<td class="enum_member_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="enum_member_name"><p><a name="GTK-ICON-LOOKUP-USE-BUILTIN:CAPS"></a>GTK_ICON_LOOKUP_USE_BUILTIN</p></td>
|
||||
<td class="enum_member_description">
|
||||
<p>When passed to
|
||||
<a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-icon" title="gtk_icon_theme_lookup_icon ()"><code class="function">gtk_icon_theme_lookup_icon()</code></a> includes builtin icons
|
||||
as well as files. For a builtin icon, <a class="link" href="GtkIconTheme.html#gtk-icon-info-get-filename" title="gtk_icon_info_get_filename ()"><code class="function">gtk_icon_info_get_filename()</code></a>
|
||||
is <code class="literal">NULL</code> and you need to call <a class="link" href="GtkIconTheme.html#gtk-icon-info-get-builtin-pixbuf" title="gtk_icon_info_get_builtin_pixbuf ()"><code class="function">gtk_icon_info_get_builtin_pixbuf()</code></a>.</p>
|
||||
</td>
|
||||
<td class="enum_member_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="enum_member_name"><p><a name="GTK-ICON-LOOKUP-GENERIC-FALLBACK:CAPS"></a>GTK_ICON_LOOKUP_GENERIC_FALLBACK</p></td>
|
||||
<td class="enum_member_description">
|
||||
<p>Try to shorten icon name at '-'
|
||||
characters before looking at inherited themes. This flag is only
|
||||
supported in functions that take a single icon name. For more general
|
||||
fallback, see <a class="link" href="GtkIconTheme.html#gtk-icon-theme-choose-icon" title="gtk_icon_theme_choose_icon ()"><code class="function">gtk_icon_theme_choose_icon()</code></a>. Since 2.12.</p>
|
||||
</td>
|
||||
<td class="enum_member_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="enum_member_name"><p><a name="GTK-ICON-LOOKUP-FORCE-SIZE:CAPS"></a>GTK_ICON_LOOKUP_FORCE_SIZE</p></td>
|
||||
<td class="enum_member_description">
|
||||
<p>Always get the icon scaled to the
|
||||
requested size. Since 2.14.</p>
|
||||
</td>
|
||||
<td class="enum_member_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="enum_member_name"><p><a name="GTK-ICON-LOOKUP-FORCE-REGULAR:CAPS"></a>GTK_ICON_LOOKUP_FORCE_REGULAR</p></td>
|
||||
<td class="enum_member_description">
|
||||
<p>Try to always load regular icons, even
|
||||
when symbolic icon names are given. Since 3.14.</p>
|
||||
</td>
|
||||
<td class="enum_member_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="enum_member_name"><p><a name="GTK-ICON-LOOKUP-FORCE-SYMBOLIC:CAPS"></a>GTK_ICON_LOOKUP_FORCE_SYMBOLIC</p></td>
|
||||
<td class="enum_member_description">
|
||||
<p>Try to always load symbolic icons, even
|
||||
when regular icon names are given. Since 3.14.</p>
|
||||
</td>
|
||||
<td class="enum_member_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="enum_member_name"><p><a name="GTK-ICON-LOOKUP-DIR-LTR:CAPS"></a>GTK_ICON_LOOKUP_DIR_LTR</p></td>
|
||||
<td class="enum_member_description">
|
||||
<p>Try to load a variant of the icon for left-to-right
|
||||
text direction. Since 3.14.</p>
|
||||
</td>
|
||||
<td class="enum_member_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="enum_member_name"><p><a name="GTK-ICON-LOOKUP-DIR-RTL:CAPS"></a>GTK_ICON_LOOKUP_DIR_RTL</p></td>
|
||||
<td class="enum_member_description">
|
||||
<p>Try to load a variant of the icon for right-to-left
|
||||
text direction. Since 3.14.</p>
|
||||
</td>
|
||||
<td class="enum_member_annotations"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GTK-ICON-THEME-ERROR:CAPS"></a><h3>GTK_ICON_THEME_ERROR</h3>
|
||||
<pre class="programlisting">#define GTK_ICON_THEME_ERROR gtk_icon_theme_error_quark ()
|
||||
</pre>
|
||||
<p>The <span class="type">GQuark</span> used for <a class="link" href="GtkIconTheme.html#GtkIconThemeError" title="enum GtkIconThemeError"><span class="type">GtkIconThemeError</span></a> errors.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkIconThemeError"></a><h3>enum GtkIconThemeError</h3>
|
||||
<p>Error codes for GtkIconTheme operations.</p>
|
||||
<div class="refsect3">
|
||||
<a name="GtkIconThemeError.members"></a><h4>Members</h4>
|
||||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||||
<colgroup>
|
||||
<col width="300px" class="enum_members_name">
|
||||
<col class="enum_members_description">
|
||||
<col width="200px" class="enum_members_annotations">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="enum_member_name"><p><a name="GTK-ICON-THEME-NOT-FOUND:CAPS"></a>GTK_ICON_THEME_NOT_FOUND</p></td>
|
||||
<td class="enum_member_description">
|
||||
<p>The icon specified does not exist in the theme</p>
|
||||
</td>
|
||||
<td class="enum_member_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="enum_member_name"><p><a name="GTK-ICON-THEME-FAILED:CAPS"></a>GTK_ICON_THEME_FAILED</p></td>
|
||||
<td class="enum_member_description">
|
||||
<p>An unspecified error occurred.</p>
|
||||
</td>
|
||||
<td class="enum_member_annotations"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="refsect1">
|
||||
<a name="GtkIconTheme.signal-details"></a><h2>Signal Details</h2>
|
||||
<div class="refsect2">
|
||||
<a name="GtkIconTheme-changed"></a><h3>The <code class="literal">“changed”</code> signal</h3>
|
||||
@ -3091,6 +2910,6 @@ icon theme.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<hr>Generated by GTK-Doc V1.29</div>
|
||||
<hr>Generated by GTK-Doc V1.32.1</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user