Class: Gtk::Settings

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#color_hashGLib::HashTable

Holds a hash table representation of the Gtk::Settings:gtk-color-scheme setting, mapping color names to Gdk::Colors.

Returns:

  • (GLib::HashTable)

    color-hash

#color_hash=(color_hash) ⇒ GLib::HashTable

Holds a hash table representation of the Gtk::Settings:gtk-color-scheme setting, mapping color names to Gdk::Colors.

Parameters:

  • color_hash (GLib::HashTable)

Returns:

  • (GLib::HashTable)

    color-hash

  • (GLib::HashTable)

    color-hash

#gtk_alternative_button_order=(gtk_alternative_button_order) ⇒ TrueClass

Parameters:

  • gtk_alternative_button_order (TrueClass)

Returns:

  • (TrueClass)

    gtk-alternative-button-order

  • (TrueClass)

    gtk-alternative-button-order

#gtk_alternative_button_order?TrueClass

Returns gtk-alternative-button-order.

Returns:

  • (TrueClass)

    gtk-alternative-button-order

#gtk_alternative_sort_arrows=(gtk_alternative_sort_arrows) ⇒ TrueClass

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.

Parameters:

  • gtk_alternative_sort_arrows (TrueClass)

Returns:

  • (TrueClass)

    gtk-alternative-sort-arrows

  • (TrueClass)

    gtk-alternative-sort-arrows

#gtk_alternative_sort_arrows?TrueClass

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.

Returns:

  • (TrueClass)

    gtk-alternative-sort-arrows

#gtk_application_prefer_dark_theme=(gtk_application_prefer_dark_theme) ⇒ TrueClass

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.

Some applications benefit from minimizing the amount of light pollution that interferes with the content. Good candidates for dark themes are photo and video editors that make the actual content get all the attention and minimize the distraction of the chrome.

Dark themes should not be used for documents, where large spaces are white/light and the dark chrome creates too much contrast (web browser, text editor…).

Parameters:

  • gtk_application_prefer_dark_theme (TrueClass)

Returns:

  • (TrueClass)

    gtk-application-prefer-dark-theme

  • (TrueClass)

    gtk-application-prefer-dark-theme

#gtk_application_prefer_dark_theme?TrueClass

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.

Some applications benefit from minimizing the amount of light pollution that interferes with the content. Good candidates for dark themes are photo and video editors that make the actual content get all the attention and minimize the distraction of the chrome.

Dark themes should not be used for documents, where large spaces are white/light and the dark chrome creates too much contrast (web browser, text editor…).

Returns:

  • (TrueClass)

    gtk-application-prefer-dark-theme

#gtk_auto_mnemonics=(gtk_auto_mnemonics) ⇒ TrueClass

Whether mnemonics should be automatically shown and hidden when the user presses the mnemonic activator.

Parameters:

  • gtk_auto_mnemonics (TrueClass)

Returns:

  • (TrueClass)

    gtk-auto-mnemonics

  • (TrueClass)

    gtk-auto-mnemonics

#gtk_auto_mnemonics?TrueClass

Whether mnemonics should be automatically shown and hidden when the user presses the mnemonic activator.

Returns:

  • (TrueClass)

    gtk-auto-mnemonics

#gtk_button_images=(gtk_button_images) ⇒ TrueClass

Whether images should be shown on buttons

Parameters:

  • gtk_button_images (TrueClass)

Returns:

  • (TrueClass)

    gtk-button-images

  • (TrueClass)

    gtk-button-images

#gtk_button_images?TrueClass

Whether images should be shown on buttons

Returns:

  • (TrueClass)

    gtk-button-images

#gtk_can_change_accels=(gtk_can_change_accels) ⇒ TrueClass

Whether menu accelerators can be changed by pressing a key over the menu item.

Parameters:

  • gtk_can_change_accels (TrueClass)

Returns:

  • (TrueClass)

    gtk-can-change-accels

  • (TrueClass)

    gtk-can-change-accels

#gtk_can_change_accels?TrueClass

Whether menu accelerators can be changed by pressing a key over the menu item.

Returns:

  • (TrueClass)

    gtk-can-change-accels

#gtk_color_paletteString

Palette to use in the deprecated color selector.

Returns:

  • (String)

    gtk-color-palette

#gtk_color_palette=(gtk_color_palette) ⇒ String

Palette to use in the deprecated color selector.

Parameters:

  • gtk_color_palette (String)

Returns:

  • (String)

    gtk-color-palette

  • (String)

    gtk-color-palette

#gtk_color_schemeString

A palette of named colors for use in themes. The format of the string is |[ name1: color1 name2: color2 … ]| Color names must be acceptable as identifiers in the

gtkrc][gtk3-Resource-Files

syntax, and

color specifications must be in the format accepted by gdk_color_parse().

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.

Starting with GTK+ 2.12, the entries can alternatively be separated by ‘;’ instead of newlines: |[ name1: color1; name2: color2; … ]|

Returns:

  • (String)

    gtk-color-scheme

#gtk_color_scheme=(gtk_color_scheme) ⇒ String

A palette of named colors for use in themes. The format of the string is |[ name1: color1 name2: color2 … ]| Color names must be acceptable as identifiers in the

gtkrc][gtk3-Resource-Files

syntax, and

color specifications must be in the format accepted by gdk_color_parse().

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.

Starting with GTK+ 2.12, the entries can alternatively be separated by ‘;’ instead of newlines: |[ name1: color1; name2: color2; … ]|

Parameters:

  • gtk_color_scheme (String)

Returns:

  • (String)

    gtk-color-scheme

  • (String)

    gtk-color-scheme

#gtk_cursor_blink=(gtk_cursor_blink) ⇒ TrueClass

Whether the cursor should blink.

Also see the Gtk::Settings:gtk-cursor-blink-timeout setting, which allows more flexible control over cursor blinking.

Parameters:

  • gtk_cursor_blink (TrueClass)

Returns:

  • (TrueClass)

    gtk-cursor-blink

  • (TrueClass)

    gtk-cursor-blink

#gtk_cursor_blink?TrueClass

Whether the cursor should blink.

Also see the Gtk::Settings:gtk-cursor-blink-timeout setting, which allows more flexible control over cursor blinking.

Returns:

  • (TrueClass)

    gtk-cursor-blink

Returns gtk-cursor-blink-time.

Returns:

  • (Integer)

    gtk-cursor-blink-time

Parameters:

  • gtk_cursor_blink_time (Integer)

Returns:

  • (Integer)

    gtk-cursor-blink-time

  • (Integer)

    gtk-cursor-blink-time

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 Gtk::Settings:gtk-cursor-blink to false.

Returns:

  • (Integer)

    gtk-cursor-blink-timeout

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 Gtk::Settings:gtk-cursor-blink to false.

Parameters:

  • gtk_cursor_blink_timeout (Integer)

Returns:

  • (Integer)

    gtk-cursor-blink-timeout

  • (Integer)

    gtk-cursor-blink-timeout

#gtk_cursor_theme_nameString

Returns gtk-cursor-theme-name.

Returns:

  • (String)

    gtk-cursor-theme-name

#gtk_cursor_theme_name=(gtk_cursor_theme_name) ⇒ String

Parameters:

  • gtk_cursor_theme_name (String)

Returns:

  • (String)

    gtk-cursor-theme-name

  • (String)

    gtk-cursor-theme-name

#gtk_cursor_theme_sizeInteger

Returns gtk-cursor-theme-size.

Returns:

  • (Integer)

    gtk-cursor-theme-size

#gtk_cursor_theme_size=(gtk_cursor_theme_size) ⇒ Integer

Parameters:

  • gtk_cursor_theme_size (Integer)

Returns:

  • (Integer)

    gtk-cursor-theme-size

  • (Integer)

    gtk-cursor-theme-size

#gtk_decoration_layoutString

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 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 app menu, and a close button only appears on a window that can be closed.

Also note that the setting can be overridden with the Gtk::HeaderBar:decoration-layout property.

Returns:

  • (String)

    gtk-decoration-layout

#gtk_decoration_layout=(gtk_decoration_layout) ⇒ String

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 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 app menu, and a close button only appears on a window that can be closed.

Also note that the setting can be overridden with the Gtk::HeaderBar:decoration-layout property.

Parameters:

  • gtk_decoration_layout (String)

Returns:

  • (String)

    gtk-decoration-layout

  • (String)

    gtk-decoration-layout

#gtk_dialogs_use_header=(gtk_dialogs_use_header) ⇒ TrueClass

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 an action area at the bottom.

This setting does not affect custom dialogs using GtkDialog directly, or message dialogs.

Parameters:

  • gtk_dialogs_use_header (TrueClass)

Returns:

  • (TrueClass)

    gtk-dialogs-use-header

  • (TrueClass)

    gtk-dialogs-use-header

#gtk_dialogs_use_header?TrueClass

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 an action area at the bottom.

This setting does not affect custom dialogs using GtkDialog directly, or message dialogs.

Returns:

  • (TrueClass)

    gtk-dialogs-use-header

#gtk_dnd_drag_thresholdInteger

Returns gtk-dnd-drag-threshold.

Returns:

  • (Integer)

    gtk-dnd-drag-threshold

#gtk_dnd_drag_threshold=(gtk_dnd_drag_threshold) ⇒ Integer

Parameters:

  • gtk_dnd_drag_threshold (Integer)

Returns:

  • (Integer)

    gtk-dnd-drag-threshold

  • (Integer)

    gtk-dnd-drag-threshold

#gtk_double_click_distanceInteger

Returns gtk-double-click-distance.

Returns:

  • (Integer)

    gtk-double-click-distance

#gtk_double_click_distance=(gtk_double_click_distance) ⇒ Integer

Parameters:

  • gtk_double_click_distance (Integer)

Returns:

  • (Integer)

    gtk-double-click-distance

  • (Integer)

    gtk-double-click-distance

#gtk_double_click_timeInteger

Returns gtk-double-click-time.

Returns:

  • (Integer)

    gtk-double-click-time

#gtk_double_click_time=(gtk_double_click_time) ⇒ Integer

Parameters:

  • gtk_double_click_time (Integer)

Returns:

  • (Integer)

    gtk-double-click-time

  • (Integer)

    gtk-double-click-time

#gtk_enable_accels=(gtk_enable_accels) ⇒ TrueClass

Whether menu items should have visible accelerators which can be activated.

Parameters:

  • gtk_enable_accels (TrueClass)

Returns:

  • (TrueClass)

    gtk-enable-accels

  • (TrueClass)

    gtk-enable-accels

#gtk_enable_accels?TrueClass

Whether menu items should have visible accelerators which can be activated.

Returns:

  • (TrueClass)

    gtk-enable-accels

#gtk_enable_animations=(gtk_enable_animations) ⇒ TrueClass

Parameters:

  • gtk_enable_animations (TrueClass)

Returns:

  • (TrueClass)

    gtk-enable-animations

  • (TrueClass)

    gtk-enable-animations

#gtk_enable_animations?TrueClass

Returns gtk-enable-animations.

Returns:

  • (TrueClass)

    gtk-enable-animations

#gtk_enable_event_sounds=(gtk_enable_event_sounds) ⇒ TrueClass

Whether to play any event sounds at all.

See the [Sound Theme Specifications](www.freedesktop.org/wiki/Specifications/sound-theme-spec) 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 libcanberra.

Parameters:

  • gtk_enable_event_sounds (TrueClass)

Returns:

  • (TrueClass)

    gtk-enable-event-sounds

  • (TrueClass)

    gtk-enable-event-sounds

#gtk_enable_event_sounds?TrueClass

Whether to play any event sounds at all.

See the [Sound Theme Specifications](www.freedesktop.org/wiki/Specifications/sound-theme-spec) 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 libcanberra.

Returns:

  • (TrueClass)

    gtk-enable-event-sounds

#gtk_enable_input_feedback_sounds=(gtk_enable_input_feedback_sounds) ⇒ TrueClass

Whether to play event sounds as feedback to user input.

See the [Sound Theme Specifications](www.freedesktop.org/wiki/Specifications/sound-theme-spec) 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 libcanberra.

Parameters:

  • gtk_enable_input_feedback_sounds (TrueClass)

Returns:

  • (TrueClass)

    gtk-enable-input-feedback-sounds

  • (TrueClass)

    gtk-enable-input-feedback-sounds

#gtk_enable_input_feedback_sounds?TrueClass

Whether to play event sounds as feedback to user input.

See the [Sound Theme Specifications](www.freedesktop.org/wiki/Specifications/sound-theme-spec) 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 libcanberra.

Returns:

  • (TrueClass)

    gtk-enable-input-feedback-sounds

#gtk_enable_mnemonics=(gtk_enable_mnemonics) ⇒ TrueClass

Whether labels and menu items should have visible mnemonics which can be activated.

Parameters:

  • gtk_enable_mnemonics (TrueClass)

Returns:

  • (TrueClass)

    gtk-enable-mnemonics

  • (TrueClass)

    gtk-enable-mnemonics

#gtk_enable_mnemonics?TrueClass

Whether labels and menu items should have visible mnemonics which can be activated.

Returns:

  • (TrueClass)

    gtk-enable-mnemonics

#gtk_enable_primary_paste=(gtk_enable_primary_paste) ⇒ TrueClass

Whether a middle click on a mouse should paste the ‘PRIMARY’ clipboard content at the cursor location.

Parameters:

  • gtk_enable_primary_paste (TrueClass)

Returns:

  • (TrueClass)

    gtk-enable-primary-paste

  • (TrueClass)

    gtk-enable-primary-paste

#gtk_enable_primary_paste?TrueClass

Whether a middle click on a mouse should paste the ‘PRIMARY’ clipboard content at the cursor location.

Returns:

  • (TrueClass)

    gtk-enable-primary-paste

#gtk_enable_tooltips=(gtk_enable_tooltips) ⇒ TrueClass

Whether tooltips should be shown on widgets.

Parameters:

  • gtk_enable_tooltips (TrueClass)

Returns:

  • (TrueClass)

    gtk-enable-tooltips

  • (TrueClass)

    gtk-enable-tooltips

#gtk_enable_tooltips?TrueClass

Whether tooltips should be shown on widgets.

Returns:

  • (TrueClass)

    gtk-enable-tooltips

#gtk_entry_password_hint_timeoutInteger

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.

Returns:

  • (Integer)

    gtk-entry-password-hint-timeout

#gtk_entry_password_hint_timeout=(gtk_entry_password_hint_timeout) ⇒ Integer

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.

Parameters:

  • gtk_entry_password_hint_timeout (Integer)

Returns:

  • (Integer)

    gtk-entry-password-hint-timeout

  • (Integer)

    gtk-entry-password-hint-timeout

#gtk_entry_select_on_focus=(gtk_entry_select_on_focus) ⇒ TrueClass

Parameters:

  • gtk_entry_select_on_focus (TrueClass)

Returns:

  • (TrueClass)

    gtk-entry-select-on-focus

  • (TrueClass)

    gtk-entry-select-on-focus

#gtk_entry_select_on_focus?TrueClass

Returns gtk-entry-select-on-focus.

Returns:

  • (TrueClass)

    gtk-entry-select-on-focus

#gtk_error_bell=(gtk_error_bell) ⇒ TrueClass

When true, keyboard navigation and other input-related errors will cause a beep. Since the error bell is implemented using 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.

Parameters:

  • gtk_error_bell (TrueClass)

Returns:

  • (TrueClass)

    gtk-error-bell

  • (TrueClass)

    gtk-error-bell

#gtk_error_bell?TrueClass

When true, keyboard navigation and other input-related errors will cause a beep. Since the error bell is implemented using 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.

Returns:

  • (TrueClass)

    gtk-error-bell

#gtk_fallback_icon_themeString

Name of a icon theme to fall back to.

Returns:

  • (String)

    gtk-fallback-icon-theme

#gtk_fallback_icon_theme=(gtk_fallback_icon_theme) ⇒ String

Name of a icon theme to fall back to.

Parameters:

  • gtk_fallback_icon_theme (String)

Returns:

  • (String)

    gtk-fallback-icon-theme

  • (String)

    gtk-fallback-icon-theme

#gtk_file_chooser_backendString

Name of the GtkFileChooser backend to use by default.

Returns:

  • (String)

    gtk-file-chooser-backend

#gtk_file_chooser_backend=(gtk_file_chooser_backend) ⇒ String

Name of the GtkFileChooser backend to use by default.

Parameters:

  • gtk_file_chooser_backend (String)

Returns:

  • (String)

    gtk-file-chooser-backend

  • (String)

    gtk-file-chooser-backend

#gtk_font_nameString

The default font to use. GTK+ uses the family name and size from this string.

Returns:

  • (String)

    gtk-font-name

#gtk_font_name=(gtk_font_name) ⇒ String

The default font to use. GTK+ uses the family name and size from this string.

Parameters:

  • gtk_font_name (String)

Returns:

  • (String)

    gtk-font-name

  • (String)

    gtk-font-name

#gtk_fontconfig_timestampInteger

Returns gtk-fontconfig-timestamp.

Returns:

  • (Integer)

    gtk-fontconfig-timestamp

#gtk_fontconfig_timestamp=(gtk_fontconfig_timestamp) ⇒ Integer

Parameters:

  • gtk_fontconfig_timestamp (Integer)

Returns:

  • (Integer)

    gtk-fontconfig-timestamp

  • (Integer)

    gtk-fontconfig-timestamp

#gtk_icon_sizesString

A list of icon sizes. The list is separated by colons, and item has the form:

‘size-name` = `width` , `height`

E.g. “gtk-menu=16,16:gtk-button=20,20:gtk-dialog=48,48”. GTK+ itself use the following named icon sizes: gtk-menu, gtk-button, gtk-small-toolbar, gtk-large-toolbar, gtk-dnd, gtk-dialog. Applications can register their own named icon sizes with gtk_icon_size_register().

Returns:

  • (String)

    gtk-icon-sizes

#gtk_icon_sizes=(gtk_icon_sizes) ⇒ String

A list of icon sizes. The list is separated by colons, and item has the form:

‘size-name` = `width` , `height`

E.g. “gtk-menu=16,16:gtk-button=20,20:gtk-dialog=48,48”. GTK+ itself use the following named icon sizes: gtk-menu, gtk-button, gtk-small-toolbar, gtk-large-toolbar, gtk-dnd, gtk-dialog. Applications can register their own named icon sizes with gtk_icon_size_register().

Parameters:

  • gtk_icon_sizes (String)

Returns:

  • (String)

    gtk-icon-sizes

  • (String)

    gtk-icon-sizes

#gtk_icon_theme_nameString

Returns gtk-icon-theme-name.

Returns:

  • (String)

    gtk-icon-theme-name

#gtk_icon_theme_name=(gtk_icon_theme_name) ⇒ String

Parameters:

  • gtk_icon_theme_name (String)

Returns:

  • (String)

    gtk-icon-theme-name

  • (String)

    gtk-icon-theme-name

#gtk_im_moduleString

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 Gtk::IMContext.

Returns:

  • (String)

    gtk-im-module

#gtk_im_module=(gtk_im_module) ⇒ String

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 Gtk::IMContext.

Parameters:

  • gtk_im_module (String)

Returns:

  • (String)

    gtk-im-module

  • (String)

    gtk-im-module

#gtk_im_preedit_styleGtk::IMPreeditStyle

How to draw the input method preedit string.

Returns:

#gtk_im_preedit_style=(gtk_im_preedit_style) ⇒ Gtk::IMPreeditStyle

How to draw the input method preedit string.

Parameters:

Returns:

#gtk_im_status_styleGtk::IMStatusStyle

How to draw the input method statusbar.

Returns:

#gtk_im_status_style=(gtk_im_status_style) ⇒ Gtk::IMStatusStyle

How to draw the input method statusbar.

Parameters:

Returns:

#gtk_key_theme_nameString

Returns gtk-key-theme-name.

Returns:

  • (String)

    gtk-key-theme-name

#gtk_key_theme_name=(gtk_key_theme_name) ⇒ String

Parameters:

  • gtk_key_theme_name (String)

Returns:

  • (String)

    gtk-key-theme-name

  • (String)

    gtk-key-theme-name

#gtk_keynav_cursor_only=(gtk_keynav_cursor_only) ⇒ TrueClass

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 on the used input device.

Parameters:

  • gtk_keynav_cursor_only (TrueClass)

Returns:

  • (TrueClass)

    gtk-keynav-cursor-only

  • (TrueClass)

    gtk-keynav-cursor-only

#gtk_keynav_cursor_only?TrueClass

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 on the used input device.

Returns:

  • (TrueClass)

    gtk-keynav-cursor-only

#gtk_keynav_use_caret=(gtk_keynav_use_caret) ⇒ TrueClass

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.

Parameters:

  • gtk_keynav_use_caret (TrueClass)

Returns:

  • (TrueClass)

    gtk-keynav-use-caret

  • (TrueClass)

    gtk-keynav-use-caret

#gtk_keynav_use_caret?TrueClass

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.

Returns:

  • (TrueClass)

    gtk-keynav-use-caret

#gtk_keynav_wrap_around=(gtk_keynav_wrap_around) ⇒ TrueClass

When true, some widgets will wrap around when doing keyboard navigation, such as menus, menubars and notebooks.

Parameters:

  • gtk_keynav_wrap_around (TrueClass)

Returns:

  • (TrueClass)

    gtk-keynav-wrap-around

  • (TrueClass)

    gtk-keynav-wrap-around

#gtk_keynav_wrap_around?TrueClass

When true, some widgets will wrap around when doing keyboard navigation, such as menus, menubars and notebooks.

Returns:

  • (TrueClass)

    gtk-keynav-wrap-around

#gtk_label_select_on_focus=(gtk_label_select_on_focus) ⇒ TrueClass

Parameters:

  • gtk_label_select_on_focus (TrueClass)

Returns:

  • (TrueClass)

    gtk-label-select-on-focus

  • (TrueClass)

    gtk-label-select-on-focus

#gtk_label_select_on_focus?TrueClass

Returns gtk-label-select-on-focus.

Returns:

  • (TrueClass)

    gtk-label-select-on-focus

#gtk_long_press_timeInteger

The time for a button or touch press to be considered a “long press”.

Returns:

  • (Integer)

    gtk-long-press-time

#gtk_long_press_time=(gtk_long_press_time) ⇒ Integer

The time for a button or touch press to be considered a “long press”.

Parameters:

  • gtk_long_press_time (Integer)

Returns:

  • (Integer)

    gtk-long-press-time

  • (Integer)

    gtk-long-press-time

#gtk_menu_bar_accelString

Keybinding to activate the menu bar.

Returns:

  • (String)

    gtk-menu-bar-accel

#gtk_menu_bar_accel=(gtk_menu_bar_accel) ⇒ String

Keybinding to activate the menu bar.

Parameters:

  • gtk_menu_bar_accel (String)

Returns:

  • (String)

    gtk-menu-bar-accel

  • (String)

    gtk-menu-bar-accel

#gtk_menu_bar_popup_delayInteger

Delay before the submenus of a menu bar appear.

Returns:

  • (Integer)

    gtk-menu-bar-popup-delay

#gtk_menu_bar_popup_delay=(gtk_menu_bar_popup_delay) ⇒ Integer

Delay before the submenus of a menu bar appear.

Parameters:

  • gtk_menu_bar_popup_delay (Integer)

Returns:

  • (Integer)

    gtk-menu-bar-popup-delay

  • (Integer)

    gtk-menu-bar-popup-delay

#gtk_menu_images=(gtk_menu_images) ⇒ TrueClass

Whether images should be shown in menu items

Parameters:

  • gtk_menu_images (TrueClass)

Returns:

  • (TrueClass)

    gtk-menu-images

  • (TrueClass)

    gtk-menu-images

#gtk_menu_images?TrueClass

Whether images should be shown in menu items

Returns:

  • (TrueClass)

    gtk-menu-images

#gtk_menu_popdown_delayInteger

The time before hiding a submenu when the pointer is moving towards the submenu.

Returns:

  • (Integer)

    gtk-menu-popdown-delay

#gtk_menu_popdown_delay=(gtk_menu_popdown_delay) ⇒ Integer

The time before hiding a submenu when the pointer is moving towards the submenu.

Parameters:

  • gtk_menu_popdown_delay (Integer)

Returns:

  • (Integer)

    gtk-menu-popdown-delay

  • (Integer)

    gtk-menu-popdown-delay

#gtk_menu_popup_delayInteger

Minimum time the pointer must stay over a menu item before the submenu appear.

Returns:

  • (Integer)

    gtk-menu-popup-delay

#gtk_menu_popup_delay=(gtk_menu_popup_delay) ⇒ Integer

Minimum time the pointer must stay over a menu item before the submenu appear.

Parameters:

  • gtk_menu_popup_delay (Integer)

Returns:

  • (Integer)

    gtk-menu-popup-delay

  • (Integer)

    gtk-menu-popup-delay

#gtk_modulesString

Returns gtk-modules.

Returns:

  • (String)

    gtk-modules

#gtk_modules=(gtk_modules) ⇒ String

Parameters:

  • gtk_modules (String)

Returns:

  • (String)

    gtk-modules

  • (String)

    gtk-modules

#gtk_overlay_scrolling=(gtk_overlay_scrolling) ⇒ TrueClass

Whether scrolled windows may use overlayed scrolling indicators. If this is set to false, scrolled windows will have permanent scrollbars.

Parameters:

  • gtk_overlay_scrolling (TrueClass)

Returns:

  • (TrueClass)

    gtk-overlay-scrolling

  • (TrueClass)

    gtk-overlay-scrolling

#gtk_overlay_scrolling?TrueClass

Whether scrolled windows may use overlayed scrolling indicators. If this is set to false, scrolled windows will have permanent scrollbars.

Returns:

  • (TrueClass)

    gtk-overlay-scrolling

#gtk_primary_button_warps_slider=(gtk_primary_button_warps_slider) ⇒ TrueClass

If the value of this setting is true, clicking the primary button in a Gtk::Range trough will move the slider, and hence set the range’s value, to the point that you clicked. If it is false, a primary click will cause the slider/value to move by the range’s page-size towards the point clicked.

Whichever action you choose for the primary button, the other action will be available by holding Shift and primary-clicking, or (since GTK+ 3.22.25) clicking the middle mouse button.

Parameters:

  • gtk_primary_button_warps_slider (TrueClass)

Returns:

  • (TrueClass)

    gtk-primary-button-warps-slider

  • (TrueClass)

    gtk-primary-button-warps-slider

#gtk_primary_button_warps_slider?TrueClass

If the value of this setting is true, clicking the primary button in a Gtk::Range trough will move the slider, and hence set the range’s value, to the point that you clicked. If it is false, a primary click will cause the slider/value to move by the range’s page-size towards the point clicked.

Whichever action you choose for the primary button, the other action will be available by holding Shift and primary-clicking, or (since GTK+ 3.22.25) clicking the middle mouse button.

Returns:

  • (TrueClass)

    gtk-primary-button-warps-slider

#gtk_print_backendsString

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”.

Returns:

  • (String)

    gtk-print-backends

#gtk_print_backends=(gtk_print_backends) ⇒ String

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”.

Parameters:

  • gtk_print_backends (String)

Returns:

  • (String)

    gtk-print-backends

  • (String)

    gtk-print-backends

#gtk_print_preview_commandString

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 gtk_print_settings_to_file().

The preview application is responsible for removing the pdf file and the print settings file when it is done.

Returns:

  • (String)

    gtk-print-preview-command

#gtk_print_preview_command=(gtk_print_preview_command) ⇒ String

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 gtk_print_settings_to_file().

The preview application is responsible for removing the pdf file and the print settings file when it is done.

Parameters:

  • gtk_print_preview_command (String)

Returns:

  • (String)

    gtk-print-preview-command

  • (String)

    gtk-print-preview-command

#gtk_recent_files_enabled=(gtk_recent_files_enabled) ⇒ TrueClass

Whether GTK+ should keep track of items inside the recently used resources list. If set to false, the list will always be empty.

Parameters:

  • gtk_recent_files_enabled (TrueClass)

Returns:

  • (TrueClass)

    gtk-recent-files-enabled

  • (TrueClass)

    gtk-recent-files-enabled

#gtk_recent_files_enabled?TrueClass

Whether GTK+ should keep track of items inside the recently used resources list. If set to false, the list will always be empty.

Returns:

  • (TrueClass)

    gtk-recent-files-enabled

#gtk_recent_files_limitInteger

The number of recently used files that should be displayed by default by Gtk::RecentChooser implementations and by the #GtkFileChooser. A value of -1 means every recently used file stored.

Returns:

  • (Integer)

    gtk-recent-files-limit

#gtk_recent_files_limit=(gtk_recent_files_limit) ⇒ Integer

The number of recently used files that should be displayed by default by Gtk::RecentChooser implementations and by the #GtkFileChooser. A value of -1 means every recently used file stored.

Parameters:

  • gtk_recent_files_limit (Integer)

Returns:

  • (Integer)

    gtk-recent-files-limit

  • (Integer)

    gtk-recent-files-limit

#gtk_recent_files_max_ageInteger

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.

Returns:

  • (Integer)

    gtk-recent-files-max-age

#gtk_recent_files_max_age=(gtk_recent_files_max_age) ⇒ Integer

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.

Parameters:

  • gtk_recent_files_max_age (Integer)

Returns:

  • (Integer)

    gtk-recent-files-max-age

  • (Integer)

    gtk-recent-files-max-age

#gtk_scrolled_window_placementGtk::CornerType

Where the contents of scrolled windows are located with respect to the scrollbars, if not overridden by the scrolled window’s own placement.

Returns:

#gtk_scrolled_window_placement=(gtk_scrolled_window_placement) ⇒ Gtk::CornerType

Where the contents of scrolled windows are located with respect to the scrollbars, if not overridden by the scrolled window’s own placement.

Parameters:

Returns:

#gtk_shell_shows_app_menu=(gtk_shell_shows_app_menu) ⇒ TrueClass

Parameters:

  • gtk_shell_shows_app_menu (TrueClass)

Returns:

  • (TrueClass)

    gtk-shell-shows-app-menu

  • (TrueClass)

    gtk-shell-shows-app-menu

#gtk_shell_shows_app_menu?TrueClass

Returns gtk-shell-shows-app-menu.

Returns:

  • (TrueClass)

    gtk-shell-shows-app-menu

#gtk_shell_shows_desktop=(gtk_shell_shows_desktop) ⇒ TrueClass

Parameters:

  • gtk_shell_shows_desktop (TrueClass)

Returns:

  • (TrueClass)

    gtk-shell-shows-desktop

  • (TrueClass)

    gtk-shell-shows-desktop

#gtk_shell_shows_desktop?TrueClass

Returns gtk-shell-shows-desktop.

Returns:

  • (TrueClass)

    gtk-shell-shows-desktop

#gtk_shell_shows_menubar=(gtk_shell_shows_menubar) ⇒ TrueClass

Parameters:

  • gtk_shell_shows_menubar (TrueClass)

Returns:

  • (TrueClass)

    gtk-shell-shows-menubar

  • (TrueClass)

    gtk-shell-shows-menubar

#gtk_shell_shows_menubar?TrueClass

Returns gtk-shell-shows-menubar.

Returns:

  • (TrueClass)

    gtk-shell-shows-menubar

#gtk_show_input_method_menu=(gtk_show_input_method_menu) ⇒ TrueClass

Parameters:

  • gtk_show_input_method_menu (TrueClass)

Returns:

  • (TrueClass)

    gtk-show-input-method-menu

  • (TrueClass)

    gtk-show-input-method-menu

#gtk_show_input_method_menu?TrueClass

Returns gtk-show-input-method-menu.

Returns:

  • (TrueClass)

    gtk-show-input-method-menu

#gtk_show_unicode_menu=(gtk_show_unicode_menu) ⇒ TrueClass

Parameters:

  • gtk_show_unicode_menu (TrueClass)

Returns:

  • (TrueClass)

    gtk-show-unicode-menu

  • (TrueClass)

    gtk-show-unicode-menu

#gtk_show_unicode_menu?TrueClass

Returns gtk-show-unicode-menu.

Returns:

  • (TrueClass)

    gtk-show-unicode-menu

#gtk_sound_theme_nameString

The XDG sound theme to use for event sounds.

See the [Sound Theme Specifications](www.freedesktop.org/wiki/Specifications/sound-theme-spec) 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 libcanberra.

Returns:

  • (String)

    gtk-sound-theme-name

#gtk_sound_theme_name=(gtk_sound_theme_name) ⇒ String

The XDG sound theme to use for event sounds.

See the [Sound Theme Specifications](www.freedesktop.org/wiki/Specifications/sound-theme-spec) 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 libcanberra.

Parameters:

  • gtk_sound_theme_name (String)

Returns:

  • (String)

    gtk-sound-theme-name

  • (String)

    gtk-sound-theme-name

#gtk_split_cursor=(gtk_split_cursor) ⇒ TrueClass

Parameters:

  • gtk_split_cursor (TrueClass)

Returns:

  • (TrueClass)

    gtk-split-cursor

  • (TrueClass)

    gtk-split-cursor

#gtk_split_cursor?TrueClass

Returns gtk-split-cursor.

Returns:

  • (TrueClass)

    gtk-split-cursor

#gtk_theme_nameString

Returns gtk-theme-name.

Returns:

  • (String)

    gtk-theme-name

#gtk_theme_name=(gtk_theme_name) ⇒ String

Parameters:

  • gtk_theme_name (String)

Returns:

  • (String)

    gtk-theme-name

  • (String)

    gtk-theme-name

#gtk_timeout_expandInteger

Returns gtk-timeout-expand.

Returns:

  • (Integer)

    gtk-timeout-expand

#gtk_timeout_expand=(gtk_timeout_expand) ⇒ Integer

Parameters:

  • gtk_timeout_expand (Integer)

Returns:

  • (Integer)

    gtk-timeout-expand

  • (Integer)

    gtk-timeout-expand

#gtk_timeout_initialInteger

Returns gtk-timeout-initial.

Returns:

  • (Integer)

    gtk-timeout-initial

#gtk_timeout_initial=(gtk_timeout_initial) ⇒ Integer

Parameters:

  • gtk_timeout_initial (Integer)

Returns:

  • (Integer)

    gtk-timeout-initial

  • (Integer)

    gtk-timeout-initial

#gtk_timeout_repeatInteger

Returns gtk-timeout-repeat.

Returns:

  • (Integer)

    gtk-timeout-repeat

#gtk_timeout_repeat=(gtk_timeout_repeat) ⇒ Integer

Parameters:

  • gtk_timeout_repeat (Integer)

Returns:

  • (Integer)

    gtk-timeout-repeat

  • (Integer)

    gtk-timeout-repeat

#gtk_titlebar_double_clickString

This setting determines the action to take when a double-click occurs on the titlebar of client-side decorated windows.

Recognized actions are minimize, toggle-maximize, menu, lower or none.

Returns:

  • (String)

    gtk-titlebar-double-click

#gtk_titlebar_double_click=(gtk_titlebar_double_click) ⇒ String

This setting determines the action to take when a double-click occurs on the titlebar of client-side decorated windows.

Recognized actions are minimize, toggle-maximize, menu, lower or none.

Parameters:

  • gtk_titlebar_double_click (String)

Returns:

  • (String)

    gtk-titlebar-double-click

  • (String)

    gtk-titlebar-double-click

#gtk_titlebar_middle_clickString

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.

Returns:

  • (String)

    gtk-titlebar-middle-click

#gtk_titlebar_middle_click=(gtk_titlebar_middle_click) ⇒ String

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.

Parameters:

  • gtk_titlebar_middle_click (String)

Returns:

  • (String)

    gtk-titlebar-middle-click

  • (String)

    gtk-titlebar-middle-click

#gtk_titlebar_right_clickString

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.

Returns:

  • (String)

    gtk-titlebar-right-click

#gtk_titlebar_right_click=(gtk_titlebar_right_click) ⇒ String

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.

Parameters:

  • gtk_titlebar_right_click (String)

Returns:

  • (String)

    gtk-titlebar-right-click

  • (String)

    gtk-titlebar-right-click

#gtk_toolbar_icon_sizeGtk::IconSize

The size of icons in default toolbars.

Returns:

#gtk_toolbar_icon_size=(gtk_toolbar_icon_size) ⇒ Gtk::IconSize

The size of icons in default toolbars.

Parameters:

Returns:

#gtk_toolbar_styleGtk::ToolbarStyle

The size of icons in default toolbars.

Returns:

#gtk_toolbar_style=(gtk_toolbar_style) ⇒ Gtk::ToolbarStyle

The size of icons in default toolbars.

Parameters:

Returns:

#gtk_tooltip_browse_mode_timeoutInteger

Amount of time, in milliseconds, after which the browse mode will be disabled.

See Gtk::Settings:gtk-tooltip-browse-timeout for more information about browse mode.

Returns:

  • (Integer)

    gtk-tooltip-browse-mode-timeout

#gtk_tooltip_browse_mode_timeout=(gtk_tooltip_browse_mode_timeout) ⇒ Integer

Amount of time, in milliseconds, after which the browse mode will be disabled.

See Gtk::Settings:gtk-tooltip-browse-timeout for more information about browse mode.

Parameters:

  • gtk_tooltip_browse_mode_timeout (Integer)

Returns:

  • (Integer)

    gtk-tooltip-browse-mode-timeout

  • (Integer)

    gtk-tooltip-browse-mode-timeout

#gtk_tooltip_browse_timeoutInteger

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 Gtk::Settings:gtk-tooltip-browse-mode-timeout), it will take the amount of milliseconds specified by this setting to popup the tooltip for the new object.

Returns:

  • (Integer)

    gtk-tooltip-browse-timeout

#gtk_tooltip_browse_timeout=(gtk_tooltip_browse_timeout) ⇒ Integer

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 Gtk::Settings:gtk-tooltip-browse-mode-timeout), it will take the amount of milliseconds specified by this setting to popup the tooltip for the new object.

Parameters:

  • gtk_tooltip_browse_timeout (Integer)

Returns:

  • (Integer)

    gtk-tooltip-browse-timeout

  • (Integer)

    gtk-tooltip-browse-timeout

#gtk_tooltip_timeoutInteger

Time, in milliseconds, after which a tooltip could appear if the cursor is hovering on top of a widget.

Returns:

  • (Integer)

    gtk-tooltip-timeout

#gtk_tooltip_timeout=(gtk_tooltip_timeout) ⇒ Integer

Time, in milliseconds, after which a tooltip could appear if the cursor is hovering on top of a widget.

Parameters:

  • gtk_tooltip_timeout (Integer)

Returns:

  • (Integer)

    gtk-tooltip-timeout

  • (Integer)

    gtk-tooltip-timeout

#gtk_touchscreen_mode=(gtk_touchscreen_mode) ⇒ TrueClass

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.

Parameters:

  • gtk_touchscreen_mode (TrueClass)

Returns:

  • (TrueClass)

    gtk-touchscreen-mode

  • (TrueClass)

    gtk-touchscreen-mode

#gtk_touchscreen_mode?TrueClass

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.

Returns:

  • (TrueClass)

    gtk-touchscreen-mode

#gtk_visible_focusGtk::PolicyType

Whether ‘focus rectangles’ should be always visible, never visible, or hidden until the user starts to use the keyboard.

Returns:

#gtk_visible_focus=(gtk_visible_focus) ⇒ Gtk::PolicyType

Whether ‘focus rectangles’ should be always visible, never visible, or hidden until the user starts to use the keyboard.

Parameters:

Returns:

#gtk_xft_antialiasInteger

Returns gtk-xft-antialias.

Returns:

  • (Integer)

    gtk-xft-antialias

#gtk_xft_antialias=(gtk_xft_antialias) ⇒ Integer

Parameters:

  • gtk_xft_antialias (Integer)

Returns:

  • (Integer)

    gtk-xft-antialias

  • (Integer)

    gtk-xft-antialias

#gtk_xft_dpiInteger

Returns gtk-xft-dpi.

Returns:

  • (Integer)

    gtk-xft-dpi

#gtk_xft_dpi=(gtk_xft_dpi) ⇒ Integer

Parameters:

  • gtk_xft_dpi (Integer)

Returns:

  • (Integer)

    gtk-xft-dpi

  • (Integer)

    gtk-xft-dpi

#gtk_xft_hintingInteger

Returns gtk-xft-hinting.

Returns:

  • (Integer)

    gtk-xft-hinting

#gtk_xft_hinting=(gtk_xft_hinting) ⇒ Integer

Parameters:

  • gtk_xft_hinting (Integer)

Returns:

  • (Integer)

    gtk-xft-hinting

  • (Integer)

    gtk-xft-hinting

#gtk_xft_hintstyleString

Returns gtk-xft-hintstyle.

Returns:

  • (String)

    gtk-xft-hintstyle

#gtk_xft_hintstyle=(gtk_xft_hintstyle) ⇒ String

Parameters:

  • gtk_xft_hintstyle (String)

Returns:

  • (String)

    gtk-xft-hintstyle

  • (String)

    gtk-xft-hintstyle

#gtk_xft_rgbaString

Returns gtk-xft-rgba.

Returns:

  • (String)

    gtk-xft-rgba

#gtk_xft_rgba=(gtk_xft_rgba) ⇒ String

Parameters:

  • gtk_xft_rgba (String)

Returns:

  • (String)

    gtk-xft-rgba

  • (String)

    gtk-xft-rgba

#reset_property(name) ⇒ nil

Undoes the effect of calling g_object_set() to install an application-specific value for a setting. After this call, the setting will again follow the session-wide value for this setting.

Parameters:

  • name (String)

    the name of the setting to reset

Returns:

  • (nil)

#set_double_property(name, v_double, origin) ⇒ nil

Parameters:

  • name (String)
  • v_double (Float)
  • origin (String)

Returns:

  • (nil)

#set_long_property(name, v_long, origin) ⇒ nil

Parameters:

  • name (String)
  • v_long (Gtk::glong)
  • origin (String)

Returns:

  • (nil)

#set_property_value(name, svalue) ⇒ nil

Parameters:

  • name (String)
  • svalue (Gtk::SettingsValue)

Returns:

  • (nil)

#set_string_property(name, v_string, origin) ⇒ nil

Parameters:

  • name (String)
  • v_string (String)
  • origin (String)

Returns:

  • (nil)