⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gtkrecentchoosermenu.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</p></div><hr><div class="refsect2" lang="en"><a name="id4440201"></a><h3><a name="gtk-recent-chooser-menu-new"></a>gtk_recent_chooser_menu_new ()</h3><a class="indexterm" name="id4440218"></a><pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_recent_chooser_menu_new         (void);</pre><p>Creates a new <a class="link" href="GtkRecentChooserMenu.html" title="GtkRecentChooserMenu"><span class="type">GtkRecentChooserMenu</span></a> widget.</p><p>This kind of widget shows the list of recently used resources asa menu, each item as a menu item.  Each item inside the menu mighthave an icon, representing its MIME type, and a number, for mnemonicaccess.</p><p>This widget implements the <a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser"><span class="type">GtkRecentChooser</span></a> interface.</p><p>This widget creates its own <a class="link" href="GtkRecentManager.html" title="GtkRecentManager"><span class="type">GtkRecentManager</span></a> object.  See the<a class="link" href="GtkRecentChooserMenu.html#gtk-recent-chooser-menu-new-for-manager"><code class="function">gtk_recent_chooser_menu_new_for_manager()</code></a> function to know how to createa <a class="link" href="GtkRecentChooserMenu.html" title="GtkRecentChooserMenu"><span class="type">GtkRecentChooserMenu</span></a> widget bound to another <a class="link" href="GtkRecentManager.html" title="GtkRecentManager"><span class="type">GtkRecentManager</span></a> object.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a new <a class="link" href="GtkRecentChooserMenu.html" title="GtkRecentChooserMenu"><span class="type">GtkRecentChooserMenu</span></a></td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4440343"></a><h3><a name="gtk-recent-chooser-menu-new-for-manager"></a>gtk_recent_chooser_menu_new_for_manager ()</h3><a class="indexterm" name="id4440359"></a><pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_recent_chooser_menu_new_for_manager                                                        (<a class="link" href="GtkRecentManager.html" title="GtkRecentManager">GtkRecentManager</a> *manager);</pre><p>Creates a new <a class="link" href="GtkRecentChooserMenu.html" title="GtkRecentChooserMenu"><span class="type">GtkRecentChooserMenu</span></a> widget using <em class="parameter"><code>manager</code></em> asthe underlying recently used resources manager.</p><p>This is useful if you have implemented your own recent manager,or if you have a customized instance of a <a class="link" href="GtkRecentManager.html" title="GtkRecentManager"><span class="type">GtkRecentManager</span></a>object or if you wish to share a common <a class="link" href="GtkRecentManager.html" title="GtkRecentManager"><span class="type">GtkRecentManager</span></a> objectamong multiple <a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser"><span class="type">GtkRecentChooser</span></a> widgets.</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>manager</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkRecentManager.html" title="GtkRecentManager"><span class="type">GtkRecentManager</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a new <a class="link" href="GtkRecentChooserMenu.html" title="GtkRecentChooserMenu"><span class="type">GtkRecentChooserMenu</span></a>, bound to <em class="parameter"><code>manager</code></em>.</td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4440498"></a><h3><a name="gtk-recent-chooser-menu-get-show-numbers"></a>gtk_recent_chooser_menu_get_show_numbers ()</h3><a class="indexterm" name="id4440514"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_recent_chooser_menu_get_show_numbers                                                        (<a class="link" href="GtkRecentChooserMenu.html" title="GtkRecentChooserMenu">GtkRecentChooserMenu</a> *menu);</pre><p>Returns the value set by <a class="link" href="GtkRecentChooserMenu.html#gtk-recent-chooser-menu-set-show-numbers"><code class="function">gtk_recent_chooser_menu_set_show_numbers()</code></a>.</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>menu</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkRecentChooserMenu.html" title="GtkRecentChooserMenu"><span class="type">GtkRecentChooserMenu</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if numbers should be shown.</td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4440614"></a><h3><a name="gtk-recent-chooser-menu-set-show-numbers"></a>gtk_recent_chooser_menu_set_show_numbers ()</h3><a class="indexterm" name="id4440630"></a><pre class="programlisting">void                gtk_recent_chooser_menu_set_show_numbers                                                        (<a class="link" href="GtkRecentChooserMenu.html" title="GtkRecentChooserMenu">GtkRecentChooserMenu</a> *menu,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> show_numbers);</pre><p>Sets whether a number should be added to the items of <em class="parameter"><code>menu</code></em>.  Thenumbers are shown to provide a unique character for a mnemonic tobe used inside ten menu item's label.  Only the first the itemsget a number to avoid clashes.</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>menu</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkRecentChooserMenu.html" title="GtkRecentChooserMenu"><span class="type">GtkRecentChooserMenu</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>show_numbers</code></em>&#160;:</span></p></td><td> whether to show numbers</td></tr></tbody></table></div><p class="since">Since  2.10</p></div></div><div class="refsect1" lang="en"><a name="id4440730"></a><h2>Property Details</h2><div class="refsect2" lang="en"><a name="id4440741"></a><h3><a name="GtkRecentChooserMenu--show-numbers"></a>The <code class="literal">"show-numbers"</code> property</h3><a class="indexterm" name="id4440758"></a><pre class="programlisting">  "show-numbers"             <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write</pre><p>Whether the first ten items in the menu should be prepended bya number acting as a unique mnemonic.</p><p></p><p>Default value: FALSE</p><p>Since  2.10</p></div></div><div class="refsect1" lang="en"><a name="id4440796"></a><h2>See Also</h2><p><a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser"><span class="type">GtkRecentChooser</span></a></p></div><div class="refsect1" lang="en"><a name="id4440814"></a><div class="refsect2" lang="en"><a name="id4440815"></a></div><hr><div class="refsect2" lang="en"><a name="id4440816"></a></div></div></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -