Settings

Settings — Sharing settings between applications

Functions

Properties

GHashTable * color-hash Read
gboolean ctk-alternative-button-order Read / Write
gboolean ctk-alternative-sort-arrows Read / Write
gboolean ctk-application-prefer-dark-theme Read / Write
gboolean ctk-auto-mnemonics Read / Write
gboolean ctk-button-images Read / Write
gboolean ctk-can-change-accels Read / Write
char * ctk-color-palette Read / Write
char * ctk-color-scheme Read / Write
float ctk-cursor-aspect-ratio Read / Write
gboolean ctk-cursor-blink Read / Write
int ctk-cursor-blink-time Read / Write
int ctk-cursor-blink-timeout Read / Write
char * ctk-cursor-theme-name Read / Write
int ctk-cursor-theme-size Read / Write
char * ctk-decoration-layout Read / Write
gboolean ctk-dialogs-use-header Read / Write
int ctk-dnd-drag-threshold Read / Write
int ctk-double-click-distance Read / Write
int ctk-double-click-time Read / Write
gboolean ctk-enable-accels Read / Write
gboolean ctk-enable-animations Read / Write
gboolean ctk-enable-event-sounds Read / Write
gboolean ctk-enable-input-feedback-sounds Read / Write
gboolean ctk-enable-mnemonics Read / Write
gboolean ctk-enable-primary-paste Read / Write
gboolean ctk-enable-tooltips Read / Write
guint ctk-entry-password-hint-timeout Read / Write
gboolean ctk-entry-select-on-focus Read / Write
gboolean ctk-error-bell Read / Write
char * ctk-fallback-icon-theme Read / Write
char * ctk-file-chooser-backend Read / Write
char * ctk-font-name Read / Write
guint ctk-fontconfig-timestamp Read / Write
char * ctk-icon-sizes Read / Write
char * ctk-icon-theme-name Read / Write
char * ctk-im-module Read / Write
CtkIMPreeditStyle ctk-im-preedit-style Read / Write
CtkIMStatusStyle ctk-im-status-style Read / Write
char * ctk-key-theme-name Read / Write
gboolean ctk-keynav-cursor-only Read / Write
gboolean ctk-keynav-use-caret Read / Write
gboolean ctk-keynav-wrap-around Read / Write
gboolean ctk-label-select-on-focus Read / Write
guint ctk-long-press-time Read / Write
char * ctk-menu-bar-accel Read / Write
int ctk-menu-bar-popup-delay Read / Write
gboolean ctk-menu-images Read / Write
int ctk-menu-popdown-delay Read / Write
int ctk-menu-popup-delay Read / Write
char * ctk-modules Read / Write
gboolean ctk-overlay-scrolling Read / Write
gboolean ctk-primary-button-warps-slider Read / Write
char * ctk-print-backends Read / Write
char * ctk-print-preview-command Read / Write
gboolean ctk-recent-files-enabled Read / Write
int ctk-recent-files-limit Read / Write
int ctk-recent-files-max-age Read / Write
CtkCornerType ctk-scrolled-window-placement Read / Write
gboolean ctk-shell-shows-app-menu Read / Write
gboolean ctk-shell-shows-desktop Read / Write
gboolean ctk-shell-shows-menubar Read / Write
gboolean ctk-show-input-method-menu Read / Write
gboolean ctk-show-unicode-menu Read / Write
char * ctk-sound-theme-name Read / Write
gboolean ctk-split-cursor Read / Write
char * ctk-theme-name Read / Write
int ctk-timeout-expand Read / Write
int ctk-timeout-initial Read / Write
int ctk-timeout-repeat Read / Write
char * ctk-titlebar-double-click Read / Write
char * ctk-titlebar-middle-click Read / Write
char * ctk-titlebar-right-click Read / Write
CtkIconSize ctk-toolbar-icon-size Read / Write
CtkToolbarStyle ctk-toolbar-style Read / Write
int ctk-tooltip-browse-mode-timeout Read / Write
int ctk-tooltip-browse-timeout Read / Write
int ctk-tooltip-timeout Read / Write
gboolean ctk-touchscreen-mode Read / Write
CtkPolicyType ctk-visible-focus Read / Write
int ctk-xft-antialias Read / Write
int ctk-xft-dpi Read / Write
int ctk-xft-hinting Read / Write
char * ctk-xft-hintstyle Read / Write
char * ctk-xft-rgba Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── CtkSettings

Implemented Interfaces

CtkSettings implements CtkStyleProvider and CtkStyleProviderPrivate.

