File: class-gtksettings.html

package info (click to toggle)
pygtk 2.12.1-6
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 25,776 kB
  • ctags: 8,213
  • sloc: xml: 168,600; python: 14,328; sh: 9,131; ansic: 2,724; makefile: 1,141
file content (189 lines) | stat: -rw-r--r-- 32,523 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.Settings</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gtk-class-reference.html" title="The gtk Class Reference"><link rel="prev" href="class-gtkseparatortoolitem.html" title="gtk.SeparatorToolItem"><link rel="next" href="class-gtksizegroup.html" title="gtk.SizeGroup"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">gtk.Settings</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkseparatortoolitem.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtksizegroup.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtksettings"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.Settings</h2><p>gtk.Settings — an object that contains the global settings for the
widgets on a <a class="link" href="class-gdkscreen.html" title="gtk.gdk.Screen"><code class="classname">gtk.gdk.Screen</code></a></p></div><div class="refsect1" lang="en"><a name="id3481287"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.Settings</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK></span></span>):
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksettings.html#method-gtksettings--set-string-property" title="gtk.Settings.set_string_property">set_string_property</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>v_string</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>origin</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksettings.html#method-gtksettings--set-long-property" title="gtk.Settings.set_long_property">set_long_property</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>v_long</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>origin</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksettings.html#method-gtksettings--set-double-property" title="gtk.Settings.set_double_property">set_double_property</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>v_double</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>origin</code></strong></span></span>)</code><br></pre></td></tr></table><pre class="programlisting">
<span class="bold"><strong>Functions</strong></span>

<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksettings.html#function-gtk--settings-get-default" title="gtk.settings_get_default">gtk.settings_get_default</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtksettings.html#function-gtk--settings-get-for-screen" title="gtk.settings_get_for_screen">gtk.settings_get_for_screen</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>screen</code></strong></span></span>)</code>
</pre></div><div class="refsect1" lang="en"><a name="id3481559"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
  +-- <a class="link" href="class-gtksettings.html" title="gtk.Settings">gtk.Settings</a>
</pre></div><div class="refsect1" lang="en"><a name="properties-gtksettings"></a><h2>gtk.Settings Properties</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table width="100%" border="0"><colgroup><col><col><col></colgroup><tbody><tr valign="top"><td valign="top">"gtk-alternative-sort-arrows"</td><td valign="top">Read-Write</td><td valign="top">Controls the direction of the sort indicators in sorted list
              and tree views. By default an arrow pointing down means the column
              is sorted in ascending order. When set to TRUE, this order will be inverted.
              Default value: <code class="literal">FALSE</code>
              This property is available in GTK+ 2.12 and above.</td></tr><tr valign="top"><td valign="top">"color-hash"</td><td valign="top">Read</td><td valign="top">Holds a hash table representation of the
              gtk-color-scheme setting, mapping color names to <a class="link" href="class-gdkcolor.html" title="gtk.gdk.Color"><code class="classname">gtk.gdk.Color</code></a>s.
              This property is available in GTK+ 2.10 and above.</td></tr><tr valign="top"><td valign="top">"gtk-alternative-button-order"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, buttons in dialogs should
use the alternative button order. Available in GTK+ 2.6 and above. Default
value: <code class="literal">False</code></td></tr><tr valign="top"><td valign="top">"gtk-button-images"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, stock icons should be shown
in buttons. Available in GTK+ 2.4 and above.
Default value: <code class="literal">True</code></td></tr><tr valign="top"><td valign="top">"gtk-can-change-accels"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, the menu accelerators can
be changed by pressing a key over the menu item. Default
value: <code class="literal">False</code></td></tr><tr valign="top"><td valign="top">"gtk-color-palette"</td><td valign="top">Read-Write</td><td valign="top">The palette to use in the color selector.
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"</td></tr><tr valign="top"><td valign="top">"gtk-color-scheme"</td><td valign="top">Read-Write</td><td valign="top">A palette of named colors for use in themes. The format of
          the string is:
