gtk.settings

Module for [Settings] class

Types 3

GtkSettings 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, $XDG_CONFIG_DIRS/gtk-3.0 and $XDG_CONFIG_HOME/gtk-3.0. These files must be valid key files (see #GKeyFile), 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 by setting the property of the GtkSettings object with gobject.object.ObjectWrap.set. This should be restricted to special cases though; GtkSettings 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:

gtk_init (&argc, &argv);

// make sure the type is realized
g_type_class_unref (g_type_class_ref (GTK_TYPE_IMAGE_MENU_ITEM));

g_object_set (gtk_settings_get_default (), "gtk-enable-animations", FALSE, NULL);

There is one GtkSettings instance per screen. It can be obtained with gtk.settings.Settings.getForScreen, but in many cases, it is more convenient to use gtk.widget.Widget.getSettings. gtk.settings.Settings.getDefault returns the GtkSettings instance for the default screen.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
Settings self() nothrowReturns `this`, for use in `with` statements.
SettingsGidBuilder builder() static nothrowGet builder for [gtk.settings.Settings] Returns: New builder object
bool gtkAlternativeButtonOrder() @property nothrow
void gtkAlternativeButtonOrder(bool propval) @property nothrow
bool gtkAlternativeSortArrows() @property nothrowGet `gtkAlternativeSortArrows` property. Returns: 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 ascend...
void gtkAlternativeSortArrows(bool propval) @property nothrowSet `gtkAlternativeSortArrows` property. Params: propval = Controls the direction of the sort indicators in sorted list and tree views. By default an arrow pointing down means the column is sorted ...
bool gtkApplicationPreferDarkTheme() @property nothrowGet `gtkApplicationPreferDarkTheme` property. Returns: 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.
void gtkApplicationPreferDarkTheme(bool propval) @property nothrowSet `gtkApplicationPreferDarkTheme` property. Params: propval = Whether the application prefers to use a dark theme. If a GTK+ theme includes a dark variant, it will be used instead of the configur...
bool gtkAutoMnemonics() @property nothrowGet `gtkAutoMnemonics` property. Returns: Whether mnemonics should be automatically shown and hidden when the user presses the mnemonic activator.
void gtkAutoMnemonics(bool propval) @property nothrowSet `gtkAutoMnemonics` property. Params: propval = Whether mnemonics should be automatically shown and hidden when the user presses the mnemonic activator.
bool gtkButtonImages() @property nothrowGet `gtkButtonImages` property. Returns: Whether images should be shown on buttons
void gtkButtonImages(bool propval) @property nothrowSet `gtkButtonImages` property. Params: propval = Whether images should be shown on buttons
bool gtkCanChangeAccels() @property nothrowGet `gtkCanChangeAccels` property. Returns: Whether menu accelerators can be changed by pressing a key over the menu item.
void gtkCanChangeAccels(bool propval) @property nothrowSet `gtkCanChangeAccels` property. Params: propval = Whether menu accelerators can be changed by pressing a key over the menu item.
string gtkColorPalette() @property nothrowGet `gtkColorPalette` property. Returns: Palette to use in the deprecated color selector.
void gtkColorPalette(string propval) @property nothrowSet `gtkColorPalette` property. Params: propval = Palette to use in the deprecated color selector.
string gtkColorScheme() @property nothrowGet `gtkColorScheme` property. Returns: A palette of named colors for use in themes. The format of the string is
void gtkColorScheme(string propval) @property nothrowSet `gtkColorScheme` property. Params: propval = A palette of named colors for use in themes. The format of the string is
float gtkCursorAspectRatio() @property nothrow
void gtkCursorAspectRatio(float propval) @property nothrow
bool gtkCursorBlink() @property nothrowGet `gtkCursorBlink` property. Returns: Whether the cursor should blink.
void gtkCursorBlink(bool propval) @property nothrowSet `gtkCursorBlink` property. Params: propval = Whether the cursor should blink.
int gtkCursorBlinkTime() @property nothrow
void gtkCursorBlinkTime(int propval) @property nothrow
int gtkCursorBlinkTimeout() @property nothrowGet `gtkCursorBlinkTimeout` property. Returns: Time after which the cursor stops blinking, in seconds. The timer is reset after each user interaction.
void gtkCursorBlinkTimeout(int propval) @property nothrowSet `gtkCursorBlinkTimeout` property. Params: propval = Time after which the cursor stops blinking, in seconds. The timer is reset after each user interaction.
string gtkCursorThemeName() @property nothrow
void gtkCursorThemeName(string propval) @property nothrow
int gtkCursorThemeSize() @property nothrow
void gtkCursorThemeSize(int propval) @property nothrow
string gtkDecorationLayout() @property nothrowGet `gtkDecorationLayout` property. Returns: 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 of r...
void gtkDecorationLayout(string propval) @property nothrowSet `gtkDecorationLayout` property. Params: propval = This setting determines which buttons should be put in the titlebar of client-side decorated windows, and whether they should be placed at the ...
bool gtkDialogsUseHeader() @property nothrowGet `gtkDialogsUseHeader` property. Returns: Whether builtin 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...
void gtkDialogsUseHeader(bool propval) @property nothrowSet `gtkDialogsUseHeader` property. Params: propval = Whether builtin 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 wi...
int gtkDndDragThreshold() @property nothrow
void gtkDndDragThreshold(int propval) @property nothrow
int gtkDoubleClickDistance() @property nothrow
void gtkDoubleClickDistance(int propval) @property nothrow
int gtkDoubleClickTime() @property nothrow
void gtkDoubleClickTime(int propval) @property nothrow
bool gtkEnableAccels() @property nothrowGet `gtkEnableAccels` property. Returns: Whether menu items should have visible accelerators which can be activated.
void gtkEnableAccels(bool propval) @property nothrowSet `gtkEnableAccels` property. Params: propval = Whether menu items should have visible accelerators which can be activated.
bool gtkEnableAnimations() @property nothrow
void gtkEnableAnimations(bool propval) @property nothrow
bool gtkEnableEventSounds() @property nothrowGet `gtkEnableEventSounds` property. Returns: Whether to play any event sounds at all.
void gtkEnableEventSounds(bool propval) @property nothrowSet `gtkEnableEventSounds` property. Params: propval = Whether to play any event sounds at all.
bool gtkEnableInputFeedbackSounds() @property nothrowGet `gtkEnableInputFeedbackSounds` property. Returns: Whether to play event sounds as feedback to user input.
void gtkEnableInputFeedbackSounds(bool propval) @property nothrowSet `gtkEnableInputFeedbackSounds` property. Params: propval = Whether to play event sounds as feedback to user input.
bool gtkEnableMnemonics() @property nothrowGet `gtkEnableMnemonics` property. Returns: Whether labels and menu items should have visible mnemonics which can be activated.
void gtkEnableMnemonics(bool propval) @property nothrowSet `gtkEnableMnemonics` property. Params: propval = Whether labels and menu items should have visible mnemonics which can be activated.
bool gtkEnablePrimaryPaste() @property nothrowGet `gtkEnablePrimaryPaste` property. Returns: Whether a middle click on a mouse should paste the 'PRIMARY' clipboard content at the cursor location.
void gtkEnablePrimaryPaste(bool propval) @property nothrowSet `gtkEnablePrimaryPaste` property. Params: propval = Whether a middle click on a mouse should paste the 'PRIMARY' clipboard content at the cursor location.
bool gtkEnableTooltips() @property nothrowGet `gtkEnableTooltips` property. Returns: Whether tooltips should be shown on widgets.
void gtkEnableTooltips(bool propval) @property nothrowSet `gtkEnableTooltips` property. Params: propval = Whether tooltips should be shown on widgets.
uint gtkEntryPasswordHintTimeout() @property nothrowGet `gtkEntryPasswordHintTimeout` property. Returns: 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 valu...
void gtkEntryPasswordHintTimeout(uint propval) @property nothrowSet `gtkEntryPasswordHintTimeout` property. Params: propval = 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 ...
bool gtkEntrySelectOnFocus() @property nothrow
void gtkEntrySelectOnFocus(bool propval) @property nothrow
bool gtkErrorBell() @property nothrowGet `gtkErrorBell` property. Returns: When true, keyboard navigation and other input-related errors will cause a beep. Since the error bell is implemented using [gdk.window.Window.beep], the window...
void gtkErrorBell(bool propval) @property nothrowSet `gtkErrorBell` property. Params: propval = When true, keyboard navigation and other input-related errors will cause a beep. Since the error bell is implemented using [gdk.window.Window.beep], t...
string gtkFallbackIconTheme() @property nothrowGet `gtkFallbackIconTheme` property. Returns: Name of a icon theme to fall back to.
void gtkFallbackIconTheme(string propval) @property nothrowSet `gtkFallbackIconTheme` property. Params: propval = Name of a icon theme to fall back to.
string gtkFileChooserBackend() @property nothrowGet `gtkFileChooserBackend` property. Returns: Name of the GtkFileChooser backend to use by default.
void gtkFileChooserBackend(string propval) @property nothrowSet `gtkFileChooserBackend` property. Params: propval = Name of the GtkFileChooser backend to use by default.
string gtkFontName() @property nothrowGet `gtkFontName` property. Returns: The default font to use. GTK+ uses the family name and size from this string.
void gtkFontName(string propval) @property nothrowSet `gtkFontName` property. Params: propval = The default font to use. GTK+ uses the family name and size from this string.
uint gtkFontconfigTimestamp() @property nothrow
void gtkFontconfigTimestamp(uint propval) @property nothrow
string gtkIconSizes() @property nothrowGet `gtkIconSizes` property. Returns: A list of icon sizes. The list is separated by colons, and item has the form:
void gtkIconSizes(string propval) @property nothrowSet `gtkIconSizes` property. Params: propval = A list of icon sizes. The list is separated by colons, and item has the form:
string gtkIconThemeName() @property nothrow
void gtkIconThemeName(string propval) @property nothrow
string gtkImModule() @property nothrowGet `gtkImModule` property. Returns: 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 ...
void gtkImModule(string propval) @property nothrowSet `gtkImModule` property. Params: propval = 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 inpu...
gtk.types.IMPreeditStyle gtkImPreeditStyle() @property nothrowGet `gtkImPreeditStyle` property. Returns: How to draw the input method preedit string.
void gtkImPreeditStyle(gtk.types.IMPreeditStyle propval) @property nothrowSet `gtkImPreeditStyle` property. Params: propval = How to draw the input method preedit string.
gtk.types.IMStatusStyle gtkImStatusStyle() @property nothrowGet `gtkImStatusStyle` property. Returns: How to draw the input method statusbar.
void gtkImStatusStyle(gtk.types.IMStatusStyle propval) @property nothrowSet `gtkImStatusStyle` property. Params: propval = How to draw the input method statusbar.
string gtkKeyThemeName() @property nothrow
void gtkKeyThemeName(string propval) @property nothrow
bool gtkKeynavCursorOnly() @property nothrowGet `gtkKeynavCursorOnly` property. Returns: When true, 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 o...
void gtkKeynavCursorOnly(bool propval) @property nothrowSet `gtkKeynavCursorOnly` property. Params: propval = When true, 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 ...
bool gtkKeynavUseCaret() @property nothrowGet `gtkKeynavUseCaret` property. Returns: 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.
void gtkKeynavUseCaret(bool propval) @property nothrowSet `gtkKeynavUseCaret` property. Params: propval = 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.
bool gtkKeynavWrapAround() @property nothrowGet `gtkKeynavWrapAround` property. Returns: When true, some widgets will wrap around when doing keyboard navigation, such as menus, menubars and notebooks.
void gtkKeynavWrapAround(bool propval) @property nothrowSet `gtkKeynavWrapAround` property. Params: propval = When true, some widgets will wrap around when doing keyboard navigation, such as menus, menubars and notebooks.
bool gtkLabelSelectOnFocus() @property nothrow
void gtkLabelSelectOnFocus(bool propval) @property nothrow
uint gtkLongPressTime() @property nothrowGet `gtkLongPressTime` property. Returns: The time for a button or touch press to be considered a "long press".
void gtkLongPressTime(uint propval) @property nothrowSet `gtkLongPressTime` property. Params: propval = The time for a button or touch press to be considered a "long press".
string gtkMenuBarAccel() @property nothrowGet `gtkMenuBarAccel` property. Returns: Keybinding to activate the menu bar.
void gtkMenuBarAccel(string propval) @property nothrowSet `gtkMenuBarAccel` property. Params: propval = Keybinding to activate the menu bar.
int gtkMenuBarPopupDelay() @property nothrowGet `gtkMenuBarPopupDelay` property. Returns: Delay before the submenus of a menu bar appear.
void gtkMenuBarPopupDelay(int propval) @property nothrowSet `gtkMenuBarPopupDelay` property. Params: propval = Delay before the submenus of a menu bar appear.
bool gtkMenuImages() @property nothrowGet `gtkMenuImages` property. Returns: Whether images should be shown in menu items
void gtkMenuImages(bool propval) @property nothrowSet `gtkMenuImages` property. Params: propval = Whether images should be shown in menu items
int gtkMenuPopdownDelay() @property nothrowGet `gtkMenuPopdownDelay` property. Returns: The time before hiding a submenu when the pointer is moving towards the submenu.
void gtkMenuPopdownDelay(int propval) @property nothrowSet `gtkMenuPopdownDelay` property. Params: propval = The time before hiding a submenu when the pointer is moving towards the submenu.
int gtkMenuPopupDelay() @property nothrowGet `gtkMenuPopupDelay` property. Returns: Minimum time the pointer must stay over a menu item before the submenu appear.
void gtkMenuPopupDelay(int propval) @property nothrowSet `gtkMenuPopupDelay` property. Params: propval = Minimum time the pointer must stay over a menu item before the submenu appear.
string gtkModules() @property nothrow
void gtkModules(string propval) @property nothrow
bool gtkOverlayScrolling() @property nothrowGet `gtkOverlayScrolling` property. Returns: Whether scrolled windows may use overlayed scrolling indicators. If this is set to false, scrolled windows will have permanent scrollbars.
void gtkOverlayScrolling(bool propval) @property nothrowSet `gtkOverlayScrolling` property. Params: propval = Whether scrolled windows may use overlayed scrolling indicators. If this is set to false, scrolled windows will have permanent scrollbars.
bool gtkPrimaryButtonWarpsSlider() @property nothrowGet `gtkPrimaryButtonWarpsSlider` property. Returns: If the value of this setting is true, clicking the primary button in a #GtkRange trough will move the slider, and hence set the range’s value,...
void gtkPrimaryButtonWarpsSlider(bool propval) @property nothrowSet `gtkPrimaryButtonWarpsSlider` property. Params: propval = If the value of this setting is true, clicking the primary button in a #GtkRange trough will move the slider, and hence set the rangeâ€...
string gtkPrintBackends() @property nothrowGet `gtkPrintBackends` property. Returns: 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", "cup...
void gtkPrintBackends(string propval) @property nothrowSet `gtkPrintBackends` property. Params: propval = A comma-separated list of print backends to use in the print dialog. Available print backends depend on the GTK+ installation, and may include "fi...
string gtkPrintPreviewCommand() @property nothrowGet `gtkPrintPreviewCommand` property. Returns: 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...
void gtkPrintPreviewCommand(string propval) @property nothrowSet `gtkPrintPreviewCommand` property. Params: propval = 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...
bool gtkRecentFilesEnabled() @property nothrowGet `gtkRecentFilesEnabled` property. Returns: Whether GTK+ should keep track of items inside the recently used resources list. If set to false, the list will always be empty.
void gtkRecentFilesEnabled(bool propval) @property nothrowSet `gtkRecentFilesEnabled` property. Params: propval = Whether GTK+ should keep track of items inside the recently used resources list. If set to false, the list will always be empty.
int gtkRecentFilesLimit() @property nothrowGet `gtkRecentFilesLimit` property. Returns: The number of recently used files that should be displayed by default by #GtkRecentChooser implementations and by the #GtkFileChooser. A value of -1 mea...
void gtkRecentFilesLimit(int propval) @property nothrowSet `gtkRecentFilesLimit` property. Params: propval = The number of recently used files that should be displayed by default by #GtkRecentChooser implementations and by the #GtkFileChooser. A value ...
int gtkRecentFilesMaxAge() @property nothrowGet `gtkRecentFilesMaxAge` property. Returns: 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 ...
void gtkRecentFilesMaxAge(int propval) @property nothrowSet `gtkRecentFilesMaxAge` property. Params: propval = 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. I...
gtk.types.CornerType gtkScrolledWindowPlacement() @property nothrowGet `gtkScrolledWindowPlacement` property. Returns: Where the contents of scrolled windows are located with respect to the scrollbars, if not overridden by the scrolled window's own placement.
void gtkScrolledWindowPlacement(gtk.types.CornerType propval) @property nothrowSet `gtkScrolledWindowPlacement` property. Params: propval = Where the contents of scrolled windows are located with respect to the scrollbars, if not overridden by the scrolled window's own placem...
bool gtkShellShowsAppMenu() @property nothrow
void gtkShellShowsAppMenu(bool propval) @property nothrow
bool gtkShellShowsDesktop() @property nothrow
void gtkShellShowsDesktop(bool propval) @property nothrow
bool gtkShellShowsMenubar() @property nothrow
void gtkShellShowsMenubar(bool propval) @property nothrow
bool gtkShowInputMethodMenu() @property nothrow
void gtkShowInputMethodMenu(bool propval) @property nothrow
bool gtkShowUnicodeMenu() @property nothrow
void gtkShowUnicodeMenu(bool propval) @property nothrow
string gtkSoundThemeName() @property nothrowGet `gtkSoundThemeName` property. Returns: The XDG sound theme to use for event sounds.
void gtkSoundThemeName(string propval) @property nothrowSet `gtkSoundThemeName` property. Params: propval = The XDG sound theme to use for event sounds.
bool gtkSplitCursor() @property nothrow
void gtkSplitCursor(bool propval) @property nothrow
string gtkThemeName() @property nothrow
void gtkThemeName(string propval) @property nothrow
int gtkTimeoutExpand() @property nothrow
void gtkTimeoutExpand(int propval) @property nothrow
int gtkTimeoutInitial() @property nothrow
void gtkTimeoutInitial(int propval) @property nothrow
int gtkTimeoutRepeat() @property nothrow
void gtkTimeoutRepeat(int propval) @property nothrow
string gtkTitlebarDoubleClick() @property nothrowGet `gtkTitlebarDoubleClick` property. Returns: This setting determines the action to take when a double-click occurs on the titlebar of client-side decorated windows.
void gtkTitlebarDoubleClick(string propval) @property nothrowSet `gtkTitlebarDoubleClick` property. Params: propval = This setting determines the action to take when a double-click occurs on the titlebar of client-side decorated windows.
string gtkTitlebarMiddleClick() @property nothrowGet `gtkTitlebarMiddleClick` property. Returns: This setting determines the action to take when a middle-click occurs on the titlebar of client-side decorated windows.
void gtkTitlebarMiddleClick(string propval) @property nothrowSet `gtkTitlebarMiddleClick` property. Params: propval = This setting determines the action to take when a middle-click occurs on the titlebar of client-side decorated windows.
string gtkTitlebarRightClick() @property nothrowGet `gtkTitlebarRightClick` property. Returns: This setting determines the action to take when a right-click occurs on the titlebar of client-side decorated windows.
void gtkTitlebarRightClick(string propval) @property nothrowSet `gtkTitlebarRightClick` property. Params: propval = This setting determines the action to take when a right-click occurs on the titlebar of client-side decorated windows.
gtk.types.IconSize gtkToolbarIconSize() @property nothrowGet `gtkToolbarIconSize` property. Returns: The size of icons in default toolbars.
void gtkToolbarIconSize(gtk.types.IconSize propval) @property nothrowSet `gtkToolbarIconSize` property. Params: propval = The size of icons in default toolbars.
gtk.types.ToolbarStyle gtkToolbarStyle() @property nothrowGet `gtkToolbarStyle` property. Returns: The size of icons in default toolbars.
void gtkToolbarStyle(gtk.types.ToolbarStyle propval) @property nothrowSet `gtkToolbarStyle` property. Params: propval = The size of icons in default toolbars.
int gtkTooltipBrowseModeTimeout() @property nothrowGet `gtkTooltipBrowseModeTimeout` property. Returns: Amount of time, in milliseconds, after which the browse mode will be disabled.
void gtkTooltipBrowseModeTimeout(int propval) @property nothrowSet `gtkTooltipBrowseModeTimeout` property. Params: propval = Amount of time, in milliseconds, after which the browse mode will be disabled.
int gtkTooltipBrowseTimeout() @property nothrowGet `gtkTooltipBrowseTimeout` property. Returns: Controls the time after which tooltips will appear when browse mode is enabled, in milliseconds.
void gtkTooltipBrowseTimeout(int propval) @property nothrowSet `gtkTooltipBrowseTimeout` property. Params: propval = Controls the time after which tooltips will appear when browse mode is enabled, in milliseconds.
int gtkTooltipTimeout() @property nothrowGet `gtkTooltipTimeout` property. Returns: Time, in milliseconds, after which a tooltip could appear if the cursor is hovering on top of a widget.
void gtkTooltipTimeout(int propval) @property nothrowSet `gtkTooltipTimeout` property. Params: propval = Time, in milliseconds, after which a tooltip could appear if the cursor is hovering on top of a widget.
bool gtkTouchscreenMode() @property nothrowGet `gtkTouchscreenMode` property. Returns: 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.
void gtkTouchscreenMode(bool propval) @property nothrowSet `gtkTouchscreenMode` property. Params: propval = When true, there are no motion notify events delivered on this screen, and widgets can't use the pointer hovering them for any essential functio...
gtk.types.PolicyType gtkVisibleFocus() @property nothrowGet `gtkVisibleFocus` property. Returns: Whether 'focus rectangles' should be always visible, never visible, or hidden until the user starts to use the keyboard.
void gtkVisibleFocus(gtk.types.PolicyType propval) @property nothrowSet `gtkVisibleFocus` property. Params: propval = Whether 'focus rectangles' should be always visible, never visible, or hidden until the user starts to use the keyboard.
int gtkXftAntialias() @property nothrow
void gtkXftAntialias(int propval) @property nothrow
int gtkXftDpi() @property nothrow
void gtkXftDpi(int propval) @property nothrow
int gtkXftHinting() @property nothrow
void gtkXftHinting(int propval) @property nothrow
string gtkXftHintstyle() @property nothrow
void gtkXftHintstyle(string propval) @property nothrow
string gtkXftRgba() @property nothrow
void gtkXftRgba(string propval) @property nothrow
gtk.settings.Settings getDefault() static nothrowGets the #GtkSettings object for the default GDK screen, creating it if necessary. See [gtk.settings.Settings.getForScreen]. Returns: a #GtkSettings object. If there is no default screen, then retu...
gtk.settings.Settings getForScreen(gdk.screen.Screen screen) static nothrowGets the #GtkSettings object for screen, creating it if necessary.
void resetProperty(string name) nothrowUndoes the effect of calling [gobject.object.ObjectWrap.set] to install an application-specific value for a setting. After this call, the setting will again follow the session-wide value for this s...
void setDoubleProperty(string name, double vDouble, string origin) nothrow
void setLongProperty(string name, glong vLong, string origin) nothrow
void setPropertyValue(string name, gtk.settings_value.SettingsValue svalue) nothrow
void setStringProperty(string name, string vString, string origin) nothrow
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for gtk.settings.Settings

Methods
T gtkAlternativeButtonOrder(bool propval) nothrow
T gtkAlternativeSortArrows(bool propval) nothrowSet `gtkAlternativeSortArrows` property. Params: propval = Controls the direction of the sort indicators in sorted list and tree views. By default an arrow pointing down means the column is sorted ...
T gtkApplicationPreferDarkTheme(bool propval) nothrowSet `gtkApplicationPreferDarkTheme` property. Params: propval = Whether the application prefers to use a dark theme. If a GTK+ theme includes a dark variant, it will be used instead of the configur...
T gtkAutoMnemonics(bool propval) nothrowSet `gtkAutoMnemonics` property. Params: propval = Whether mnemonics should be automatically shown and hidden when the user presses the mnemonic activator. Returns: Builder instance for fluent chai...
T gtkButtonImages(bool propval) nothrowSet `gtkButtonImages` property. Params: propval = Whether images should be shown on buttons Returns: Builder instance for fluent chaining
T gtkCanChangeAccels(bool propval) nothrowSet `gtkCanChangeAccels` property. Params: propval = Whether menu accelerators can be changed by pressing a key over the menu item. Returns: Builder instance for fluent chaining
T gtkColorPalette(string propval) nothrowSet `gtkColorPalette` property. Params: propval = Palette to use in the deprecated color selector. Returns: Builder instance for fluent chaining
T gtkColorScheme(string propval) nothrowSet `gtkColorScheme` property. Params: propval = A palette of named colors for use in themes. The format of the string is
T gtkCursorAspectRatio(float propval) nothrow
T gtkCursorBlink(bool propval) nothrowSet `gtkCursorBlink` property. Params: propval = Whether the cursor should blink.
T gtkCursorBlinkTime(int propval) nothrow
T gtkCursorBlinkTimeout(int propval) nothrowSet `gtkCursorBlinkTimeout` property. Params: propval = Time after which the cursor stops blinking, in seconds. The timer is reset after each user interaction.
T gtkCursorThemeName(string propval) nothrow
T gtkCursorThemeSize(int propval) nothrow
T gtkDecorationLayout(string propval) nothrowSet `gtkDecorationLayout` property. Params: propval = This setting determines which buttons should be put in the titlebar of client-side decorated windows, and whether they should be placed at the ...
T gtkDialogsUseHeader(bool propval) nothrowSet `gtkDialogsUseHeader` property. Params: propval = Whether builtin 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 wi...
T gtkDndDragThreshold(int propval) nothrow
T gtkDoubleClickDistance(int propval) nothrow
T gtkDoubleClickTime(int propval) nothrow
T gtkEnableAccels(bool propval) nothrowSet `gtkEnableAccels` property. Params: propval = Whether menu items should have visible accelerators which can be activated. Returns: Builder instance for fluent chaining
T gtkEnableAnimations(bool propval) nothrow
T gtkEnableEventSounds(bool propval) nothrowSet `gtkEnableEventSounds` property. Params: propval = Whether to play any event sounds at all.
T gtkEnableInputFeedbackSounds(bool propval) nothrowSet `gtkEnableInputFeedbackSounds` property. Params: propval = Whether to play event sounds as feedback to user input.
T gtkEnableMnemonics(bool propval) nothrowSet `gtkEnableMnemonics` property. Params: propval = Whether labels and menu items should have visible mnemonics which can be activated. Returns: Builder instance for fluent chaining
T gtkEnablePrimaryPaste(bool propval) nothrowSet `gtkEnablePrimaryPaste` property. Params: propval = Whether a middle click on a mouse should paste the 'PRIMARY' clipboard content at the cursor location. Returns: Builder instance for fluent c...
T gtkEnableTooltips(bool propval) nothrowSet `gtkEnableTooltips` property. Params: propval = Whether tooltips should be shown on widgets. Returns: Builder instance for fluent chaining
T gtkEntryPasswordHintTimeout(uint propval) nothrowSet `gtkEntryPasswordHintTimeout` property. Params: propval = 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 ...
T gtkEntrySelectOnFocus(bool propval) nothrow
T gtkErrorBell(bool propval) nothrowSet `gtkErrorBell` property. Params: propval = When true, keyboard navigation and other input-related errors will cause a beep. Since the error bell is implemented using [gdk.window.Window.beep], t...
T gtkFallbackIconTheme(string propval) nothrowSet `gtkFallbackIconTheme` property. Params: propval = Name of a icon theme to fall back to. Returns: Builder instance for fluent chaining
T gtkFileChooserBackend(string propval) nothrowSet `gtkFileChooserBackend` property. Params: propval = Name of the GtkFileChooser backend to use by default. Returns: Builder instance for fluent chaining
T gtkFontName(string propval) nothrowSet `gtkFontName` property. Params: propval = The default font to use. GTK+ uses the family name and size from this string. Returns: Builder instance for fluent chaining
T gtkFontconfigTimestamp(uint propval) nothrow
T gtkIconSizes(string propval) nothrowSet `gtkIconSizes` property. Params: propval = A list of icon sizes. The list is separated by colons, and item has the form:
T gtkIconThemeName(string propval) nothrow
T gtkImModule(string propval) nothrowSet `gtkImModule` property. Params: propval = 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 inpu...
T gtkImPreeditStyle(gtk.types.IMPreeditStyle propval) nothrowSet `gtkImPreeditStyle` property. Params: propval = How to draw the input method preedit string. Returns: Builder instance for fluent chaining
T gtkImStatusStyle(gtk.types.IMStatusStyle propval) nothrowSet `gtkImStatusStyle` property. Params: propval = How to draw the input method statusbar. Returns: Builder instance for fluent chaining
T gtkKeyThemeName(string propval) nothrow
T gtkKeynavCursorOnly(bool propval) nothrowSet `gtkKeynavCursorOnly` property. Params: propval = When true, 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 ...
T gtkKeynavUseCaret(bool propval) nothrowSet `gtkKeynavUseCaret` property. Params: propval = 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. Ret...
T gtkKeynavWrapAround(bool propval) nothrowSet `gtkKeynavWrapAround` property. Params: propval = When true, some widgets will wrap around when doing keyboard navigation, such as menus, menubars and notebooks. Returns: Builder instance for f...
T gtkLabelSelectOnFocus(bool propval) nothrow
T gtkLongPressTime(uint propval) nothrowSet `gtkLongPressTime` property. Params: propval = The time for a button or touch press to be considered a "long press". Returns: Builder instance for fluent chaining
T gtkMenuBarAccel(string propval) nothrowSet `gtkMenuBarAccel` property. Params: propval = Keybinding to activate the menu bar. Returns: Builder instance for fluent chaining
T gtkMenuBarPopupDelay(int propval) nothrowSet `gtkMenuBarPopupDelay` property. Params: propval = Delay before the submenus of a menu bar appear. Returns: Builder instance for fluent chaining
T gtkMenuImages(bool propval) nothrowSet `gtkMenuImages` property. Params: propval = Whether images should be shown in menu items Returns: Builder instance for fluent chaining
T gtkMenuPopdownDelay(int propval) nothrowSet `gtkMenuPopdownDelay` property. Params: propval = The time before hiding a submenu when the pointer is moving towards the submenu. Returns: Builder instance for fluent chaining
T gtkMenuPopupDelay(int propval) nothrowSet `gtkMenuPopupDelay` property. Params: propval = Minimum time the pointer must stay over a menu item before the submenu appear. Returns: Builder instance for fluent chaining
T gtkModules(string propval) nothrow
T gtkOverlayScrolling(bool propval) nothrowSet `gtkOverlayScrolling` property. Params: propval = Whether scrolled windows may use overlayed scrolling indicators. If this is set to false, scrolled windows will have permanent scrollbars. Retu...
T gtkPrimaryButtonWarpsSlider(bool propval) nothrowSet `gtkPrimaryButtonWarpsSlider` property. Params: propval = If the value of this setting is true, clicking the primary button in a #GtkRange trough will move the slider, and hence set the rangeâ€...
T gtkPrintBackends(string propval) nothrowSet `gtkPrintBackends` property. Params: propval = A comma-separated list of print backends to use in the print dialog. Available print backends depend on the GTK+ installation, and may include "fi...
T gtkPrintPreviewCommand(string propval) nothrowSet `gtkPrintPreviewCommand` property. Params: propval = 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...
T gtkRecentFilesEnabled(bool propval) nothrowSet `gtkRecentFilesEnabled` property. Params: propval = Whether GTK+ should keep track of items inside the recently used resources list. If set to false, the list will always be empty. Returns: Bui...
T gtkRecentFilesLimit(int propval) nothrowSet `gtkRecentFilesLimit` property. Params: propval = The number of recently used files that should be displayed by default by #GtkRecentChooser implementations and by the #GtkFileChooser. A value ...
T gtkRecentFilesMaxAge(int propval) nothrowSet `gtkRecentFilesMaxAge` property. Params: propval = 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. I...
T gtkScrolledWindowPlacement(gtk.types.CornerType propval) nothrowSet `gtkScrolledWindowPlacement` property. Params: propval = Where the contents of scrolled windows are located with respect to the scrollbars, if not overridden by the scrolled window's own placem...
T gtkShellShowsAppMenu(bool propval) nothrow
T gtkShellShowsDesktop(bool propval) nothrow
T gtkShellShowsMenubar(bool propval) nothrow
T gtkShowInputMethodMenu(bool propval) nothrow
T gtkShowUnicodeMenu(bool propval) nothrow
T gtkSoundThemeName(string propval) nothrowSet `gtkSoundThemeName` property. Params: propval = The XDG sound theme to use for event sounds.
T gtkSplitCursor(bool propval) nothrow
T gtkThemeName(string propval) nothrow
T gtkTimeoutExpand(int propval) nothrow
T gtkTimeoutInitial(int propval) nothrow
T gtkTimeoutRepeat(int propval) nothrow
T gtkTitlebarDoubleClick(string propval) nothrowSet `gtkTitlebarDoubleClick` property. Params: propval = This setting determines the action to take when a double-click occurs on the titlebar of client-side decorated windows.
T gtkTitlebarMiddleClick(string propval) nothrowSet `gtkTitlebarMiddleClick` property. Params: propval = This setting determines the action to take when a middle-click occurs on the titlebar of client-side decorated windows.
T gtkTitlebarRightClick(string propval) nothrowSet `gtkTitlebarRightClick` property. Params: propval = This setting determines the action to take when a right-click occurs on the titlebar of client-side decorated windows.
T gtkToolbarIconSize(gtk.types.IconSize propval) nothrowSet `gtkToolbarIconSize` property. Params: propval = The size of icons in default toolbars. Returns: Builder instance for fluent chaining
T gtkToolbarStyle(gtk.types.ToolbarStyle propval) nothrowSet `gtkToolbarStyle` property. Params: propval = The size of icons in default toolbars. Returns: Builder instance for fluent chaining
T gtkTooltipBrowseModeTimeout(int propval) nothrowSet `gtkTooltipBrowseModeTimeout` property. Params: propval = Amount of time, in milliseconds, after which the browse mode will be disabled.
T gtkTooltipBrowseTimeout(int propval) nothrowSet `gtkTooltipBrowseTimeout` property. Params: propval = Controls the time after which tooltips will appear when browse mode is enabled, in milliseconds.
T gtkTooltipTimeout(int propval) nothrowSet `gtkTooltipTimeout` property. Params: propval = Time, in milliseconds, after which a tooltip could appear if the cursor is hovering on top of a widget. Returns: Builder instance for fluent chai...
T gtkTouchscreenMode(bool propval) nothrowSet `gtkTouchscreenMode` property. Params: propval = When true, there are no motion notify events delivered on this screen, and widgets can't use the pointer hovering them for any essential functio...
T gtkVisibleFocus(gtk.types.PolicyType propval) nothrowSet `gtkVisibleFocus` property. Params: propval = Whether 'focus rectangles' should be always visible, never visible, or hidden until the user starts to use the keyboard. Returns: Builder instance ...
T gtkXftAntialias(int propval) nothrow
T gtkXftDpi(int propval) nothrow
T gtkXftHinting(int propval) nothrow
T gtkXftHintstyle(string propval) nothrow
T gtkXftRgba(string propval) nothrow

Fluent builder for gtk.settings.Settings

Methods
Settings build() nothrowCreate object from builder. Returns: New object