Includes

#include <ctk/ctk.h>

Description

CtkSettings 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, CTK+ reads default values for settings from settings.ini files in /etc/ctk-3.0, $XDG_CONFIG_DIRS/ctk-3.0 and $XDG_CONFIG_HOME/ctk-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 ctk.css file.

Applications can override system-wide settings by setting the property of the CtkSettings object with g_object_set(). This should be restricted to special cases though; CtkSettings 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:

1
2
3
4
5
6
ctk_init (&argc, &argv);

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

g_object_set (ctk_settings_get_default (), "ctk-enable-animations", FALSE, NULL);

There is one CtkSettings instance per screen. It can be obtained with ctk_settings_get_for_screen(), but in many cases, it is more convenient to use ctk_widget_get_settings(). ctk_settings_get_default() returns the CtkSettings instance for the default screen.

Functions

ctk_settings_get_default ()

CtkSettings *
ctk_settings_get_default (void);

Gets the CtkSettings object for the default CDK screen, creating it if necessary. See ctk_settings_get_for_screen().

Returns

a CtkSettings object. If there is no default screen, then returns NULL.

[nullable][transfer none]


ctk_settings_get_for_screen ()

CtkSettings *
ctk_settings_get_for_screen (CdkScreen *screen);

Gets the CtkSettings object for screen , creating it if necessary.

Parameters

screen

a CdkScreen.

 

Returns

a CtkSettings object.

[transfer none]

Since: 2.2


ctk_settings_install_property ()

void
ctk_settings_install_property (GParamSpec *pspec);

ctk_settings_install_property has been deprecated since version 3.16 and should not be used in newly-written code.

This function is not useful outside CTK+.


ctk_settings_install_property_parser ()

void
ctk_settings_install_property_parser (GParamSpec *pspec,
                                      CtkRcPropertyParser parser);

ctk_settings_install_property_parser has been deprecated since version 3.16 and should not be used in newly-written code.

This function is not useful outside CTK+.

Parameters

parser

.

[scope call]

ctk_rc_property_parse_color ()

gboolean
ctk_rc_property_parse_color (const GParamSpec *pspec,
                             const GString *gstring,
                             GValue *property_value);

A CtkRcPropertyParser for use with ctk_settings_install_property_parser() or ctk_widget_class_install_style_property_parser() which parses a color given either by its name or in the form { red, green, blue } where red, green and blue are integers between 0 and 65535 or floating-point numbers between 0 and 1.

Parameters

pspec

a GParamSpec

 

gstring

the GString to be parsed

 

property_value

a GValue which must hold CdkColor values.

 

Returns

TRUE if gstring could be parsed and property_value has been set to the resulting CdkColor.


ctk_rc_property_parse_enum ()

gboolean
ctk_rc_property_parse_enum (const GParamSpec *pspec,
                            const GString *gstring,
                            GValue *property_value);

A CtkRcPropertyParser for use with ctk_settings_install_property_parser() or ctk_widget_class_install_style_property_parser() which parses a single enumeration value.

The enumeration value can be specified by its name, its nickname or its numeric value. For consistency with flags parsing, the value may be surrounded by parentheses.

Parameters

pspec

a GParamSpec

 

gstring

the GString to be parsed

 

property_value

a GValue which must hold enum values.

 

Returns

TRUE if gstring could be parsed and property_value has been set to the resulting GEnumValue.


ctk_rc_property_parse_flags ()

gboolean
ctk_rc_property_parse_flags (const GParamSpec *pspec,
                             const GString *gstring,
                             GValue *property_value);

A CtkRcPropertyParser for use with ctk_settings_install_property_parser() or ctk_widget_class_install_style_property_parser() which parses flags.

Flags can be specified by their name, their nickname or numerically. Multiple flags can be specified in the form "( flag1 | flag2 | ... )".

Parameters

pspec

a GParamSpec

 

gstring

the GString to be parsed

 

property_value

a GValue which must hold flags values.

 

Returns

TRUE if gstring could be parsed and property_value has been set to the resulting flags value.


ctk_rc_property_parse_requisition ()

gboolean
ctk_rc_property_parse_requisition (const GParamSpec *pspec,
                                   const GString *gstring,
                                   GValue *property_value);

A CtkRcPropertyParser for use with ctk_settings_install_property_parser() or ctk_widget_class_install_style_property_parser() which parses a requisition in the form "{ width, height }" for integers width and height.

Parameters

pspec

a GParamSpec

 

gstring

the GString to be parsed

 

property_value

a GValue which must hold boxed values.

 

Returns

TRUE if gstring could be parsed and property_value has been set to the resulting CtkRequisition.


ctk_rc_property_parse_border ()

gboolean
ctk_rc_property_parse_border (const GParamSpec *pspec,
                              const GString *gstring,
                              GValue *property_value);

A CtkRcPropertyParser for use with ctk_settings_install_property_parser() or ctk_widget_class_install_style_property_parser() which parses borders in the form "{ left, right, top, bottom }" for integers left, right, top and bottom.

Parameters

pspec

a GParamSpec

 

gstring

the GString to be parsed

 

property_value

a GValue which must hold boxed values.

 

Returns

TRUE if gstring could be parsed and property_value has been set to the resulting CtkBorder.


ctk_settings_set_property_value ()

void
ctk_settings_set_property_value (CtkSettings *settings,
                                 const gchar *name,
                                 const CtkSettingsValue *svalue);

ctk_settings_set_property_value has been deprecated since version 3.16 and should not be used in newly-written code.

Use g_object_set() instead.


ctk_settings_set_string_property ()

void
ctk_settings_set_string_property (CtkSettings *settings,
                                  const gchar *name,
                                  const gchar *v_string,
                                  const gchar *origin);

ctk_settings_set_string_property has been deprecated since version 3.16 and should not be used in newly-written code.

Use g_object_set() instead.


ctk_settings_set_long_property ()

void
ctk_settings_set_long_property (CtkSettings *settings,
                                const gchar *name,
                                glong v_long,
                                const gchar *origin);

ctk_settings_set_long_property has been deprecated since version 3.16 and should not be used in newly-written code.

Use g_object_set() instead.


ctk_settings_set_double_property ()

void
ctk_settings_set_double_property (CtkSettings *settings,
                                  const gchar *name,
                                  gdouble v_double,
                                  const gchar *origin);

ctk_settings_set_double_property has been deprecated since version 3.16 and should not be used in newly-written code.

Use g_object_set() instead.


ctk_settings_reset_property ()

void
ctk_settings_reset_property (CtkSettings *settings,
                             const gchar *name);

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

settings

a CtkSettings object

 

name

the name of the setting to reset

 

Since: 3.20

Types and Values

CtkSettings

typedef struct _CtkSettings CtkSettings;

struct CtkSettingsValue

struct CtkSettingsValue {
  /* origin should be something like "filename:linenumber" for rc files,
   * or e.g. "XProperty" for other sources
   */
  gchar *origin;

  /* valid types are LONG, DOUBLE and STRING corresponding to the token parsed,
   * or a GSTRING holding an unparsed statement
   */
  GValue value;
};

Members

gchar *origin;

Origin should be something like “filename:linenumber” for rc files, or e.g. “XProperty” for other sources.

 

GValue value;

Valid types are LONG, DOUBLE and STRING corresponding to the token parsed, or a GSTRING holding an unparsed statement

 

enum CtkIMPreeditStyle

Style for input method preedit. See also “ctk-im-preedit-style”

Members

CTK_IM_PREEDIT_NOTHING

Deprecated

 

CTK_IM_PREEDIT_CALLBACK

Deprecated

 

CTK_IM_PREEDIT_NONE

Deprecated

 

enum CtkIMStatusStyle

Style for input method status. See also “ctk-im-status-style”

Members

CTK_IM_STATUS_NOTHING

Deprecated

 

CTK_IM_STATUS_CALLBACK

Deprecated

 

CTK_IM_STATUS_NONE

Deprecated

 

Property Details

The “color-hash” property

  “color-hash”               GHashTable *

Holds a hash table representation of the “ctk-color-scheme” setting, mapping color names to CdkColors.

[transfer container]

CtkSettings:color-hash has been deprecated since version 3.8 and should not be used in newly-written code.

Will always return an empty hash table.

Owner: CtkSettings

Flags: Read

Since: 2.10


The “ctk-alternative-button-order” property

  “ctk-alternative-button-order” gboolean

Whether buttons in dialogs should use the alternative button order.

Owner: CtkSettings

Flags: Read / Write

Default value: FALSE


The “ctk-alternative-sort-arrows” property

  “ctk-alternative-sort-arrows” gboolean

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.

Owner: CtkSettings

Flags: Read / Write

Default value: FALSE

Since: 2.12


The “ctk-application-prefer-dark-theme” property

  “ctk-application-prefer-dark-theme” gboolean

Whether the application prefers to use a dark theme. If a CTK+ 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...).

Owner: CtkSettings

Flags: Read / Write

Default value: FALSE

Since: 3.0


The “ctk-auto-mnemonics” property

  “ctk-auto-mnemonics”       gboolean

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

CtkSettings:ctk-auto-mnemonics has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is ignored

Owner: CtkSettings

Flags: Read / Write

Default value: TRUE

Since: 2.20


The “ctk-button-images” property

  “ctk-button-images”        gboolean

Whether images should be shown on buttons

CtkSettings:ctk-button-images 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 CtkButton should show an icon, use the “always-show-image” property of CtkButton, and pack a CtkImage inside the CtkButton

Owner: CtkSettings

Flags: Read / Write

Default value: FALSE

Since: 2.4


The “ctk-can-change-accels” property

  “ctk-can-change-accels”    gboolean

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

CtkSettings:ctk-can-change-accels has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is ignored.

Owner: CtkSettings

Flags: Read / Write

Default value: FALSE


The “ctk-color-palette” property

  “ctk-color-palette”        char *

Palette to use in the deprecated color selector.

CtkSettings:ctk-color-palette has been deprecated since version 3.10 and should not be used in newly-written code.

Only used by the deprecated color selector widget.

Owner: CtkSettings

Flags: Read / Write

Default value: "black:white:gray50:red:purple:blue:light blue:green:yellow:orange:lavender:brown:goldenrod4:dodger blue:pink:light green:gray10:gray30:gray75:gray90"


The “ctk-color-scheme” property

  “ctk-color-scheme”         char *

A palette of named colors for use in themes. The format of the string is

1
2
3
name1: color1
name2: color2
...

Color names must be acceptable as identifiers in the ctkrc syntax, and color specifications must be in the format accepted by cdk_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 CTK+ 2.12, the entries can alternatively be separated by ';' instead of newlines:

1
name1: color1; name2: color2; ...

CtkSettings:ctk-color-scheme 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.

Owner: CtkSettings

Flags: Read / Write

Default value: ""

Since: 2.10


The “ctk-cursor-aspect-ratio” property

  “ctk-cursor-aspect-ratio”  float

The aspect ratio of the text caret.

Owner: CtkSettings

Flags: Read / Write

Allowed values: [0,1]

Default value: 0.04


The “ctk-cursor-blink” property

  “ctk-cursor-blink”         gboolean

Whether the cursor should blink.

Also see the “ctk-cursor-blink-timeout” setting, which allows more flexible control over cursor blinking.

Owner: CtkSettings

Flags: Read / Write

Default value: TRUE


The “ctk-cursor-blink-time” property

  “ctk-cursor-blink-time”    int

Length of the cursor blink cycle, in milliseconds.

Owner: CtkSettings

Flags: Read / Write

Allowed values: >= 100

Default value: 1200


The “ctk-cursor-blink-timeout” property

  “ctk-cursor-blink-timeout” int

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 “ctk-cursor-blink” to FALSE.

Owner: CtkSettings

Flags: Read / Write

Allowed values: >= 1

Default value: 10

Since: 2.12


The “ctk-cursor-theme-name” property

  “ctk-cursor-theme-name”    char *

Name of the cursor theme to use, or NULL to use the default theme.

Owner: CtkSettings

Flags: Read / Write

Default value: NULL


The “ctk-cursor-theme-size” property

  “ctk-cursor-theme-size”    int

Size to use for cursors, or 0 to use the default size.

Owner: CtkSettings

Flags: Read / Write

Allowed values: [0,128]

Default value: 0


The “ctk-decoration-layout” property

  “ctk-decoration-layout”    char *

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 “decoration-layout” property.

Owner: CtkSettings

Flags: Read / Write

Default value: "menu:minimize,maximize,close"

Since: 3.12


The “ctk-dialogs-use-header” property

  “ctk-dialogs-use-header”   gboolean

Whether builtin CTK+ 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 CtkDialog directly, or message dialogs.

Owner: CtkSettings

Flags: Read / Write

Default value: FALSE

Since: 3.12


The “ctk-dnd-drag-threshold” property

  “ctk-dnd-drag-threshold”   int

Number of pixels the cursor can move before dragging.

Owner: CtkSettings

Flags: Read / Write

Allowed values: >= 1

Default value: 8


The “ctk-double-click-distance” property

  “ctk-double-click-distance” int

Maximum distance allowed between two clicks for them to be considered a double click (in pixels).

Owner: CtkSettings

Flags: Read / Write

Allowed values: >= 0

Default value: 5


The “ctk-double-click-time” property

  “ctk-double-click-time”    int

Maximum time allowed between two clicks for them to be considered a double click (in milliseconds).

Owner: CtkSettings

Flags: Read / Write

Allowed values: >= 0

Default value: 400


The “ctk-enable-accels” property

  “ctk-enable-accels”        gboolean

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

Owner: CtkSettings

Flags: Read / Write

Default value: TRUE

Since: 2.12


The “ctk-enable-animations” property

  “ctk-enable-animations”    gboolean

Whether to enable toolkit-wide animations.

Owner: CtkSettings

Flags: Read / Write

Default value: TRUE


The “ctk-enable-event-sounds” property

  “ctk-enable-event-sounds”  gboolean

Whether to play any event sounds at all.

See the Sound Theme Specifications for more information on event sounds and sound themes.

CTK+ itself does not support event sounds, you have to use a loadable module like the one that comes with libcanberra.

Owner: CtkSettings

Flags: Read / Write

Default value: TRUE

Since: 2.14


The “ctk-enable-input-feedback-sounds” property

  “ctk-enable-input-feedback-sounds” gboolean

Whether to play event sounds as feedback to user input.

See the Sound Theme Specifications for more information on event sounds and sound themes.

CTK+ itself does not support event sounds, you have to use a loadable module like the one that comes with libcanberra.

Owner: CtkSettings

Flags: Read / Write

Default value: TRUE

Since: 2.14


The “ctk-enable-mnemonics” property

  “ctk-enable-mnemonics”     gboolean

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

CtkSettings:ctk-enable-mnemonics 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

Owner: CtkSettings

Flags: Read / Write

Default value: TRUE

Since: 2.12


The “ctk-enable-primary-paste” property

  “ctk-enable-primary-paste” gboolean

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

Owner: CtkSettings

Flags: Read / Write

Default value: TRUE

Since: 3.4


The “ctk-enable-tooltips” property

  “ctk-enable-tooltips”      gboolean

Whether tooltips should be shown on widgets.

CtkSettings:ctk-enable-tooltips has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is ignored.

Owner: CtkSettings

Flags: Read / Write

Default value: TRUE

Since: 2.14


The “ctk-entry-password-hint-timeout” property

  “ctk-entry-password-hint-timeout” guint

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.

Owner: CtkSettings

Flags: Read / Write

Default value: 0

Since: 2.10


The “ctk-entry-select-on-focus” property

  “ctk-entry-select-on-focus” gboolean

Whether to select the contents of an entry when it is focused.

Owner: CtkSettings

Flags: Read / Write

Default value: TRUE


The “ctk-error-bell” property

  “ctk-error-bell”           gboolean

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

Owner: CtkSettings

Flags: Read / Write

Default value: TRUE

Since: 2.12


The “ctk-fallback-icon-theme” property

  “ctk-fallback-icon-theme”  char *

Name of a icon theme to fall back to.

CtkSettings:ctk-fallback-icon-theme has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is ignored.

Owner: CtkSettings

Flags: Read / Write

Default value: NULL


The “ctk-file-chooser-backend” property

  “ctk-file-chooser-backend” char *

Name of the CtkFileChooser backend to use by default.

CtkSettings:ctk-file-chooser-backend has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is ignored. CtkFileChooser uses GIO by default.

Owner: CtkSettings

Flags: Read / Write

Default value: NULL


The “ctk-font-name” property

  “ctk-font-name”            char *

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

Owner: CtkSettings

Flags: Read / Write

Default value: "Sans 10"


The “ctk-fontconfig-timestamp” property

  “ctk-fontconfig-timestamp” guint

Timestamp of current fontconfig configuration.

Owner: CtkSettings

Flags: Read / Write

Default value: 0


The “ctk-icon-sizes” property

  “ctk-icon-sizes”           char *

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

size-name = width , height

E.g. "ctk-menu=16,16:ctk-button=20,20:ctk-dialog=48,48". CTK+ itself use the following named icon sizes: ctk-menu, ctk-button, ctk-small-toolbar, ctk-large-toolbar, ctk-dnd, ctk-dialog. Applications can register their own named icon sizes with ctk_icon_size_register().

CtkSettings:ctk-icon-sizes has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is ignored.

Owner: CtkSettings

Flags: Read / Write

Default value: NULL


The “ctk-icon-theme-name” property

  “ctk-icon-theme-name”      char *

Name of icon theme to use.

Owner: CtkSettings

Flags: Read / Write

Default value: "Advaita"


The “ctk-im-module” property

  “ctk-im-module”            char *

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 CTK+ will try in turn until it finds one available on the system.

See CtkIMContext.

Owner: CtkSettings

Flags: Read / Write

Default value: NULL


The “ctk-im-preedit-style” property

  “ctk-im-preedit-style”     CtkIMPreeditStyle

How to draw the input method preedit string.

CtkSettings:ctk-im-preedit-style has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is ignored.

Owner: CtkSettings

Flags: Read / Write

Default value: CTK_IM_PREEDIT_CALLBACK


The “ctk-im-status-style” property

  “ctk-im-status-style”      CtkIMStatusStyle

How to draw the input method statusbar.

CtkSettings:ctk-im-status-style has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is ignored.

Owner: CtkSettings

Flags: Read / Write

Default value: CTK_IM_STATUS_CALLBACK


The “ctk-key-theme-name” property

  “ctk-key-theme-name”       char *

Name of key theme to load.

Owner: CtkSettings

Flags: Read / Write

Default value: NULL


The “ctk-keynav-cursor-only” property

  “ctk-keynav-cursor-only”   gboolean

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.

CtkSettings:ctk-keynav-cursor-only 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 cdk_event_get_source_device().

Owner: CtkSettings

Flags: Read / Write

Default value: FALSE

Since: 2.12


The “ctk-keynav-use-caret” property

  “ctk-keynav-use-caret”     gboolean

Whether CTK+ 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.

Owner: CtkSettings

Flags: Read / Write

Default value: FALSE

Since: 3.20


The “ctk-keynav-wrap-around” property

  “ctk-keynav-wrap-around”   gboolean

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

CtkSettings:ctk-keynav-wrap-around has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is ignored.

Owner: CtkSettings

Flags: Read / Write

Default value: TRUE

Since: 2.12


The “ctk-label-select-on-focus” property

  “ctk-label-select-on-focus” gboolean

Whether to select the contents of a selectable label when it is focused.

Owner: CtkSettings

Flags: Read / Write

Default value: TRUE


The “ctk-long-press-time” property

  “ctk-long-press-time”      guint

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

Owner: CtkSettings

Flags: Read / Write

Allowed values: <= G_MAXINT

Default value: 500

Since: 3.14


The “ctk-menu-bar-accel” property

  “ctk-menu-bar-accel”       char *

Keybinding to activate the menu bar.

CtkSettings:ctk-menu-bar-accel 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

Owner: CtkSettings

Flags: Read / Write

Default value: "F10"


The “ctk-menu-bar-popup-delay” property

  “ctk-menu-bar-popup-delay” int

Delay before the submenus of a menu bar appear.

CtkSettings:ctk-menu-bar-popup-delay has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is ignored.

Owner: CtkSettings

Flags: Read / Write

Allowed values: >= 0

Default value: 0


The “ctk-menu-images” property

  “ctk-menu-images”          gboolean

Whether images should be shown in menu items

CtkSettings:ctk-menu-images 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 CtkMenuItem should have an icon or not, on a per widget basis. Either use a CtkMenuItem with a CtkBox containing a CtkImage and a CtkAccelLabel, or describe your menus using a GMenu XML description

Owner: CtkSettings

Flags: Read / Write

Default value: FALSE


The “ctk-menu-popdown-delay” property

  “ctk-menu-popdown-delay”   int

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

CtkSettings:ctk-menu-popdown-delay has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is ignored.

Owner: CtkSettings

Flags: Read / Write

Allowed values: >= 0

Default value: 1000


The “ctk-menu-popup-delay” property

  “ctk-menu-popup-delay”     int

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

CtkSettings:ctk-menu-popup-delay has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is ignored.

Owner: CtkSettings

Flags: Read / Write

Allowed values: >= 0

Default value: 225


The “ctk-modules” property

  “ctk-modules”              char *

List of currently active CTK modules.

Owner: CtkSettings

Flags: Read / Write

Default value: NULL


The “ctk-overlay-scrolling” property

  “ctk-overlay-scrolling”    gboolean

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

Owner: CtkSettings

Flags: Read / Write

Default value: TRUE

Since: 3.24.9


The “ctk-primary-button-warps-slider” property

  “ctk-primary-button-warps-slider” gboolean

If the value of this setting is TRUE, clicking the primary button in a CtkRange 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 CTK+ 3.22.25) clicking the middle mouse button.

Owner: CtkSettings

Flags: Read / Write

Default value: TRUE

Since: 3.6


The “ctk-print-backends” property

  “ctk-print-backends”       char *

A comma-separated list of print backends to use in the print dialog. Available print backends depend on the CTK+ installation, and may include "file", "cups", "lpr" or "papi".

Owner: CtkSettings

Flags: Read / Write

Default value: "file,cups"

Since: 2.10


The “ctk-print-preview-command” property

  “ctk-print-preview-command” char *

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

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

Owner: CtkSettings

Flags: Read / Write

Default value: "evince --unlink-tempfile --preview --print-settings %s %f"

Since: 2.10


The “ctk-recent-files-enabled” property

  “ctk-recent-files-enabled” gboolean

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

Owner: CtkSettings

Flags: Read / Write

Default value: TRUE

Since: 3.8


The “ctk-recent-files-limit” property

  “ctk-recent-files-limit”   int

The number of recently used files that should be displayed by default by CtkRecentChooser implementations and by the CtkFileChooser. A value of -1 means every recently used file stored.

CtkSettings:ctk-recent-files-limit has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is ignored

Owner: CtkSettings

Flags: Read / Write

Allowed values: >= -1

Default value: 50

Since: 2.12


The “ctk-recent-files-max-age” property

  “ctk-recent-files-max-age” int

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.

Owner: CtkSettings

Flags: Read / Write

Allowed values: >= -1

Default value: 30

Since: 2.14


The “ctk-scrolled-window-placement” property

  “ctk-scrolled-window-placement” CtkCornerType

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

CtkSettings:ctk-scrolled-window-placement has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is ignored.

Owner: CtkSettings

Flags: Read / Write

Default value: CTK_CORNER_TOP_LEFT

Since: 2.10


The “ctk-shell-shows-app-menu” property

  “ctk-shell-shows-app-menu” gboolean

Set to TRUE if the desktop environment is displaying the app menu, FALSE if the app should display it itself.

Owner: CtkSettings

Flags: Read / Write

Default value: FALSE


The “ctk-shell-shows-desktop” property

  “ctk-shell-shows-desktop”  gboolean

Set to TRUE if the desktop environment is displaying the desktop folder, FALSE if not.

Owner: CtkSettings

Flags: Read / Write

Default value: TRUE


The “ctk-shell-shows-menubar” property

  “ctk-shell-shows-menubar”  gboolean

Set to TRUE if the desktop environment is displaying the menubar, FALSE if the app should display it itself.

Owner: CtkSettings

Flags: Read / Write

Default value: FALSE


The “ctk-show-input-method-menu” property

  “ctk-show-input-method-menu” gboolean

Whether the context menus of entries and text views should offer to change the input method.

CtkSettings:ctk-show-input-method-menu has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is ignored.

Owner: CtkSettings

Flags: Read / Write

Default value: FALSE


The “ctk-show-unicode-menu” property

  “ctk-show-unicode-menu”    gboolean

Whether the context menus of entries and text views should offer to insert control characters.

CtkSettings:ctk-show-unicode-menu has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is ignored.

Owner: CtkSettings

Flags: Read / Write

Default value: FALSE


The “ctk-sound-theme-name” property

  “ctk-sound-theme-name”     char *

The XDG sound theme to use for event sounds.

See the Sound Theme Specifications for more information on event sounds and sound themes.

CTK+ itself does not support event sounds, you have to use a loadable module like the one that comes with libcanberra.

Owner: CtkSettings

Flags: Read / Write

Default value: "freedesktop"

Since: 2.14


The “ctk-split-cursor” property

  “ctk-split-cursor”         gboolean

Whether two cursors should be displayed for mixed left-to-right and right-to-left text.

Owner: CtkSettings

Flags: Read / Write

Default value: TRUE


The “ctk-theme-name” property

  “ctk-theme-name”           char *

Name of theme to load.

Owner: CtkSettings

Flags: Read / Write

Default value: "Advaita"


The “ctk-timeout-expand” property

  “ctk-timeout-expand”       int

Expand value for timeouts, when a widget is expanding a new region.

CtkSettings:ctk-timeout-expand has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is ignored.

Owner: CtkSettings

Flags: Read / Write

Allowed values: >= 0

Default value: 500


The “ctk-timeout-initial” property

  “ctk-timeout-initial”      int

Starting value for timeouts, when button is pressed.

CtkSettings:ctk-timeout-initial has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is ignored.

Owner: CtkSettings

Flags: Read / Write

Allowed values: >= 0

Default value: 500


The “ctk-timeout-repeat” property

  “ctk-timeout-repeat”       int

Repeat value for timeouts, when button is pressed.

CtkSettings:ctk-timeout-repeat has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is ignored.

Owner: CtkSettings

Flags: Read / Write

Allowed values: >= 0

Default value: 50


The “ctk-titlebar-double-click” property

  “ctk-titlebar-double-click” char *

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.

Owner: CtkSettings

Flags: Read / Write

Default value: "toggle-maximize"

Since: 3.14


The “ctk-titlebar-middle-click” property

  “ctk-titlebar-middle-click” char *

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.

Owner: CtkSettings

Flags: Read / Write

Default value: "none"

Since: 3.14


The “ctk-titlebar-right-click” property

  “ctk-titlebar-right-click” char *

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.

Owner: CtkSettings

Flags: Read / Write

Default value: "menu"

Since: 3.14


The “ctk-toolbar-icon-size” property

  “ctk-toolbar-icon-size”    CtkIconSize

The size of icons in default toolbars.

CtkSettings:ctk-toolbar-icon-size has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is ignored.

Owner: CtkSettings

Flags: Read / Write

Default value: CTK_ICON_SIZE_LARGE_TOOLBAR


The “ctk-toolbar-style” property

  “ctk-toolbar-style”        CtkToolbarStyle

The size of icons in default toolbars.

CtkSettings:ctk-toolbar-style has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is ignored.

Owner: CtkSettings

Flags: Read / Write

Default value: CTK_TOOLBAR_BOTH_HORIZ


The “ctk-tooltip-browse-mode-timeout” property

  “ctk-tooltip-browse-mode-timeout” int

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

See “ctk-tooltip-browse-timeout” for more information about browse mode.

CtkSettings:ctk-tooltip-browse-mode-timeout has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is ignored.

Owner: CtkSettings

Flags: Read / Write

Allowed values: >= 0

Default value: 500

Since: 2.12


The “ctk-tooltip-browse-timeout” property

  “ctk-tooltip-browse-timeout” int

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

CtkSettings:ctk-tooltip-browse-timeout has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is ignored.

Owner: CtkSettings

Flags: Read / Write

Allowed values: >= 0

Default value: 60

Since: 2.12


The “ctk-tooltip-timeout” property

  “ctk-tooltip-timeout”      int

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

CtkSettings:ctk-tooltip-timeout has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is ignored.

Owner: CtkSettings

Flags: Read / Write

Allowed values: >= 0

Default value: 500

Since: 2.12


The “ctk-touchscreen-mode” property

  “ctk-touchscreen-mode”     gboolean

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.

CtkSettings:ctk-touchscreen-mode has been deprecated since version 3.4. and should not be used in newly-written code.

Generally, the behavior for touchscreen input should be performed dynamically based on cdk_event_get_source_device().

Owner: CtkSettings

Flags: Read / Write

Default value: FALSE

Since: 2.10


The “ctk-visible-focus” property

  “ctk-visible-focus”        CtkPolicyType

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

CtkSettings:ctk-visible-focus has been deprecated since version 3.10 and should not be used in newly-written code.

This setting is ignored

Owner: CtkSettings

Flags: Read / Write

Default value: CTK_POLICY_AUTOMATIC

Since: 3.2


The “ctk-xft-antialias” property

  “ctk-xft-antialias”        int

Whether to antialias Xft fonts; 0=no, 1=yes, -1=default.

Owner: CtkSettings

Flags: Read / Write

Allowed values: [-1,1]

Default value: -1


The “ctk-xft-dpi” property

  “ctk-xft-dpi”              int

Resolution for Xft, in 1024 * dots/inch. -1 to use default value.

Owner: CtkSettings

Flags: Read / Write

Allowed values: [-1,1048576]

Default value: -1


The “ctk-xft-hinting” property

  “ctk-xft-hinting”          int

Whether to hint Xft fonts; 0=no, 1=yes, -1=default.

Owner: CtkSettings

Flags: Read / Write

Allowed values: [-1,1]

Default value: -1


The “ctk-xft-hintstyle” property

  “ctk-xft-hintstyle”        char *

What degree of hinting to use; hintnone, hintslight, hintmedium, or hintfull.

Owner: CtkSettings

Flags: Read / Write

Default value: NULL


The “ctk-xft-rgba” property

  “ctk-xft-rgba”             char *

Type of subpixel antialiasing; none, rgb, bgr, vrgb, vbgr.

Owner: CtkSettings

Flags: Read / Write

Default value: NULL