<pre class="programlisting">
name1: color1
name2: color2
...
</pre>
Color names must be acceptable as identifiers in the <a class="link" href="class-gtkrcstyle.html" title="gtk.RcStyle"><code class="classname">gtk.RcStyle</code></a> syntax,
and color specifications must be in the format accepted by the <a class="link" href="class-gdkcolor.html#function-gdk--color-parse" title="gtk.gdk.color_parse"><code class="function">gtk.gdk.color_parse</code>()</a>
function.  Note that due to the way the color tables from different sources
are merged, color specifications will be converted to hexadecimal form when
getting this property. Default value: ''.  This property is available in
GTK+ 2.10 and above.</td></tr><tr valign="top"><td valign="top">"gtk-cursor-blink"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, the cursor should
blink. Default value: <code class="literal">True</code></td></tr><tr valign="top"><td valign="top">"gtk-cursor-blink-time"</td><td valign="top">Read-Write</td><td valign="top">The length of the cursor blink cycle, in
milliseconds. Allowed values: &gt;= 100. Default value: 1200</td></tr><tr valign="top"><td valign="top">"gtk-cursor-blink-timeout"</td><td valign="top">Read-Write</td><td valign="top">Time after which the cursor stops blinking, in seconds.
          The timer is reset after each user interaction.
          Setting this to zero has the same effect as setting
          GtkSettings:gtk-cursor-blink to <code class="literal">False</code>.
          Allowed values: &gt;= 1. Default value: 2147483647.
          This property is available in GTK+ 2.12 and above.</td></tr><tr valign="top"><td valign="top">"gtk-cursor-theme-name"</td><td valign="top">Read-Write</td><td valign="top">Name of the cursor theme to use, or
              <code class="literal">None</code> to use the default theme. Default
              value: <code class="literal">None</code></td></tr><tr valign="top"><td valign="top">"gtk-cursor-theme-size"</td><td valign="top">Read-Write</td><td valign="top">Size to use for cursors, or 0 to use the default
              size. Allowed values: [0,128].  Default value: 0.</td></tr><tr valign="top"><td valign="top">"gtk-dnd-drag-threshold"</td><td valign="top">Read-Write</td><td valign="top">The number of pixels the cursor can move before
dragging starts. Allowed values: &gt;= 1. Default value: 8</td></tr><tr valign="top"><td valign="top">"gtk-double-click-distance"</td><td valign="top">Read-Write</td><td valign="top">The maximum distance allowed between two clicks for
them to be considered a double click (in pixels). Available in GTK+ 2.4
and above. Allowed values: &gt;= 0. Default value: 5</td></tr><tr valign="top"><td valign="top">"gtk-double-click-time"</td><td valign="top">Read-Write</td><td valign="top">The maximum time allowed between two clicks for them to
be considered a double click (in milliseconds). Allowed values: &gt;= 0.
Default value: 250</td></tr><tr valign="top"><td valign="top">"gtk-enable-accels"</td><td valign="top">Read-Write</td><td valign="top">Whether menu items should have visible accelerators which
              can be activated.
              Default value: <code class="literal">True</code>.
              This property is available in GTK+ 2.12 and above.</td></tr><tr valign="top"><td valign="top">"gtk-enable-animations"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code> enable toolkit-wide
              animations. Default value: <code class="literal">True</code>.</td></tr><tr valign="top"><td valign="top">"gtk-enable-mnemonics"</td><td valign="top">Read-Write</td><td valign="top">Whether labels and menu items should have visible mnemonics
              which can be activated.
              Default value: <code class="literal">True</code>.
              This property is available in GTK+ 2.12 and above.</td></tr><tr valign="top"><td valign="top">"gtk-entry-password-hint-timeout"</td><td valign="top">Read-Write</td><td valign="top">How long to show the last input character in hidden
              entries. This value is in milliseconds. 0 disables showing the
              last char. 600 is a good value for enabling it. Default value:
              0. This property is available in GTK+ 2.10 and above.</td></tr><tr valign="top"><td valign="top">"gtk-entry-select-on-focus"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, select the contents of an
