Index

Package: Settings

Description

package Gtk.Settings is
This package contains various subprograms to easily share settings between applications, or even between various parts of your application.

Binding from C File version 2.8.17

Classes

Gtk_Settings_Record

type Gtk_Settings_Record is new Glib.Object.GObject_Record with null record;

Ancestors:

Primitive operations:

Glib.Object.Deallocate (Inherited)
Glib.Object.Get_Type (Inherited)
Glib.Object.Notify (Inherited)
Glib.Object.Ref (Inherited)
Glib.Object.Ref_Sink (Inherited)
Glib.Object.Unref (Inherited)
Set_Double_Property
Set_Long_Property
Set_Property_Value
Set_String_Property

Types

Gtk_Settings

type Gtk_Settings is access all Gtk_Settings_Record'Class;

Constants & Global variables

Gtk_Alternative_Button_Order (Glib.Properties.Property_Boolean)

Gtk_Alternative_Button_Order     : constant Property_Boolean;
Whether buttons in dialogs should use the alternative button order. Default value: FALSE

Gtk_Alternative_Sort_Arrows (Glib.Properties.Property_Boolean)

Gtk_Alternative_Sort_Arrows      : constant Property_Boolean;
Controls the direction of the sort indicators in sorted list and tree views. By default an arrow pointing down means the column is sorted in ascending order. When set to TRUE, this order will be inverted. Default value: FALSE

Gtk_Auto_Mnemonics (Glib.Properties.Property_Boolean)

Gtk_Auto_Mnemonics               : constant Property_Boolean;
Controls the direction of the sort indicators in sorted list and tree views. By default an arrow pointing down means the column is sorted in ascending order. When set to TRUE, this order will be inverted. Default value: FALSE

Gtk_Button_Images (Glib.Properties.Property_Boolean)

Gtk_Button_Images                : constant Property_Boolean;
Whether images should be shown on buttons. Default value: TRUE

Gtk_Can_Change_Accels (Glib.Properties.Property_Boolean)

Gtk_Can_Change_Accels            : constant Property_Boolean;
Whether menu accelerators can be changed by pressing a key over the menu item. Default value: FALSE

Gtk_Color_Palette (Glib.Properties.Property_String)

Gtk_Color_Palette                : constant Property_String;
Palette to use in the color selector. Default value: "black:white:gray50:red:purple:blue:light blue:green:yellow:orange:lavender:brown:goldenrod4:dodger blue:pink:light green:gray10:gray30:gray75:gray90"

Gtk_Color_Scheme (Glib.Properties.Property_String)

Gtk_Color_Scheme                 : constant Property_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 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; ... Default value: ""

Gtk_Cursor_Blink (Glib.Properties.Property_Boolean)

Gtk_Cursor_Blink                 : constant Property_Boolean;
Whether the cursor should blink. Also see the Gtk_Cursor_Blink_Timeout setting, which allows more flexible control over cursor blinking. Default value: TRUE

Gtk_Cursor_Blink_Time (Glib.Properties.Property_Int)

Gtk_Cursor_Blink_Time            : constant Property_Int;
Length of the cursor blink cycle, in milliseconds. Allowed values: >= 100 Default value: 1200

Gtk_Cursor_Blink_Timeout (Glib.Properties.Property_Int)

Gtk_Cursor_Blink_Timeout         : constant Property_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 Gtk_Cursor_Blink to FALSE. Allowed values: >= 1 Default value: 2147483647

Gtk_Cursor_Theme_Name (Glib.Properties.Property_String)

Gtk_Cursor_Theme_Name            : constant Property_String;
Name of the cursor theme to use, or NULL to use the default theme. Default value: NULL

Gtk_Cursor_Theme_Size (Glib.Properties.Property_Int)

Gtk_Cursor_Theme_Size            : constant Property_Int;
Size to use for cursors, or 0 to use the default size. Allowed values: [0,128] Default value: 0

Gtk_Dnd_Drag_Threshold (Glib.Properties.Property_Int)

Gtk_Dnd_Drag_Threshold           : constant Property_Int;
Number of pixels the cursor can move before dragging. Allowed values: >= 1 Default value: 8

Gtk_Double_Click_Distance (Glib.Properties.Property_Int)

Gtk_Double_Click_Distance        : constant Property_Int;
Maximum distance allowed between two clicks for them to be considered a double click (in pixels). Allowed values: >= 0 Default value: 5

Gtk_Double_Click_Time (Glib.Properties.Property_Int)

Gtk_Double_Click_Time            : constant Property_Int;
Maximum time allowed between two clicks for them to be considered a double click (in milliseconds). Allowed values: >= 0 Default value: 250

Gtk_Enable_Accels (Glib.Properties.Property_Boolean)

Gtk_Enable_Accels                : constant Property_Boolean;
Whether menu items should have visible accelerators which can be activated. Default value: TRUE

Gtk_Enable_Animations (Glib.Properties.Property_Boolean)

Gtk_Enable_Animations            : constant Property_Boolean;
Whether to enable toolkit-wide animations. Default value: TRUE

Gtk_Enable_Event_Sounds (Glib.Properties.Property_Boolean)

Gtk_Enable_Event_Sounds          : constant Property_Boolean;
Whether to play any event sounds at all. See the 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. Default value: TRUE

Gtk_Enable_Input_Feedback_Sounds (Glib.Properties.Property_Boolean)

Gtk_Enable_Input_Feedback_Sounds : constant Property_Boolean;
Whether to play event sounds as feedback to user input. See the 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. Default value: TRUE

Gtk_Enable_Mnemonics (Glib.Properties.Property_Boolean)

Gtk_Enable_Mnemonics             : constant Property_Boolean;
Whether labels and menu items should have visible mnemonics which can be activated. Default value: TRUE

Gtk_Enable_Tooltips (Glib.Properties.Property_Boolean)

Gtk_Enable_Tooltips              : constant Property_Boolean;
Whether tooltips should be shown on widgets. Default value: TRUE

Gtk_Entry_Password_Hint_Timeout (Glib.Properties.Property_Uint)

Gtk_Entry_Password_Hint_Timeout  : constant Property_Uint;
How long to show the last input character in hidden entries. This value is in milliseconds. 0 disables showing the last char. 600 is a good value for enabling it. Default value: 0

Gtk_Entry_Select_On_Focus (Glib.Properties.Property_Boolean)

Gtk_Entry_Select_On_Focus        : constant Property_Boolean;
Whether to select the contents of an entry when it is focused. Default value: TRUE

Gtk_Error_Bell (Glib.Properties.Property_Boolean)

Gtk_Error_Bell                   : constant Property_Boolean;
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. Default value: TRUE

Gtk_Fallback_Icon_Theme (Glib.Properties.Property_String)

Gtk_Fallback_Icon_Theme          : constant Property_String;
Name of a icon theme to fall back to. Default value: NULL

Gtk_File_Chooser_Backend (Glib.Properties.Property_String)

Gtk_File_Chooser_Backend         : constant Property_String;
Name of the GtkFileChooser backend to use by default. Default value: NULL

Gtk_Font_Name (Glib.Properties.Property_String)

Gtk_Font_Name                    : constant Property_String;
Name of default font to use. Default value: "Sans 10"

Gtk_Fontconfig_Timestamp (Glib.Properties.Property_Uint)

Gtk_Fontconfig_Timestamp         : constant Property_Uint;
Timestamp of current fontconfig configuration. Default value: 0

Gtk_Icon_Sizes (Glib.Properties.Property_String)

Gtk_Icon_Sizes                   : constant Property_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(). Default value: NULL

Gtk_Icon_Theme_Name (Glib.Properties.Property_String)

Gtk_Icon_Theme_Name              : constant Property_String;
Name of icon theme to use. Default value: "hicolor"

Gtk_Im_Module (Glib.Properties.Property_String)

Gtk_Im_Module                    : constant Property_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. See GtkIMContext and see the "gtk-show-input-method-menu" property. Default value: NULL

Gtk_Key_Theme_Name (Glib.Properties.Property_String)

Gtk_Key_Theme_Name               : constant Property_String;
Name of key theme RC file to load. Default value: NULL

Gtk_Keynav_Cursor_Only (Glib.Properties.Property_Boolean)

Gtk_Keynav_Cursor_Only           : constant Property_Boolean;
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. Default value: FALSE

Gtk_Keynav_Wrap_Around (Glib.Properties.Property_Boolean)

Gtk_Keynav_Wrap_Around           : constant Property_Boolean;
When TRUE, some widgets will wrap around when doing keyboard navigation, such as menus, menubars and notebooks. Default value: TRUE

Gtk_Label_Select_On_Focus (Glib.Properties.Property_Boolean)

Gtk_Label_Select_On_Focus        : constant Property_Boolean;
Whether to select the contents of a selectable label when it is focused. Default value: TRUE

Gtk_Menu_Bar_Accel (Glib.Properties.Property_String)

Gtk_Menu_Bar_Accel               : constant Property_String;
Keybinding to activate the menu bar. Default value: "F10"

Gtk_Menu_Bar_Popup_Delay (Glib.Properties.Property_Int)

Gtk_Menu_Bar_Popup_Delay         : constant Property_Int;
Delay before the submenus of a menu bar appear. Allowed values: >= 0 Default value: 0

Gtk_Menu_Images (Glib.Properties.Property_Boolean)

Gtk_Menu_Images                  : constant Property_Boolean;
Whether images should be shown in menus. Default value: TRUE

Gtk_Menu_Popdown_Delay (Glib.Properties.Property_Int)

Gtk_Menu_Popdown_Delay           : constant Property_Int;
The time before hiding a submenu when the pointer is moving towards the submenu. Allowed values: >= 0 Default value: 1000

Gtk_Menu_Popup_Delay (Glib.Properties.Property_Int)

Gtk_Menu_Popup_Delay             : constant Property_Int;
Minimum time the pointer must stay over a menu item before the submenu appear. Allowed values: >= 0 Default value: 225

Gtk_Modules (Glib.Properties.Property_String)

Gtk_Modules                      : constant Property_String;
List of currently active GTK modules. Default value: NULL

Gtk_Print_Backend (Glib.Properties.Property_String)

Gtk_Print_Backend                : constant Property_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". Default value: "file,cups"

Gtk_Print_Preview_Command (Glib.Properties.Property_String)

Gtk_Print_Preview_Command        : constant Property_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. Default value: "evince --unlink-tempfile --preview --print-settings %s %f"

Gtk_Recent_Files_Limit (Glib.Properties.Property_Int)

Gtk_Recent_Files_Limit           : constant Property_Int;
The number of recently used files that should be displayed by default by GtkRecentChooser implementations and by the GtkFileChooser. A value of -1 means every recently used file stored. Allowed values: >= G_MAXULONG Default value: 50

Gtk_Recent_Files_Max_Age (Glib.Properties.Property_Int)

Gtk_Recent_Files_Max_Age         : constant Property_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. Allowed values: >= G_MAXULONG Default value: 30

Gtk_Show_Input_Method_Menu (Glib.Properties.Property_Boolean)

Gtk_Show_Input_Method_Menu       : constant Property_Boolean;
Whether the context menus of entries and text views should offer to change the input method. Default value: TRUE

Gtk_Show_Unicode_Menu (Glib.Properties.Property_Boolean)

Gtk_Show_Unicode_Menu            : constant Property_Boolean;
Whether the context menus of entries and text views should offer to insert control characters. Default value: TRUE

Gtk_Sound_Theme_Name (Glib.Properties.Property_String)

Gtk_Sound_Theme_Name             : constant Property_String;
The XDG sound theme to use for event sounds. See the 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. Default value: "freedesktop"

Gtk_Split_Cursor (Glib.Properties.Property_Boolean)

Gtk_Split_Cursor                 : constant Property_Boolean;
Whether two cursors should be displayed for mixed left-to-right and right-to-left text. Default value: TRUE

Gtk_Theme_Name (Glib.Properties.Property_String)

Gtk_Theme_Name                   : constant Property_String;
Name of theme RC file to load. Default value: "Raleigh"

Gtk_Timeout_Expand (Glib.Properties.Property_Int)

Gtk_Timeout_Expand               : constant Property_Int;
Expand value for timeouts, when a widget is expanding a new region. Allowed values: >= 0 Default value: 500

Gtk_Timeout_Initial (Glib.Properties.Property_Int)

Gtk_Timeout_Initial              : constant Property_Int;
Starting value for timeouts, when button is pressed. Allowed values: >= 0 Default value: 200

Gtk_Timeout_Repeat (Glib.Properties.Property_Int)

Gtk_Timeout_Repeat               : constant Property_Int;
Repeat value for timeouts, when button is pressed. Allowed values: >= 0 Default value: 20

Gtk_Toolbar_Icon_Size (Glib.Properties.Property_Enum)

Gtk_Toolbar_Icon_Size            : constant Property_Enum;
The size of icons in default toolbars. Default value: GTK_ICON_SIZE_LARGE_TOOLBAR

Gtk_Toolbar_Style (Glib.Properties.Property_Enum)

Gtk_Toolbar_Style                : constant Property_Enum;
Whether default toolbars have text only, text and icons, icons only, etc. Default value: GTK_TOOLBAR_BOTH

Gtk_Tooltip_Browse_Mode_Timeout (Glib.Properties.Property_Int)

Gtk_Tooltip_Browse_Mode_Timeout  : constant Property_Int;
Amount of time, in milliseconds, after which the browse mode will be disabled. See Gtk_Tooltip_Browse_Timeout" for more information about browse mode. Allowed values: >= 0 Default value: 500

Gtk_Tooltip_Browse_Timeout (Glib.Properties.Property_Int)

Gtk_Tooltip_Browse_Timeout       : constant Property_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 Gtk_Tooltip_Browse_Mode_Timeout), it will take the amount of milliseconds specified by this setting to popup the tooltip for the new object. Allowed values: >= 0 Default value: 60

Gtk_Tooltip_Timeout (Glib.Properties.Property_Int)

Gtk_Tooltip_Timeout              : constant Property_Int;
Time, in milliseconds, after which a tooltip could appear if the cursor is hovering on top of a widget. Allowed values: >= 0 Default value: 500

Gtk_Touchscreen_Mode (Glib.Properties.Property_Boolean)

Gtk_Touchscreen_Mode             : constant Property_Boolean;
When TRUE, there are no motion notify events delivered on this screen, and widgets can't use the pointer hovering them for any essential functionality. Default value: FALSE

Gtk_Xft_Antialias (Glib.Properties.Property_Int)

Gtk_Xft_Antialias                : constant Property_Int;
Whether to antialias Xft fonts; 0=no, 1=yes, -1=default. Allowed values: [G_MAXULONG,1] Default value: -1

Gtk_Xft_Dpi (Glib.Properties.Property_Int)

Gtk_Xft_Dpi                      : constant Property_Int;
Resolution for Xft, in 1024 * dots/inch. -1 to use default value. Allowed values: [G_MAXULONG,1048576] Default value: -1

Gtk_Xft_Hinting (Glib.Properties.Property_Int)

Gtk_Xft_Hinting                  : constant Property_Int;
Whether to hint Xft fonts; 0=no, 1=yes, -1=default. Allowed values: [G_MAXULONG,1] Default value: -1

Gtk_Xft_Hintstyle (Glib.Properties.Property_String)

Gtk_Xft_Hintstyle                : constant Property_String;
What degree of hinting to use; hintnone, hintslight, hintmedium, or hintfull. Default value: NULL

Gtk_Xft_Rgba (Glib.Properties.Property_String)

Gtk_Xft_Rgba                     : constant Property_String;
Type of subpixel antialiasing; none, rgb, bgr, vrgb, vbgr. Default value: NULL

Subprograms & Entries

Get_Default

function Get_Default return Gtk_Settings;
Gets the settings object for the default GDK screen, creating it if necessary.

Get_For_Screen

function Get_For_Screen 
(Screen: Gdk.Gdk_Screen) return Gtk_Settings;
Gets the settings object for Screen, creating it if necessary.

Get_Type

function Get_Type return Glib.GType;
Return the internal type used to identify a Gtk_Settings

Install_Property

procedure Install_Property 
(Pspec: Glib.Param_Spec);
Declares a property that can be shared among various parts of the application

Install_Property_Parser

procedure Install_Property_Parser 
(Pspec: Glib.Param_Spec;
Parser: Gtk.Style.Gtk_Rc_Property_Parser);
Install a new parser for the given property. This parser is responsible for reading the property's value in a gtk configuration file, and convert it to a suitable value.

Parse_Color

function Parse_Color 
(Pspec: Glib.Param_Spec;
Rc_String: Interfaces.C.Strings.chars_ptr;
Value: access Glib.Values.GValue) return Gboolean;

Parse_Enum

function Parse_Enum 
(Pspec: Glib.Param_Spec;
Rc_String: Interfaces.C.Strings.chars_ptr;
Value: access Glib.Values.GValue) return Gboolean;

Parse_Flags

function Parse_Flags 
(Pspec: Glib.Param_Spec;
Rc_String: Interfaces.C.Strings.chars_ptr;
Value: access Glib.Values.GValue) return Gboolean;

Parse_Requisition

function Parse_Requisition 
(Pspec: Glib.Param_Spec;
Rc_String: Interfaces.C.Strings.chars_ptr;
Value: access Glib.Values.GValue) return Gboolean;

Parse_Border

function Parse_Border 
(Pspec: Glib.Param_Spec;
Rc_String: Interfaces.C.Strings.chars_ptr;
Value: access Glib.Values.GValue) return Gboolean;
These functions parse some of the predefined property types

Set_Property_Value

procedure Set_Property_Value 
(Settings: access Gtk_Settings_Record;
Name: String;
Value: Glib.Values.GValue;
Origin: String);

Set_String_Property

procedure Set_String_Property 
(Settings: access Gtk_Settings_Record;
Name: String;
Value: String;
Origin: String);

Set_Long_Property

procedure Set_Long_Property 
(Settings: access Gtk_Settings_Record;
Name: String;
Value: Glong;
Origin: String);

Set_Double_Property

procedure Set_Double_Property 
(Settings: access Gtk_Settings_Record;
Name: String;
Value: Gdouble;
Origin: String);
Set the value of a property. This automatically propagates the new value to all listeners, so that they can refresh themselves. Origin should be something like "filename:line" for rc files, or the name of the function that sets it otherwise