📄 gtksettings.html
字号:
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether menu accelerators can be changed by pressing a key over the menu item.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id3249816"></a><h3><a name="GtkSettings--gtk-color-palette"></a>The <code class="literal">"gtk-color-palette"</code> property</h3><a class="indexterm" name="id3249833"></a><pre class="programlisting"> "gtk-color-palette" <ahref="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray">gchararray</a> : Read / Write</pre><p>Palette to use in the color selector.</p><p>Default value: "black:white:gray50:red:purple:blue:light blue:green:yellow:orange:lavender:brown:goldenrod4:dodger blue:pink:light green:gray10:gray30:gray75:gray90"</p></div><hr><div class="refsect2" lang="en"><a name="id3249862"></a><h3><a name="GtkSettings--gtk-color-scheme"></a>The <code class="literal">"gtk-color-scheme"</code> property</h3><a class="indexterm" name="id3249879"></a><pre class="programlisting"> "gtk-color-scheme" <ahref="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray">gchararray</a> : Read / Write</pre><p>A palette of named colors for use in themes. The format of the string is</p><pre class="programlisting">name1: color1name2: color2...</pre><p>Color names must be acceptable as identifiers in the <a class="link" href="gtk-Resource-Files.html" title="Resource Files">gtkrc</a> syntax, andcolor specifications must be in the format accepted by<ahref="/usr/share/gtk-doc/html/gdk/gdk-Colormaps-and-Colors.html#gdk-color-parse"><code class="function">gdk_color_parse()</code></a>.</p><p>Note that due to the way the color tables from different sources aremerged, color specifications will be converted to hexadecimal formwhen getting this property.</p><p>Starting with GTK+ 2.12, the entries can alternatively be separatedby ';' instead of newlines:</p><pre class="programlisting">name1: color1; name2: color2; ...</pre><p></p><p>Default value: ""</p><p>Since 2.10</p></div><hr><div class="refsect2" lang="en"><a name="id3249958"></a><h3><a name="GtkSettings--gtk-cursor-blink"></a>The <code class="literal">"gtk-cursor-blink"</code> property</h3><a class="indexterm" name="id3249975"></a><pre class="programlisting"> "gtk-cursor-blink" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether the cursor should blink. </p><p>Also see the <a class="link" href="GtkSettings.html#GtkSettings--gtk-cursor-blink-timeout"><span class="type">"gtk-cursor-blink-timeout"</span></a> setting, which allows more flexible control over cursor blinking.</p><p></p><p>Default value: TRUE</p></div><hr><div class="refsect2" lang="en"><a name="id3250020"></a><h3><a name="GtkSettings--gtk-cursor-blink-time"></a>The <code class="literal">"gtk-cursor-blink-time"</code> property</h3><a class="indexterm" name="id3250037"></a><pre class="programlisting"> "gtk-cursor-blink-time" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read / Write</pre><p>Length of the cursor blink cycle, in milliseconds.</p><p>Allowed values: >= 100</p><p>Default value: 1200</p></div><hr><div class="refsect2" lang="en"><a name="id3250068"></a><h3><a name="GtkSettings--gtk-cursor-blink-timeout"></a>The <code class="literal">"gtk-cursor-blink-timeout"</code> property</h3><a class="indexterm" name="id3250085"></a><pre class="programlisting"> "gtk-cursor-blink-timeout" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read / Write</pre><p>Time after which the cursor stops blinking, in seconds.The timer is reset after each user interaction.</p><p>Setting this to zero has the same effect as setting<a class="link" href="GtkSettings.html#GtkSettings--gtk-cursor-blink"><span class="type">"gtk-cursor-blink"</span></a> to <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>.</p><p></p><p>Allowed values: >= 1</p><p>Default value: 2147483647</p><p>Since 2.12</p></div><hr><div class="refsect2" lang="en"><a name="id3250150"></a><h3><a name="GtkSettings--gtk-cursor-theme-name"></a>The <code class="literal">"gtk-cursor-theme-name"</code> property</h3><a class="indexterm" name="id3250167"></a><pre class="programlisting"> "gtk-cursor-theme-name" <ahref="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray">gchararray</a> : Read / Write</pre><p>Name of the cursor theme to use, or NULL to use the default theme.</p><p>Default value: NULL</p></div><hr><div class="refsect2" lang="en"><a name="id3250194"></a><h3><a name="GtkSettings--gtk-cursor-theme-size"></a>The <code class="literal">"gtk-cursor-theme-size"</code> property</h3><a class="indexterm" name="id3250211"></a><pre class="programlisting"> "gtk-cursor-theme-size" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read / Write</pre><p>Size to use for cursors, or 0 to use the default size.</p><p>Allowed values: [0,128]</p><p>Default value: 0</p></div><hr><div class="refsect2" lang="en"><a name="id3250242"></a><h3><a name="GtkSettings--gtk-dnd-drag-threshold"></a>The <code class="literal">"gtk-dnd-drag-threshold"</code> property</h3><a class="indexterm" name="id3250259"></a><pre class="programlisting"> "gtk-dnd-drag-threshold" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read / Write</pre><p>Number of pixels the cursor can move before dragging.</p><p>Allowed values: >= 1</p><p>Default value: 8</p></div><hr><div class="refsect2" lang="en"><a name="id3250290"></a><h3><a name="GtkSettings--gtk-double-click-distance"></a>The <code class="literal">"gtk-double-click-distance"</code> property</h3><a class="indexterm" name="id3250308"></a><pre class="programlisting"> "gtk-double-click-distance" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read / Write</pre><p>Maximum distance allowed between two clicks for them to be considered a double click (in pixels).</p><p>Allowed values: >= 0</p><p>Default value: 5</p></div><hr><div class="refsect2" lang="en"><a name="id3250340"></a><h3><a name="GtkSettings--gtk-double-click-time"></a>The <code class="literal">"gtk-double-click-time"</code> property</h3><a class="indexterm" name="id3250358"></a><pre class="programlisting"> "gtk-double-click-time" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read / Write</pre><p>Maximum time allowed between two clicks for them to be considered a double click (in milliseconds).</p><p>Allowed values: >= 0</p><p>Default value: 250</p></div><hr><div class="refsect2" lang="en"><a name="id3250390"></a><h3><a name="GtkSettings--gtk-enable-accels"></a>The <code class="literal">"gtk-enable-accels"</code> property</h3><a class="indexterm" name="id3250407"></a><pre class="programlisting"> "gtk-enable-accels" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether menu items should have visible accelerators which can beactivated.</p><p></p><p>Default value: TRUE</p><p>Since 2.12</p></div><hr><div class="refsect2" lang="en"><a name="id3250443"></a><h3><a name="GtkSettings--gtk-enable-animations"></a>The <code class="literal">"gtk-enable-animations"</code> property</h3><a class="indexterm" name="id3250461"></a><pre class="programlisting"> "gtk-enable-animations" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether to enable toolkit-wide animations.</p><p>Default value: TRUE</p></div><hr><div class="refsect2" lang="en"><a name="id3250488"></a><h3><a name="GtkSettings--gtk-enable-mnemonics"></a>The <code class="literal">"gtk-enable-mnemonics"</code> property</h3><a class="indexterm" name="id3250505"></a><pre class="programlisting"> "gtk-enable-mnemonics" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether labels and menu items should have visible mnemonics whichcan be activated.</p><p></p><p>Default value: TRUE</p><p>Since 2.12</p></div><hr><div class="refsect2" lang="en"><a name="id3250542"></a><h3><a name="GtkSettings--gtk-entry-password-hint-timeout"></a>The <code class="literal">"gtk-entry-password-hint-timeout"</code> property</h3><a class="indexterm" name="id3250559"></a><pre class="programlisting"> "gtk-entry-password-hint-timeout" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> : Read / Write</pre><p>How long to show the last input character in hiddenentries. This value is in milliseconds. 0 disables showing thelast char. 600 is a good value for enabling it.</p><p></p><p>Default value: 0</p><p>Since 2.10</p></div><hr><div class="refsect2" lang="en"><a name="id3250599"></a><h3><a name="GtkSettings--gtk-entry-select-on-focus"></a>The <code class="literal">"gtk-entry-select-on-focus"</code> property</h3><a class="indexterm" name="id3250616"></a><pre class="programlisting"> "gtk-entry-select-on-focus" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether to select the contents of an entry when it is focused.</p><p>Default value: TRUE</p></div><hr><div class="refsect2" lang="en"><a name="id3250644"></a><h3><a name="GtkSettings--gtk-error-bell"></a>The <code class="literal">"gtk-error-bell"</code> property</h3><a class="indexterm" name="id3250660"></a><pre class="programlisting"> "gtk-error-bell" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>When <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, keyboard navigation and other input-related errorswill cause a beep. Since the error bell is implemented using<ahref="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#gdk-window-beep"><code class="function">gdk_window_beep()</code></a>, the windowing system may offer ways toconfigure the error bell in many ways, such as flashing thewindow or similar visual effects.</p><p></p><p>Default value: TRUE</p><p>Since 2.12</p></div><hr><div class="refsect2" lang="en"><a name="id3250721"></a><h3><a name="GtkSettings--gtk-fallback-icon-theme"></a>The <code class="literal">"gtk-fallback-icon-theme"</code> property</h3><a class="indexterm" name="id3250739"></a><pre class="programlisting"> "gtk-fallback-icon-theme" <ahref="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray">gchararray</a> : Read / Write</pre><
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -