📄 gtkaboutdialog.html
字号:
<tr><td><p><span class="term"><em class="parameter"><code>artists</code></em> :</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated array of strings </td></tr></tbody></table></div><p class="since">Since 2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3417428"></a><h3><a name="gtk-about-dialog-get-documenters"></a>gtk_about_dialog_get_documenters ()</h3><a class="indexterm" name="id3417444"></a><pre class="programlisting">const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a>* const * gtk_about_dialog_get_documenters (<a class="link" href="GtkAboutDialog.html" title="GtkAboutDialog">GtkAboutDialog</a> *about);</pre><p>Returns the string which are displayed in the documenters tab of the secondary credits dialog.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>about</code></em> :</span></p></td><td> a <a class="link" href="GtkAboutDialog.html" title="GtkAboutDialog"><span class="type">GtkAboutDialog</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> A <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated string array containing the documenters. The array is owned by the about dialog and must not be modified.</td></tr></tbody></table></div><p class="since">Since 2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3417534"></a><h3><a name="gtk-about-dialog-set-documenters"></a>gtk_about_dialog_set_documenters ()</h3><a class="indexterm" name="id3417550"></a><pre class="programlisting">void gtk_about_dialog_set_documenters (<a class="link" href="GtkAboutDialog.html" title="GtkAboutDialog">GtkAboutDialog</a> *about, const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> **documenters);</pre><p>Sets the strings which are displayed in the documenters tabof the secondary credits dialog.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>about</code></em> :</span></p></td><td> a <a class="link" href="GtkAboutDialog.html" title="GtkAboutDialog"><span class="type">GtkAboutDialog</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>documenters</code></em> :</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated array of strings </td></tr></tbody></table></div><p class="since">Since 2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3417648"></a><h3><a name="gtk-about-dialog-get-translator-credits"></a>gtk_about_dialog_get_translator_credits ()</h3><a class="indexterm" name="id3417664"></a><pre class="programlisting">const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a>* gtk_about_dialog_get_translator_credits (<a class="link" href="GtkAboutDialog.html" title="GtkAboutDialog">GtkAboutDialog</a> *about);</pre><p>Returns the translator credits string which is displayedin the translators tab of the secondary credits dialog.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>about</code></em> :</span></p></td><td> a <a class="link" href="GtkAboutDialog.html" title="GtkAboutDialog"><span class="type">GtkAboutDialog</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> The translator credits string. The string is owned by the about dialog and must not be modified.</td></tr></tbody></table></div><p class="since">Since 2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3417745"></a><h3><a name="gtk-about-dialog-set-translator-credits"></a>gtk_about_dialog_set_translator_credits ()</h3><a class="indexterm" name="id3417761"></a><pre class="programlisting">void gtk_about_dialog_set_translator_credits (<a class="link" href="GtkAboutDialog.html" title="GtkAboutDialog">GtkAboutDialog</a> *about, const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *translator_credits);</pre><p>Sets the translator credits string which is displayed inthe translators tab of the secondary credits dialog.</p><p>The intended use for this string is to display the translatorof 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 thestring for translation:</p><div class="informalexample"><pre class="programlisting"> gtk_about_dialog_set_translator_credits (about, _("translator-credits"));</pre></div><p>It is a good idea to use the customary msgid "translator-credits" for thispurpose, since translators will already know the purpose of that msgid, andsince <a class="link" href="GtkAboutDialog.html" title="GtkAboutDialog"><span class="type">GtkAboutDialog</span></a> will detect if "translator-credits" is untranslatedand hide the tab.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>about</code></em> :</span></p></td><td> a <a class="link" href="GtkAboutDialog.html" title="GtkAboutDialog"><span class="type">GtkAboutDialog</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>translator_credits</code></em> :</span></p></td><td> the translator credits</td></tr></tbody></table></div><p class="since">Since 2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3417889"></a><h3><a name="gtk-about-dialog-get-logo"></a>gtk_about_dialog_get_logo ()</h3><a class="indexterm" name="id3417905"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf">GdkPixbuf</a>* gtk_about_dialog_get_logo (<a class="link" href="GtkAboutDialog.html" title="GtkAboutDialog">GtkAboutDialog</a> *about);</pre><p>Returns the pixbuf displayed as logo in the about dialog.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>about</code></em> :</span></p></td><td> a <a class="link" href="GtkAboutDialog.html" title="GtkAboutDialog"><span class="type">GtkAboutDialog</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the pixbuf displayed as logo. The pixbuf is owned by the about dialog. If you want to keep a reference to it, you have to call <ahref="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-ref"><code class="function">g_object_ref()</code></a> on it.</td></tr></tbody></table></div><p class="since">Since 2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3417993"></a><h3><a name="gtk-about-dialog-set-logo"></a>gtk_about_dialog_set_logo ()</h3><a class="indexterm" name="id3418010"></a><pre class="programlisting">void gtk_about_dialog_set_logo (<a class="link" href="GtkAboutDialog.html" title="GtkAboutDialog">GtkAboutDialog</a> *about, <ahref="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf">GdkPixbuf</a> *logo);</pre><p>Sets the pixbuf to be displayed as logo in the about dialog. If it is <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>, the defaultwindow icon set with <a class="link" href="GtkWindow.html#gtk-window-set-default-icon"><code class="function">gtk_window_set_default_icon()</code></a>will be used.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>about</code></em> :</span></p></td><td> a <a class="link" href="GtkAboutDialog.html" title="GtkAboutDialog"><span class="type">GtkAboutDialog</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>logo</code></em> :</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr></tbody></table></div><p class="since">Since 2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3418137"></a><h3><a name="gtk-about-dialog-get-logo-icon-name"></a>gtk_about_dialog_get_logo_icon_name ()</h3><a class="indexterm" name="id3418153"></a><pre class="programlisting">const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a>* gtk_about_dialog_get_logo_icon_name (<a class="link" href="GtkAboutDialog.html" title="GtkAboutDialog">GtkAboutDialog</a> *about);</pre><p>Returns the icon name displayed as logo in the about dialog.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>about</code></em> :</span></p></td><td> a <a class="link" href="GtkAboutDialog.html" title="GtkAboutDialog"><span class="type">GtkAboutDialog</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the icon name displayed as logo. The string is owned by the dialog. If you want to keep a reference to it, you have to call <ahref="/usr/share/gtk-doc/html/glib/glib-String-Utility-Functions.html#g-strdup"><code class="function">g_strdup()</code></a> on it.</td></tr></tbody></table></div><p class="since">Since 2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3418243"></a><h3><a name="gtk-about-dialog-set-logo-icon-name"></a>gtk_about_dialog_set_logo_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -