Superclassesg-object, common-lisp:standard-object, common-lisp:t Documented Subclasses
None
Direct Slotscolor-hashThe color-hash property of type GHashTable (Read) Holds a hash table representation of the gtk-color-scheme setting, mapping color names to gdk-color colors. Warning: The color-hash property has been deprecated since
version 3.8 and should not be used in newly written code. Will always return an empty hash table. gtk-alternative-button-orderThe gtk-alternative-button-order property of type :boolean (Read / Write) Whether buttons in dialogs should use the alternative button order. Default value: false gtk-alternative-sort-arrowsThe gtk-alternative-sort-arrows property of type :boolean (Read / Write)
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: false gtk-application-prefer-dark-themeThe gtk-application-prefer-dark-theme property of type :boolean (Read / Write)
Whether the application prefers to use a dark theme. If a GTK theme includes a dark variant, it will be used instead of the configured theme. Default value: false gtk-auto-mnemonicsThe gtk-auto-mnemonics property of type :boolean (Read / Write)
Whether mnemonics should be automatically shown and hidden when the user presses the mnemonic activator. Warning: The gtk-auto-mnemonics property has been deprecated
since version 3.10 and should not be used in newly written code. This setting is ignored. Default value: false gtk-button-imagesThe gtk-button-images property of type :boolean (Read / Write) Whether images should be shown on buttons. Warning: The gtk-button-images property has been deprecated since
version 3.10 and should not be used in newly written code. This setting is
deprecated. Application developers control whether a button should show an
icon or not, on a per-button basis. If a button should show an icon, use the always-show-image property of the gtk-button widget, and pack a gtk-image widget inside the button. Default value: false gtk-can-change-accelsThe gtk-can-change-accels property of type :boolean (Read / Write)
Whether menu accelerators can be changed by pressing a key over the menu item. Warning: The gtk-can-change-accels property has been deprecated
since version 3.10 and should not be used in newly written code. This setting is ignored. Default value: false gtk-color-paletteThe gtk-color-palette property of type :string (Read / Write) Palette to use in the deprecated color selector. Warning: The gtk-color-palette property has been deprecated since
version 3.10 and should not be used in newly written code. Only used by the deprecated color selector widget. gtk-color-schemeThe gtk-color-scheme property of type :string (Read / Write) A palette of named colors for use in themes. Warning: The gtk-color-scheme property has been deprecated since version 3.8
and should not be used in newly written code. Color scheme support was
dropped and is no longer supported. You can still set this property, but it will be ignored. Default value: "" gtk-cursor-aspect-ratioThe gtk-cursor-aspect-ratio property of type :float (Read / Write) The aspect ratio of the text caret. Allowed values: [0.0, 1.0] Default value: 0.04 gtk-cursor-blinkThe gtk-cursor-blink property of type :boolean (Read / Write) Whether the cursor should blink. Also see the gtk-cursor-blink-timeout setting, which allows more flexible control over cursor blinking. Default value: true gtk-cursor-blink-timeThe gtk-cursor-blink-time property of type :int (Read / Write) Length of the cursor blink cycle, in milliseconds. Allowed values: >= 100 Default value: 1200 gtk-cursor-blink-timeoutThe gtk-cursor-blink-timeout property of type :int (Read / Write)
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 the gtk-cursor-blink property to false. Allowed values: >= 1 Default value: 10 gtk-cursor-theme-nameThe gtk-cursor-theme-name property of type :string (Read / Write) Name of the cursor theme to use, or nil to use the default theme. gtk-cursor-theme-sizeThe gtk-cursor-theme-size property of type :int (Read / Write) Size to use for cursors, or 0 to use the default size. Allowed values: [0,128] Default value: 0 gtk-decoration-layoutThe gtk-decoration-layout property of type :string (Read / Write)
This setting determines which buttons should be put in the titlebar of
client-side decorated windows, and whether they should be placed at the left
or right. The format of the string is button names, separated by commas. A
colon separates the buttons that should appear on the left from those on the
right. Recognized button names are minimize, maximize, close, icon (the
window icon) and menu (a menu button for the fallback app menu). For example,
"menu:minimize,maximize,close" specifies a menu on the left, and Minimize,
Maximize and Close buttons on the right. Note that buttons will only be shown
when they are meaningful. E.g. a menu button only appears when the desktop
shell does not show the application menu, and a Close button only appears on
a window that can be closed. Also note that the setting can be overridden with the decoration-layout property of the header bar. Default value: "menu:minimize,maximize,close" The gtk-dialogs-use-header property of type :boolean (Read / Write)
Whether built-in GTK dialogs such as the file chooser, the color chooser or
the font chooser will use a header bar at the top to show action widgets, or
an action area at the bottom. This setting does not affect custom dialogs using the gtk-dialog widget directly, or message dialogs. Default value: false
gtk-dnd-drag-thresholdThe gtk-dnd-drag-threshold property of type :int (Read / Write) Number of pixels the cursor can move before dragging. Allowed values: >= 1 Default value: 8 gtk-double-click-distanceThe gtk-double-click-distance property of type :int (Read / Write)
Maximum distance in pixels allowed between two clicks for them to be considered a double click. Allowed values: >= 0 Default value: 5 gtk-double-click-timeThe gtk-double-click-time property of type :int (Read / Write)
Maximum time allowed between two clicks for them to be considered a double click, in milliseconds. Allowed values: >= 0 Default value: 250 gtk-enable-accelsThe gtk-enable-accels property of type :boolean (Read / Write)
Whether menu items should have visible accelerators which can be activated. Default value: true gtk-enable-animationsThe gtk-enable-animations property of type :boolean (Read / Write) Whether to enable toolkit-wide animations. Default value: true gtk-enable-event-soundsThe gtk-enable-event-sounds property of type :boolean (Read / Write)
Whether to play any event sounds at all. See the Sound Theme specification
for more information on event sounds and sound themes. GTK itself does not
support event sounds, you have to use a loadable module like the one that comes with the libcanberra library. Default value: true gtk-enable-input-feedback-soundsThe gtk-enable-input-feedback-sounds property of type :boolean (Read / Write)
Whether to play event sounds as feedback to user input. See the Sound Theme
specification for more information on event sounds and sound themes. GTK
itself does not support event sounds, you have to use a loadable module like the one that comes with the libcanberra library. Default value: true gtk-enable-mnemonicsThe gtk-enable-mnemonics property of type :boolean (Read / Write)
Whether labels and menu items should have visible mnemonics which can be activated. Warning: The gtk-enable-mnemonics property has been deprecated
since version 3.10 and should not be used in newly written code. This setting
can still be used for application overrides, but will be ignored in the future. Default value: true gtk-enable-primary-pasteThe gtk-enable-primary-paste property of type :boolean (Read / Write)
Whether a middle click on a mouse should paste the "PRIMARY" clipboard content at the cursor location. Default value: true gtk-enable-tooltipsThe gtk-enable-tooltips property of type :boolean (Read / Write) Whether tooltips should be shown on widgets. Warning: The gtk-enable-tooltips property has been deprecated
since version 3.10 and should not be used in newly written code. This setting is ignored. Default value: true gtk-entry-password-hint-timeoutThe gtk-entry-password-hint-timeout property of type :uint (Read / Write)
How long to show the last input character in hidden entries. This value is
in milliseconds. The value 0 disables showing the last char. The value 600 is a good value for enabling it. Default value: 0 gtk-entry-select-on-focusThe gtk-entry-select-on-focus property of type :boolean (Read / Write) Whether to select the contents of an entry when it is focused. Default value: true gtk-error-bellThe gtk-error-bell property of type :boolean (Read / Write) When true, keyboard navigation and other input-related errors will cause
a beep. Since the error bell is implemented using the function gdk-window-beep, 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: true gtk-fallback-icon-themeThe gtk-fallback-icon-theme property of type :string (Read / Write) Name of an icon theme to fall back to. Warning: The gtk-fallback-icon-theme property has been deprecated
since version 3.10 and should not be used in newly written code. This setting is ignored. Default value: nil gtk-file-chooser-backendThe gtk-file-chooser-backend property of type :string (Read / Write) Name of the backend to use by default for the gtk-file-chooser widget. Warning: The gtk-file-chooser-backend property has been deprecated
since version 3.10 and should not be used in newly written code. This setting is ignored. The gtk-file-chooser widget uses GIO by default. Default value: nil gtk-font-nameThe gtk-font-name property of type :string (Read / Write) Name of default font to use. gtk-fontconfig-timestampThe gtk-fontconfig-timestamp property of type :uint (Read / Write) Timestamp of the current fontconfig configuration. Default value: 0 gtk-icon-sizesThe gtk-icon-sizes property of type :string (Read / Write)
A list of icon sizes, e.g. "gtk-menu=16,16:gtk-button=20,20:gtk-dialog=48,48". Warning: The gtk-icon-sizes property has been deprecated since
version 3.10 and should not be used in newly written code. This setting is ignored. Default value: nil gtk-icon-theme-nameThe gtk-icon-theme-name property of type :string (Read / Write) Name of the icon theme to use. gtk-im-moduleThe gtk-im-module property of type :string (Read / Write)
Which IM (input method) module should be used by default. This is the input
method that will be used if the user has not explicitly chosen another input
method from the IM context menu. This also can be a colon-separated list of
input methods, which GTK will try in turn until it finds one available on the system. See the gtk-im-context class and the gtk-show-input-method-menu setting. Default value: nil gtk-im-preedit-styleThe gtk-im-preedit-style property of type gtk-im-preedit-style (Read / Write) How to draw the input method preedit string. Warning: The gtk-im-preedit-style property has been deprecated
since version 3.10 and should not be used in newly written code. This setting is ignored. Default value: :callback gtk-im-status-styleThe gtk-im-status-style property of type gtk-im-status-style (Read / Write) How to draw the input method statusbar. Warning: The gtk-im-status-style property has been deprecated
since version 3.10 and should not be used in newly written code. This setting is ignored. Default value: :callback gtk-key-theme-nameThe gtk-key-theme-name property of type :string (Read / Write) Name of the key theme to load. gtk-keynav-cursor-onlyThe gtk-keynav-cursor-only property of type :boolean (Read / Write) When true, keyboard navigation should be able to reach all widgets by using the cursor keys only. the Tab, Shift etc. keys cannot be expected to be present on the used input device. Warning: The gtk-keynav-cursor-only property has been deprecated
since version 3.10 and should not be used in newly written code. Generally,
the behavior for touchscreen input should be performed dynamically based on the gdk-event-source-device function. Default value: false gtk-keynav-use-caretThe gtk-keynav-use-caret property of type :boolean (Read / Write)
Whether GTK should make sure that text can be navigated with a caret, even
if it is not editable. This is useful when using a screen reader. Since 3.20 Default value: false gtk-keynav-wrap-aroundThe gtk-keynav-wrap-around property of type :boolean (Read / Write) When true, some widgets will wrap around when doing keyboard navigation, such as menus, menubars and notebooks. Warning: The gtk-keynav-wrap-around property has been deprecated
since version 3.10 and should not be used in newly written code. This setting is ignored. Default value: true gtk-label-select-on-focusThe gtk-label-select-on-focus property of type :boolean (Read / Write) Whether to select the contents of a selectable label when it is focused. Default value: true gtk-long-press-timeThe gtk-long-press-time property of type :uint (Read / Write) The time for a button or touch press to be considered a "long press". Allowed values: <= G_MAXINT Default value: 50 The gtk-menu-bar-accel property of type :string (Read / Write) Keybinding to activate the menu bar. Warning: The gtk-menu-bar-accel property has been deprecated since
version 3.10 and should not be used in newly written code. This setting can
still be used for application overrides, but will be ignored in the future. Default value: "F10"
The gtk-menu-bar-popup-delay property of type :int (Read / Write) Delay before the submenus of a menu bar appear. Warning: The gtk-menu-bar-popup-delay property has been deprecated
since version 3.10 and should not be used in newly written code. This setting is ignored. Allowed values: >= 0 Default value: 0
The gtk-menu-images property of type :boolean (Read / Write) Whether images should be shown in menus. Warning: The gtk-menu-images setting has been deprecated since
version 3.10 and should not be used in newly written code. This setting is
deprecated. Application developers control whether or not a menu item should have an icon or not, on a per widget basis. Either use a gtk-menu-item widget with a gtk-box widget containing a gtk-image widget and a gtk-accel-label widget, or describe your menus using a g-menu XML description. Default value: true
The gtk-menu-popdown-delay property of type :int (Read / Write)
The time before hiding a submenu when the pointer is moving towards the submenu. Warning: The gtk-menu-popdown-delay property has been deprecated
since version 3.10 and should not be used in newly written code. This setting is ignored. Allowed values: >= 0 Default value: 1000
The gtk-menu-popup-delay property of type :int (Read / Write)
Minimum time the pointer must stay over a menu item before the submenu appear. Warning: The gtk-menu-popup-delay property has been deprecated
since version 3.10 and should not be used in newly written code. This setting is ignored. Allowed values: >= 0 Default value: 225
gtk-modulesThe gtk-modules property of type :string (Read / Write) List of currently active GTK modules. Default value: nil gtk-overlay-scrollingThe gtk-overlay-scrolling property of type :boolean (Read / Write)
Whether scrolled windows may use overlayed scrolling indicators. If this is set to false, scrolled windows will have permanent scrollbars. Default value: true gtk-primary-button-warps-sliderThe gtk-primary-button-warps-slider property of type :boolean (Read / Write) Whether a click in a gtk-range widget trough should scroll to the click position or scroll by a single page in the respective direction. Default value: true gtk-print-backendsThe gtk-print-backends property of type :string (Read / Write)
A comma-separated list of print backends to use in the print dialog.
Available print backends depend on the GTK installation, and may include "file", "cups", "lpr" or "papi". Default value: "file,cups" gtk-print-preview-commandThe gtk-print-preview-command property of type :string (Read / Write)
A command to run for displaying the print preview. The command should contain a f placeholder, which will get replaced by the path to the PDF file. The command may also contain a s placeholder, which will get
replaced by the path to a file containing the print settings in the format produced by the function gtk-print-settings-to-file. The preview
application is responsible for removing the PDF file and the print settings file when it is done.
Default value: "evince --unlink-tempfile --preview --print-settings %s %f" gtk-recent-files-enabledThe gtk-recent-files-enabled property of type :boolean (Read / Write)
Whether GTK should keep track of items inside the recently used resources list. If set to false, the list will always be empty. Default value: true gtk-recent-files-limitThe gtk-recent-files-limit property of type :int (Read / Write)
The number of recently used files that should be displayed by default by gtk-recent-chooser implementations and by the gtk-file-chooser interface. A value of -1 means every recently used file stored. Warning: The gtk-recent-files-limit property has been deprecated
since version 3.10 and should not be used in newly written code. This setting is ignored. Allowed values: >= 50 Default value: 50 gtk-recent-files-max-ageThe gtk-recent-files-max-age property of type :int (Read / Write)
The maximum age, in days, of the items inside the recently used resources
list. Items older than this setting will be excised from the list. If set to
0, the list will always be empty; if set to -1, no item will be removed. Allowed values: >= 30 Default value: 30 gtk-scrolled-window-placementThe gtk-scrolled-window-placement property of type gtk-corner-type (Read / Write)
Where the contents of scrolled windows are located with respect to the scrollbars, if not overridden by the scrolled window's own placement. Warning: The gtk-scrolled-window-placement property has been
deprecated since version 3.10 and should not be used in newly written code. This setting is ignored. Default value: :top-left The gtk-shell-shows-app-menu property of type :boolean (Read / Write) Set to true if the desktop environment is displaying the application menu, false if the application should display it itself. Default value: false
gtk-shell-shows-desktopThe gtk-shell-shows-desktop property of type :boolean (Read / Write) Set to true if the desktop environment is displaying the desktop folder, false if not. Default value: true The gtk-shell-shows-menubar property of type :boolean (Read / Write) Set to true if the desktop environment is displaying the menubar, false if the application should display it itself. Default value: false
The gtk-show-input-method-menu property of type :boolean (Read / Write)
Whether the context menus of entries and text views should offer to change the input method. Warning: The gtk-show-input-method-menu property has been
deprecated since version 3.10 and should not be used in newly written code. This setting is ignored. Default value: true
The gtk-show-unicode-menu property of type :boolean (Read / Write)
Whether the context menus of entries and text views should offer to insert control characters. Warning: The gtk-show-unicode-menu property has been deprecated
since version 3.10 and should not be used in newly written code. This setting is ignored. Default value: false
gtk-sound-theme-nameThe gtk-sound-theme-name property of type :string (Read / Write)
The XDG sound theme to use for event sounds. See the Sound Theme specification
for more information on event sounds and sound themes. GTK itself does not
support event sounds, you have to use a loadable module like the one that comes with the libcanberra library. gtk-split-cursorThe gtk-split-cursor property of type :boolean (Read / Write)
Whether two cursors should be displayed for mixed left-to-right and right-to-left text. Default value: true gtk-theme-nameThe gtk-theme-name property of type :string (Read / Write) Name of the theme to load. gtk-timeout-expandThe gtk-timeout-expand property of type :int (Read / Write) Expand value for timeouts, when a widget is expanding a new region. Warning: The gtk-timeout-expand property has been deprecated
since version 3.10 and should not be used in newly written code. This setting is ignored. Allowed values: >= 0 Default value: 500 gtk-timeout-initialThe gtk-timeout-initial property of type :int (Read / Write) Starting value for timeouts, when button is pressed. Warning: The gtk-timeout-initial property has been deprecated
since version 3.10 and should not be used in newly written code. This setting is ignored. Allowed values: >= 0 Default value: 200 gtk-timeout-repeatThe gtk-timeout-repeat property of type :int (Read / Write) Repeat value for timeouts, when button is pressed. Warning: The gtk-timeout-repeat property has been deprecated
since version 3.10 and should not be used in newly written code. This setting is ignored. Allowed values: >= 0 Default value: 20 gtk-titlebar-double-clickThe gtk-titlebar-double-click property of type :string (Read / Write)
This setting determines the action to take when a double click occures on the
titlebar of client-side decorated windows. Recognized actions are "minimize", "toggle-maximize", "menu", "lower" or "none". Default value: "toggle-maximize" gtk-titlebar-middle-clickThe gtk-titlebar-middle-click property of type :string (Read / Write)
This setting determines the action to take when a middle-click occurs on the
titlebar of client-side decorated windows. Recognized actions are "minimize", "toggle-maximize", "menu", "lower" or "none". Default value: "none" gtk-titlebar-right-clickThe gtk-titlebar-right-click property of type :string (Read / Write)
This setting determines the action to take when a right-click occurs on the
titlebar of client-side decorated windows. Recognized actions are "minimize", "toggle-maximize", "menu", "lower" or "none". Default value: "menu" gtk-toolbar-icon-sizeThe gtk-toolbar-icon-size property of type gtk-icon-size (Read / Write) The size of icons in default toolbars. Warning: The gtk-toolbar-icon-size property has been deprecated
since version 3.10 and should not be used in newly written code. This setting is ignored. Default value: :large-toolbar gtk-toolbar-styleThe gtk-toolbar-style property of type gtk-toolbar-style (Read / Write) The size of icons in default toolbars. Warning: The gtk-toolbar-style property has been deprecated since
version 3.10 and should not be used in newly written code. This setting is ignored. Default value: :both gtk-tooltip-browse-mode-timeoutThe gtk-tooltip-browse-mode-timeout property of type :int (Read / Write)
Amount of time, in milliseconds, after which the browse mode will be disabled. Warning: The gtk-tooltip-browse-mode-timeout property has been
deprecated since version 3.10 and should not be used in newly written code. This setting is ignored. Allowed values: >= 0 Default value: 500 gtk-tooltip-browse-timeoutThe gtk-tooltip-browse-timeout property of type :int (Read / Write)
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, it will
take the amount of milliseconds specified by this setting to popup the tooltip for the new object. Warning: The gtk-tooltip-browse-timeout property has been
deprecated since version 3.10 and should not be used in newly written code. This setting is ignored. Allowed values: >= 0 Default value: 60 gtk-tooltip-timeoutThe gtk-tooltip-timeout property of type :int (Read / Write)
Time, in milliseconds, after which a tooltip could appear if the cursor is hovering on top of a widget. Warning: The gtk-tooltip-timeout property has been deprecated
since version 3.10 and should not be used in newly written code. This setting is ignored. Allowed values: >= 0 Default value: 500 gtk-touchscreen-modeThe gtk-touchscreen-mode property of type :boolean (Read / Write) When true, there are no motion notify events delivered on this screen,
and widgets cannot use the pointer hovering them for any essential functionality. Warning: The gtk-touchscreen-mode property is deprecated since
version 3.4 and should not be used in newly written code. Generally the
behavior touchscreen input should be performed dynamically based on the function gdk-event-source-device. Default value: false gtk-visible-focusThe gtk-visible-focus property of type gtk-policy-type (Read / Write)
Whether focus rectangles should be always visible, never visible, or hidden until the user starts to use the keyboard. Warning: The gtk-visible-focus property has been deprecated since
version 3.10 and should not be used in newly written code. This setting is ignored. Default value: :always gtk-xft-antialiasThe gtk-xft-antialias property of type :int (Read / Write) Whether to antialias Xft fonts: 0 = no, 1 = yes, -1 = default. Allowed values: [-1,1] Default value: -1 gtk-xft-dpiThe gtk-xft-dpi property of type :int (Read / Write) Resolution for Xft, in 1024 * dots/inch. -1 to use default value. Allowed values: [-1,1048576] Default value: -1 gtk-xft-hintingThe gtk-xft-hinting property of type :int (Read / Write) Whether to hint Xft fonts: 0 = no, 1 = yes, -1 = default. Allowed values: [-1,1] Default value: -1 gtk-xft-hintstyleThe gtk-xft-hintstyle property of type :string (Read / Write) What degree of hinting to use: hintnone, hintslight, hintmedium, or hintfull. Default value: nil gtk-xft-rgbaThe gtk-xft-rgba property of type :string (Read / Write)
Type of subpixel antialiasing: none, rgb, bgr, vrgb, vbgr. Default value: nil Details The gtk-settings object provide a mechanism to share global settings
between applications.
On the X window system, this sharing is realized by an XSettings manager
that is usually part of the desktop environment, along with utilities that
let the user change these settings. In the absence of an XSettings manager, GTK reads default values for settings from settings.ini files in /etc/gtk-3.0 and $XDG_CONFIG_HOME/gtk-3.0. These files must be valid key files, see the g-key-file API, and have a section called
"Settings". Themes can also provide default values for settings by installing a settings.ini file next to their gtk.css file.
Applications can override system-wide settings with the accessor functions
of the slots. This should be restricted to special cases though. The gtk-settings settings are not meant as an application configuration
facility. When doing so, you need to be aware that settings that are specific
to individual widgets may not be available before the widget type has been
realized at least once. The following example demonstrates a way to do this:
;; make sure the type is realized
(g-type-class-unref (g-type-class-ref "GtkMenuItem"))
(setf (gtk-settings-gtk-menu-images (gtk-settings-default)) t) There is one gtk-settings object per screen. It can be obtained with the function gtk-settings-for-screen, but in many cases, it is more convenient to use the function gtk-widget-settings. The function gtk-settings-default returns the gtk-settings object for the
default screen. |
| Slot Access FunctionsInherited Slot Access FunctionsSee also |