entry when it is focused. Default value: <code class="literal">True</code></td></tr><tr valign="top"><td valign="top">"gtk-error-bell"</td><td valign="top">Read-Write</td><td valign="top">When <code class="literal">True</code>, keyboard navigation and other
              input-related errors will cause a beep. Since the error bell is
              implemented using
              <code class="methodname"><PYGTKDOCLINK HREF="method-gdkwindow--bell">gtk.gdk.Window.bell</PYGTKDOCLINK></code>(),
              the windowing system may
              offer ways to configure the error bell in many ways, such as
              flashing the window or similar visual effects.
              Default value: <code class="literal">True</code>.
              This property is available in GTK+ 2.12 and above.</td></tr><tr valign="top"><td valign="top">"gtk-fallback-icon-theme"</td><td valign="top">Read-Write</td><td valign="top">Name of a icon theme to fall back to. Default value:
              <code class="literal">None</code>.</td></tr><tr valign="top"><td valign="top">"gtk-font-name"</td><td valign="top">Read-Write</td><td valign="top">The name of the default font to use.
Default value: "Sans 10"</td></tr><tr valign="top"><td valign="top">"gtk-keynav-cursor-only"</td><td valign="top">Read-Write</td><td valign="top">When <code class="literal">True</code>, keyboard navigation should be
              able to reach all widgets by using the cursor keys only. Tab,
              Shift etc. keys can't be expected to be present on the used
              input device.
              Default value: <code class="literal">False</code>.
              This property is available in GTK+ 2.12 and above.</td></tr><tr valign="top"><td valign="top">"gtk-keynav-wrap-around"</td><td valign="top">Read-Write</td><td valign="top">When <code class="literal">True</code>, some widgets will wrap around
              when doing keyboard navigation, such as menus, menubars and notebooks.
              Default value: <code class="literal">True</code>.
              This property is available in GTK+ 2.12 and above.</td></tr><tr valign="top"><td valign="top">"gtk-icon-sizes"</td><td valign="top">Read-Write</td><td valign="top">The list of icon sizes
(gtk-menu=16,16;gtk-button=20,20...).
Default value: <code class="literal">None</code></td></tr><tr valign="top"><td valign="top">"gtk-icon-theme-name"</td><td valign="top">Read-Write</td><td valign="top">The name of the icon theme to use.  Available in
GTK+ 2.4 and above. Default value: "hicolor"</td></tr><tr valign="top"><td valign="top">"gtk-key-theme-name"</td><td valign="top">Read-Write</td><td valign="top">The name of the key theme RC file to load.
Default value: <code class="literal">None</code></td></tr><tr valign="top"><td valign="top">"gtk-label-select-on-focus"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code> select the contents of a
              selectable label when it is focused. Default value:
              <code class="literal">True</code>.</td></tr><tr valign="top"><td valign="top">"gtk-menu-bar-accel"</td><td valign="top">Read-Write</td><td valign="top">The keybinding to activate the menu bar.  Default
	      value: "F10"</td></tr><tr valign="top"><td valign="top">"gtk-menu-bar-popup-delay"</td><td valign="top">Read-Write</td><td valign="top">The delay before the submenus of a menu bar appear.
	      Allowed values: &gt;= 0. Default value: 0 Available in GTK+ 2.2
	      and above.</td></tr><tr valign="top"><td valign="top">"gtk-menu-images"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code> images should be shown in
	      menus. Default value: <code class="literal">True</code>. Available in
	      GTK+ 2.4 and above.</td></tr><tr valign="top"><td valign="top">"gtk-menu-popdown-delay"</td><td valign="top">Read-Write</td><td valign="top">The time before hiding a submenu when the pointer is
	      moving toward the submenu. Allowed values: &gt;= 0. Default
	      value: 1000.  Available in GTK+ 2.2 and above.</td></tr><tr valign="top"><td valign="top">"gtk-menu-popup-delay"</td><td valign="top">Read-Write</td><td valign="top">Minimum time the pointer must stay over a menu item
	      before the submenu appears. Allowed values: &gt;= 0. Default
	      value: 225.  Available in GTK+ 2.2 and above.</td></tr><tr valign="top"><td valign="top">"gtk-modules"</td><td valign="top">Read-Write</td><td valign="top">The list of currently active GTK modules.  Default
	      value: <code class="literal">None</code>. Available in GTK+ 2.6 and
	      above.</td></tr><tr valign="top"><td valign="top">"gtk-recent-files-limit"</td><td valign="top">Read-Write</td><td valign="top">The number of recently used files that should be displayed
              by default by GtkRecentChooser implementations and by the GtkFileChooser.
              A value of -1 means every recently used file stored.
              Allowed values: &gt;= -1. Default value: 50.
              This property is available in GTK+ 2.12 and above.</td></tr><tr valign="top"><td valign="top">"gtk-scrolled-window-placement"</td><td valign="top">Read-Write</td><td valign="top">Where the contents of scrolled windows are located with
              respect to the scrollbars, if not overridden by the scrolled
              window's own placement. Default value:
              <code class="literal">gtk.CORNER_TOP_LEFT</code>.</td></tr><tr valign="top"><td valign="top">"gtk-show-input-method-menu"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code> the context menus of entries
              and text views should offer to change the input
              method. Default value: <code class="literal">True</code>.</td></tr><tr valign="top"><td valign="top">"gtk-show-unicode-menu"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code> the context menus of entries
              and text views should offer to insert control
              characters. Default value: <code class="literal">True</code>.</td></tr><tr valign="top"><td valign="top">"gtk-split-cursor"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, two cursors should be
	      displayed for mixed left-to-right and right-to-left text.
	      Default value: <code class="literal">True</code></td></tr><tr valign="top"><td valign="top">"gtk-theme-name"</td><td valign="top">Read-Write</td><td valign="top">The name of the theme RC file to load.  Default value:
	      "Raleigh"</td></tr><tr valign="top"><td valign="top">"gtk-timeout-expand"</td><td valign="top">Read-Write</td><td valign="top">Expand value for timeouts, when a widget is expanding a
              new region. Allowed values: &gt;= 0.  Default value: 500.</td></tr><tr valign="top"><td valign="top">"gtk-timeout-initial"</td><td valign="top">Read-Write</td><td valign="top">Starting value for timeouts, when button is
              pressed. Allowed values: &gt;= 0.  Default value: 200.</td></tr><tr valign="top"><td valign="top">"gtk-timeout-repeat"</td><td valign="top">Read-Write</td><td valign="top">Repeat value for timeouts, when button is
              pressed. Allowed values: &gt;= 0.  Default value: 20.</td></tr><tr valign="top"><td valign="top">"gtk-toolbar-icon-size"</td><td valign="top">Read-Write</td><td valign="top">the toolbar icon size - one of:
	      <code class="literal">gtk.ICON_SIZE_MENU</code>,
	      <code class="literal">gtk.ICON_SIZE_SMALL_TOOLBAR</code>,
	      <code class="literal">gtk.ICON_SIZE_LARGE_TOOLBAR</code>,
	      <code class="literal">gtk.ICON_SIZE_BUTTON</code>,
	      <code class="literal">gtk.ICON_SIZE_DND</code> or
	      <code class="literal">gtk.ICON_SIZE_DIALOG</code>.  Default value:
	      <code class="literal">gtk.ICON_SIZE_LARGE_TOOLBAR</code>.</td></tr><tr valign="top"><td valign="top">"gtk-toolbar-style"</td><td valign="top">Read-Write</td><td valign="top">The toolbar display style - one of:
	      <code class="literal">gtk.TOOLBAR_ICONS</code>,
	      <code class="literal">gtk.TOOLBAR_TEXT</code>,
	      <code class="literal">gtk.TOOLBAR_BOTH</code> or
	      <code class="literal">gtk.TOOLBAR_BOTH_HORIZ</code>.  Default value:
	      <code class="literal">gtk.TOOLBAR_BOTH</code></td></tr><tr valign="top"><td valign="top">"gtk-tooltip-browse-mode-timeout"</td><td valign="top">Read-Write</td><td valign="top">Amount of time, in milliseconds, after which the browse mode will be disabled.
              See GtkSettings:gtk-tooltip-browse-timeout for more information about browse mode.
              Allowed values: &gt;= 0. Default value: 500.
              This property is available in GTK+ 2.12 and above</td></tr><tr valign="top"><td valign="top">"gtk-tooltip-browse-timeout"</td><td valign="top">Read-Write</td><td valign="top">Controls the time after which tooltips will appear when
              browse mode is enabled, in milliseconds.
              Browse mode is enabled when the mouse pointer moves off an object
              where a tooltip was currently being displayed. If the mouse pointer
              hits another object before the browse mode timeout expires
              (see GtkSettings:gtk-tooltip-browse-mode-timeout), it will take the
              amount of milliseconds specified by this setting to popup the tooltip
              for the new object.
              Allowed values: &gt;= 0. Default value: 100.
              This property is available in GTK+ 2.12 and above</td></tr><tr valign="top"><td valign="top">"gtk-tooltip-timeout"</td><td valign="top">Read-Write</td><td valign="top">Time, in milliseconds, after which a tooltip could appear
              if the cursor is hovering on top of a widget.
              Allowed values: &gt;= 0. Default value: 1500.
              This property is available in GTK+ 2.12 and above</td></tr><tr valign="top"><td valign="top">"gtk-touchscreen-mode"</td><td valign="top">Read-Write</td><td valign="top">When True, there are no motion notify events delivered
              on this screen, and widgets can't use the pointer hovering
              them for any essential functionality. Default value:
              <code class="literal">False</code>.  This property is available in GTK+
              2.10 and above.</td></tr><tr valign="top"><td valign="top">"gtk-xft-antialias"</td><td valign="top">Read-Write</td><td valign="top">Whether to antialias Xft fonts; 0=no, 1=yes,
	      -1=default.  Default value: -1. Available in GTK+ 2.4 and
	      above.</td></tr><tr valign="top"><td valign="top">"gtk-xft-dpi"</td><td valign="top">Read-Write</td><td valign="top">Resolution for Xft, in 1024 * dots/inch. -1 to use
	      default value. Allowed values: [-1,1048576]. Default value:
	      -1. Available in GTK+ 2.4 and above.</td></tr><tr valign="top"><td valign="top">"gtk-xft-hinting"</td><td valign="top">Read-Write</td><td valign="top">Whether to hint Xft fonts; 0=no, 1=yes, -1=default.
	      Default value: -1. Available in GTK+ 2.4 and above.</td></tr><tr valign="top"><td valign="top">"gtk-xft-hintstyle"</td><td valign="top">Read-Write</td><td valign="top">What degree of hinting to use; none, slight, medium, or
	      full. Default value: <code class="literal">None</code>. Available in
	      GTK+ 2.4 and above.</td></tr><tr valign="top"><td valign="top">"gtk-xft-rgba"</td><td valign="top">Read-Write</td><td valign="top">Type of subpixel antialiasing; none, rgb, bgr, vrgb,
	      vbgr.  Default value: <code class="literal">None</code>. Available in
	      GTK+ 2.4 and above.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="id3483112"></a><h2>Description</h2><p>The <a class="link" href="class-gtksettings.html" title="gtk.Settings"><code class="classname">gtk.Settings</code></a>
object stores the values of the global settings associated with a <a class="link" href="class-gdkscreen.html" title="gtk.gdk.Screen"><code class="classname">gtk.gdk.Screen</code></a>. The
<a class="link" href="class-gtksettings.html" title="gtk.Settings"><code class="classname">gtk.Settings</code></a>
object for the default <a class="link" href="class-gdkscreen.html" title="gtk.gdk.Screen"><code class="classname">gtk.gdk.Screen</code></a> can
be retrieved using the <a class="link" href="class-gtksettings.html#function-gtk--settings-get-default" title="gtk.settings_get_default"><code class="function">gtk.settings_get_default</code>()</a>
function. The <a class="link" href="class-gtkwidget.html#method-gtkwidget--get-settings" title="gtk.Widget.get_settings"><code class="methodname">gtk.Widget.get_settings</code>()</a>
method returns the <a class="link" href="class-gtksettings.html" title="gtk.Settings"><code class="classname">gtk.Settings</code></a>
object of the <a class="link" href="class-gdkscreen.html" title="gtk.gdk.Screen"><code class="classname">gtk.gdk.Screen</code></a> that
the widget is displayed on.</p></div><div class="refsect1" lang="en"><a name="id3483190"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtksettings--set-string-property"></a><h3>gtk.Settings.set_string_property</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_string_property</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>v_string</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>origin</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>name</code></strong> :</span></p></td><td>the name of the property to
set</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>v_string</code></strong> :</span></p></td><td>the string value</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>origin</code></strong> :</span></p></td><td>the string value of the
origin</td></tr></tbody></table><p>The <code class="methodname">set_string_property</code>() method sets
the property named <em class="parameter"><code>name</code></em> to the string value specified
by <em class="parameter"><code>v_string</code></em> at the string origin specified by
<em class="parameter"><code>origin</code></em>. <em class="parameter"><code>origin</code></em> is an
application specified string like "filename:linenumber" or
"myapp:widgetname".</p></div><div class="refsect2" lang="en"><a name="method-gtksettings--set-long-property"></a><h3>gtk.Settings.set_long_property</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_long_property</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>v_long</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>origin</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>name</code></strong> :</span></p></td><td>the name of the property to
set</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>v_long</code></strong> :</span></p></td><td>the long value</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>origin</code></strong> :</span></p></td><td>the string value of the
origin</td></tr></tbody></table><p>The <code class="methodname">set_long_property</code>() method sets the
property named <em class="parameter"><code>name</code></em> to the long value specified by
<em class="parameter"><code>v_long</code></em> at the string origin specified by
<em class="parameter"><code>origin</code></em>. <em class="parameter"><code>origin</code></em> is an
application specified string like "filename:linenumber" or
"myapp:widgetname".</p></div><div class="refsect2" lang="en"><a name="method-gtksettings--set-double-property"></a><h3>gtk.Settings.set_double_property</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_double_property</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>v_double</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>origin</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>name</code></strong> :</span></p></td><td>the name of the property to
set</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>v_double</code></strong> :</span></p></td><td>the double value</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>origin</code></strong> :</span></p></td><td>the string value of the
origin</td></tr></tbody></table><p>The <code class="methodname">set_double_property</code>() method sets
the property named <em class="parameter"><code>name</code></em> to the double value specified
by <em class="parameter"><code>v_long</code></em> at the string origin specified by
<em class="parameter"><code>origin</code></em>. <em class="parameter"><code>origin</code></em> is an
application specified string like "filename:linenumber" or
"myapp:widgetname".</p></div></div><div class="refsect1" lang="en"><a name="id3483729"></a><h2>Functions</h2><div class="refsect2" lang="en"><a name="function-gtk--settings-get-default"></a><h3>gtk.settings_get_default</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.settings_get_default</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the singleton <a class="link" href="class-gtksettings.html" title="gtk.Settings"><code class="classname">gtk.Settings</code></a>
object</td></tr></tbody></table><p>The <code class="function">gtk.settings_get_default</code> function
returns the singleton <a class="link" href="class-gtksettings.html" title="gtk.Settings"><code class="classname">gtk.Settings</code></a>
object.</p></div><div class="refsect2" lang="en"><a name="function-gtk--settings-get-for-screen"></a><h3>gtk.settings_get_for_screen</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.settings_get_for_screen</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>screen</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>screen</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkscreen.html" title="gtk.gdk.Screen"><code class="classname">gtk.gdk.Screen</code></a>
	  object</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a <a class="link" href="class-gtksettings.html" title="gtk.Settings"><code class="classname">gtk.Settings</code></a>
          object</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This function is available in PyGTK 2.2 and above.</p></div><p>The <code class="function">gtk.settings_get_for_screen</code>() function
returns the singleton <a class="link" href="class-gtksettings.html" title="gtk.Settings"><code class="classname">gtk.Settings</code></a>
object for the <a class="link" href="class-gdkscreen.html" title="gtk.gdk.Screen"><code class="classname">gtk.gdk.Screen</code></a>
specified by <em class="parameter"><code>screen</code></em>.</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-gtkseparatortoolitem.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="gtk-class-reference.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="class-gtksizegroup.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.SeparatorToolItem </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtk.SizeGroup</td></tr></table></div></body></html>