New upstream version 3.23.2

This commit is contained in:
Andrea Azzarone
2018-08-09 13:46:53 +03:00
882 changed files with 323996 additions and 311120 deletions

View File

@ -3,12 +3,12 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkAboutDialog: GTK+ 3 Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
<link rel="up" href="WindowWidgets.html" title="Windows">
<link rel="prev" href="GtkMessageDialog.html" title="GtkMessageDialog">
<link rel="next" href="GtkAssistant.html" title="GtkAssistant">
<meta name="generator" content="GTK-Doc V1.27 (XML mode)">
<meta name="generator" content="GTK-Doc V1.28 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
@ -445,7 +445,7 @@
<a name="GtkAboutDialog.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
GtkAboutDialog implements
AtkImplementor and <a class="link" href="GtkBuildable.html" title="GtkBuildable">GtkBuildable</a>.</p>
AtkImplementorIface and <a class="link" href="GtkBuildable.html" title="GtkBuildable">GtkBuildable</a>.</p>
</div>
<div class="refsect1">
<a name="GtkAboutDialog.includes"></a><h2>Includes</h2>
@ -475,14 +475,27 @@ window (where %s is replaced by the name of the application, but in
order to ensure proper translation of the title, applications should
set the title property explicitly when constructing a GtkAboutDialog,
as shown in the following example:</p>
<div class="informalexample"><pre class="programlisting">
GdkPixbuf *example_logo = gdk_pixbuf_new_from_file ("./logo.png", NULL);
gtk_show_about_dialog (NULL,
"program-name", "ExampleCode",
"logo", example_logo,
"title", _("About ExampleCode"),
NULL);
</pre></div>
<div class="informalexample">
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="listing_lines" align="right"><pre>1
2
3
4
5
6</pre></td>
<td class="listing_code"><pre class="programlisting"><span class="usertype">GdkPixbuf</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">example_logo </span><span class="symbol">=</span><span class="normal"> </span><span class="function">gdk_pixbuf_new_from_file</span><span class="normal"> </span><span class="symbol">(</span><span class="string">"./logo.png"</span><span class="symbol">,</span><span class="normal"> NULL</span><span class="symbol">);</span>
<span class="function"><a href="GtkAboutDialog.html#gtk-show-about-dialog">gtk_show_about_dialog</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">NULL</span><span class="symbol">,</span>
<span class="normal"> </span><span class="string">"program-name"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"ExampleCode"</span><span class="symbol">,</span>
<span class="normal"> </span><span class="string">"logo"</span><span class="symbol">,</span><span class="normal"> example_logo</span><span class="symbol">,</span>
<span class="normal"> </span><span class="string">"title"</span><span class="symbol">,</span><span class="normal"> </span><span class="function">_</span><span class="symbol">(</span><span class="string">"About ExampleCode"</span><span class="symbol">),</span>
<span class="normal"> NULL</span><span class="symbol">);</span></pre></td>
</tr>
</tbody>
</table>
</div>
<p></p>
<p>It is also possible to show a <a class="link" href="GtkAboutDialog.html" title="GtkAboutDialog"><span class="type">GtkAboutDialog</span></a> like any other <a class="link" href="GtkDialog.html" title="GtkDialog"><span class="type">GtkDialog</span></a>,
e.g. using <a class="link" href="GtkDialog.html#gtk-dialog-run" title="gtk_dialog_run ()"><code class="function">gtk_dialog_run()</code></a>. In this case, you might need to know that
@ -1276,11 +1289,21 @@ the translators tab of the secondary credits dialog.</p>
of the language which is currently used in the user interface.
Using <code class="function">gettext()</code>, a simple way to achieve that is to mark the
string for translation:</p>
<div class="informalexample"><pre class="programlisting">
GtkWidget *about = gtk_about_dialog_new ();
gtk_about_dialog_set_translator_credits (GTK_ABOUT_DIALOG (about),
_("translator-credits"));
</pre></div>
<div class="informalexample">
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="listing_lines" align="right"><pre>1
2
3</pre></td>
<td class="listing_code"><pre class="programlisting"><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">about </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkAboutDialog.html#gtk-about-dialog-new">gtk_about_dialog_new</a></span><span class="normal"> </span><span class="symbol">();</span>
<span class="function"><a href="GtkAboutDialog.html#gtk-about-dialog-set-translator-credits">gtk_about_dialog_set_translator_credits</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_ABOUT_DIALOG</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">about</span><span class="symbol">),</span>
<span class="normal"> </span><span class="function">_</span><span class="symbol">(</span><span class="string">"translator-credits"</span><span class="symbol">));</span></pre></td>
</tr>
</tbody>
</table>
</div>
<p>
It is a good idea to use the customary msgid “translator-credits” for this
purpose, since translators will already know the purpose of that msgid, and
@ -1858,6 +1881,6 @@ which is to call <a class="link" href="gtk3-Filesystem-utilities.html#gtk-show-u
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.27</div>
<hr>Generated by GTK-Doc V1.28</div>
</body>
</html>