gtk.types
D types for gtk3 library
Types 194
A function used by [gtk.assistant.Assistant.setForwardPageFunc] to know which is the next page given a current one. It’s called both for computing the next page when the user presses the “forward” button and for handling the behavior of the “last” button.
Parameters
currentPage | The page number used to calculate the next page. |
Returns
This is the signature of a function used to connect signals. It is used by the [gtk.builder.Builder.connectSignals] and [gtk.builder.Builder.connectSignalsFull] methods. It is mainly intended for interpreted language bindings, but could be useful where the programmer wants more control over the signal connection process. Note that this function can only be called once, subsequent calls will do nothing.
Parameters
builder | a #GtkBuilder |
object | object to connect a signal to |
signalName | name of the signal |
handlerName | name of the handler |
connectObject | a #GObject, if non-null, use [gobject.global.signalConnectObject] |
flags | #GConnectFlags to use |
This kind of functions provide Pango markup with detail information for the specified day. Examples for such details are holidays or appointments. The function returns null when no information is available.
Parameters
calendar | a #GtkCalendar. |
year | the year for which details are needed. |
month | the month for which details are needed. |
day | the day of month for which details are needed. |
Returns
with details for the specified day or null.
The type of the callback functions used for e.g. iterating over the children of a container, see [gtk.container.Container.foreach_].
Parameters
widget | the widget to operate on |
The type of the callback functions used for iterating over the cell renderers and their allocated areas inside a #GtkCellArea, see [gtk.cell_area.CellArea.foreachAlloc].
Parameters
renderer | the cell renderer to operate on |
cellArea | the area allocated to renderer inside the rectangle provided to [gtk.cell_area.CellArea.foreachAlloc]. |
cellBackground | the background area for renderer inside the background area provided to [gtk.cell_area.CellArea.foreachAlloc]. |
Returns
The type of the callback functions used for iterating over the cell renderers of a #GtkCellArea, see [gtk.cell_area.CellArea.foreach_].
Parameters
renderer | the cell renderer to operate on |
Returns
A function which should set the value of cell_layout’s cell renderer(s) as appropriate.
Parameters
cellLayout | a #GtkCellLayout |
cell | the cell renderer whose value is to be set |
treeModel | the model |
iter | a #GtkTreeIter indicating the row to set the value for |
A function that will be called when the contents of the clipboard are changed or cleared. Once this has called, the user_data_or_owner argument will not be used again.
Parameters
clipboard | the #GtkClipboard |
A function that will be called to provide the contents of the selection. If multiple types of data were advertised, the requested type can be determined from the info parameter or by checking the target field of selection_data. If the data could successfully be converted into then it should be stored into the selection_data object by calling [gtk.selection_data.SelectionData.set] (or related functions such as [gtk.selection_data.SelectionData.setText]). If no data is set, the requestor will be informed that the attempt to get the data failed.
Parameters
clipboard | the #GtkClipboard |
selectionData | a #GtkSelectionData argument in which the requested data should be stored. |
info | the info field corresponding to the requested target from the #GtkTargetEntry array passed to [gtk.clipboard.Clipboard.setWithData] or [gtk.clipboard.Clipboard.setWithOwner]. |
A function to be called when the results of [gtk.clipboard.Clipboard.requestImage] are received, or when the request fails.
Parameters
clipboard | the #GtkClipboard |
pixbuf | the received image |
A function to be called when the results of [gtk.clipboard.Clipboard.requestContents] are received, or when the request fails.
Parameters
clipboard | the #GtkClipboard |
selectionData | a #GtkSelectionData containing the data was received. If retrieving the data failed, then then length field of selection_data will be negative. |
A function to be called when the results of [gtk.clipboard.Clipboard.requestRichText] are received, or when the request fails.
Parameters
clipboard | the #GtkClipboard |
format | The format of the rich text |
text | the rich text received, as a UTF-8 encoded string, or null if retrieving the data failed. |
A function to be called when the results of [gtk.clipboard.Clipboard.requestText] are received, or when the request fails.
Parameters
clipboard | the #GtkClipboard |
text | the text received, as a UTF-8 encoded string, or null if retrieving the data failed. |
A function to be called when the results of [gtk.clipboard.Clipboard.requestUris] are received, or when the request fails.
Parameters
clipboard | the #GtkClipboard |
uris | the received URIs |
A function which decides whether the row indicated by iter matches a given key, and should be displayed as a possible completion for key. Note that key is normalized and case-folded (see [glib.global.utf8Normalize] and [glib.global.utf8Casefold]). If this is not appropriate, match functions have access to the unmodified key via gtk_entry_get_text (GTK_ENTRY (gtk_entry_completion_get_entry ())).
Parameters
completion | the #GtkEntryCompletion |
key | the string to match, normalized and case-folded |
iter | a #GtkTreeIter indicating the row to match |
Returns
for key
The type of function that is used with custom filters, see [gtk.file_filter.FileFilter.addCustom].
Parameters
filterInfo | a #GtkFileFilterInfo that is filled according to the needed flags passed to [gtk.file_filter.FileFilter.addCustom] |
Returns
Called for flow boxes that are bound to a #GListModel with [gtk.flow_box.FlowBox.bindModel] for each item that gets added to the model.
Parameters
item | the item from the model for which to create a widget for |
Returns
A function that will be called whenrever a child changes or is added. It lets you control if the child should be visible or not.
Parameters
child | a #GtkFlowBoxChild that may be filtered |
Returns
A function used by [gtk.flow_box.FlowBox.selectedForeach]. It will be called on every selected child of the box.
Parameters
box | a #GtkFlowBox |
child | a #GtkFlowBoxChild |
A function to compare two children to determine which should come first.
Parameters
child1 | the first child |
child2 | the second child |
Returns
the are equal, and > 0 otherwise
The type of function that is used for deciding what fonts get shown in a #GtkFontChooser. See [gtk.font_chooser.FontChooser.setFilterFunc].
Parameters
family | a #PangoFontFamily |
face | a #PangoFontFace belonging to family |
Returns
A function used by [gtk.icon_view.IconView.selectedForeach] to map all selected rows. It will be called on every selected row in the view.
Parameters
iconView | a #GtkIconView |
path | The #GtkTreePath of a selected row |
Key snooper functions are called before normal event delivery. They can be used to implement custom key event handling.
Parameters
grabWidget | the widget to which the event will be delivered |
event | the key event |
Returns
Called for list boxes that are bound to a #GListModel with [gtk.list_box.ListBox.bindModel] for each item that gets added to the model.
Versions of GTK+ prior to 3.18 called [gtk.widget.Widget.showAll] on the rows created by the GtkListBoxCreateWidgetFunc, but this forced all widgets inside the row to be shown, and is no longer the case. Applications should be updated to show the desired row widgets.
Parameters
item | the item from the model for which to create a widget for |
Returns
Will be called whenever the row changes or is added and lets you control if the row should be visible or not.
Parameters
row | the row that may be filtered |
Returns
A function used by [gtk.list_box.ListBox.selectedForeach]. It will be called on every selected child of the box.
Parameters
box | a #GtkListBox |
row | a #GtkListBoxRow |
Compare two rows to determine which should be first.
Parameters
row1 | the first row |
row2 | the second row |
Returns
equal and > 0 otherwise
Whenever row changes or which row is before row changes this is called, which lets you update the header on row. You may remove or set a new one via [gtk.list_box_row.ListBoxRow.setHeader] or just change the state of the current header widget.
Parameters
row | the row to update |
before | the row before row, or null if it is first |
A user function supplied when calling [gtk.menu.Menu.attachToWidget] which will be called when the menu is later detached from the widget.
Parameters
attachWidget | the #GtkWidget that the menu is being detached from. |
menu | the #GtkMenu being detached. |
A user function supplied when calling [gtk.menu.Menu.popup] which controls the positioning of the menu when it is displayed. The function sets the x and y parameters to the coordinates where the menu is to be drawn. To make the menu appear on a different monitor than the mouse pointer, [gtk.menu.Menu.setMonitor] must be called.
Parameters
menu | a #GtkMenu. |
x | address of the #gint representing the horizontal position where the menu shall be drawn. |
y | address of the #gint representing the vertical position where the menu shall be drawn. This is an output parameter. |
pushIn | This parameter controls how menus placed outside the monitor are handled. If this is set to true and part of the menu is outside the monitor then GTK+ pushes the window into the visible area, effectively modifying the popup position. Note that moving and possibly resizing the menu around will alter the scroll position to keep the menu items “in place”, i.e. at the same monitor position they would have been without resizing. In practice, this behavior is only useful for combobox popups or option menus and cannot be used to simply confine a menu to monitor boundaries. In that case, changing the scroll offset is not desirable. |
A multihead-aware GTK+ module may have a gtk_module_display_init() function with this prototype. GTK+ calls this function for each opened display.
Parameters
display | an open #GdkDisplay |
The type of function that is passed to [gtk.global.printRunPageSetupDialogAsync].
This function will be called when the page setup dialog is dismissed, and also serves as destroy notify for data.
Parameters
pageSetup | the #GtkPageSetup that has been |
The type of function that is used with custom filters, see [gtk.recent_filter.RecentFilter.addCustom].
Parameters
filterInfo | a #GtkRecentFilterInfo that is filled according to the needed flags passed to [gtk.recent_filter.RecentFilter.addCustom] |
Returns
A function that is called to deserialize rich text that has been serialized with [gtk.text_buffer.TextBuffer.serialize], and insert it at iter.
Parameters
registerBuffer | the #GtkTextBuffer the format is registered with |
contentBuffer | the #GtkTextBuffer to deserialize into |
iter | insertion point for the deserialized text |
data | data to deserialize |
createTags | true if deserializing may create tags |
Returns
Throws
A function that is called to serialize the content of a text buffer. It must return the serialized form of the content.
Parameters
registerBuffer | the #GtkTextBuffer for which the format is registered |
contentBuffer | the #GtkTextBuffer to serialize |
start | start of the block of text to serialize |
end | end of the block of text to serialize |
Returns
which contains the serialized data, or null if an error occurred
Callback type for adding a function to update animations. See [gtk.widget.Widget.addTickCallback].
Parameters
widget | the widget |
frameClock | the frame clock for the widget (same as calling [gtk.widget.Widget.getFrameClock]) |
Returns
[glib.types.SOURCE_REMOVE] if the tick callback should be removed.
The function used to translate messages in e.g. #GtkIconFactory and #GtkActionGroup.
Parameters
path | The id of the message. In #GtkActionGroup this will be a label or tooltip from a #GtkActionEntry. |
Returns
A function to set the properties of a cell instead of just using the straight mapping between the cell and the model. This is useful for customizing the cell renderer. For example, a function might get an integer from the tree_model, and render it to the “text” attribute of “cell” by converting it to its written equivalent. This is set by calling [gtk.tree_view_column.TreeViewColumn.setCellDataFunc]
Parameters
treeColumn | A #GtkTreeViewColumn |
cell | The #GtkCellRenderer that is being rendered by tree_column |
treeModel | The #GtkTreeModel being rendered |
iter | A #GtkTreeIter of the current row rendered |
A GtkTreeIterCompareFunc should return a negative integer, zero, or a positive integer if a sorts before b, a sorts with b, or a sorts after b respectively. If two iters compare as equal, their order in the sorted model is undefined. In order to ensure that the #GtkTreeSortable behaves as expected, the GtkTreeIterCompareFunc must define a partial order on the model, i.e. it must be reflexive, antisymmetric and transitive.
For example, if model is a product catalogue, then a compare function for the “price” column could be one which returns price_of(a) - price_of(b`)`.
Parameters
model | The #GtkTreeModel the comparison is within |
a | A #GtkTreeIter in model |
b | Another #GtkTreeIter in model |
Returns
a sorts before, with or after b
A function which calculates display values from raw values in the model. It must fill value with the display value for the column column in the row indicated by iter.
Since this function is called for each data access, it’s not a particularly efficient operation.
Parameters
model | the #GtkTreeModelFilter |
iter | a #GtkTreeIter pointing to the row whose display values are determined |
value | A #GValue which is already initialized for with the correct type for the column column. |
column | the column whose display value is determined |
A function which decides whether the row indicated by iter is visible.
Parameters
model | the child model of the #GtkTreeModelFilter |
iter | a #GtkTreeIter pointing to the row in model whose visibility is determined |
Returns
Type of the callback passed to [gtk.tree_model.TreeModel.foreach_] to iterate over the rows in a tree model.
Parameters
model | the #GtkTreeModel being iterated |
path | the current #GtkTreePath |
iter | the current #GtkTreeIter |
Returns
A function used by [gtk.tree_selection.TreeSelection.selectedForeach] to map all selected rows. It will be called on every selected row in the view.
Parameters
model | The #GtkTreeModel being viewed |
path | The #GtkTreePath of a selected row |
iter | A #GtkTreeIter pointing to a selected row |
A function used by [gtk.tree_selection.TreeSelection.setSelectFunction] to filter whether or not a row may be selected. It is called whenever a row's state might change. A return value of true indicates to selection that it is okay to change the selection.
Parameters
selection | A #GtkTreeSelection |
model | A #GtkTreeModel being viewed |
path | The #GtkTreePath of the row in question |
pathCurrentlySelected | true, if the path is currently selected |
Returns
Function type for determining whether column can be dropped in a particular spot (as determined by prev_column and next_column). In left to right locales, prev_column is on the left of the potential drop spot, and next_column is on the right. In right to left mode, this is reversed. This function should return true if the spot is a valid drop spot. Please note that returning true does not actually indicate that the column drop was made, but is meant only to indicate a possible drop spot to the user.
Parameters
treeView | A #GtkTreeView |
column | The #GtkTreeViewColumn being dragged |
prevColumn | A #GtkTreeViewColumn on one side of column |
nextColumn | A #GtkTreeViewColumn on the other side of column |
Returns
Function used for [gtk.tree_view.TreeView.mapExpandedRows].
Parameters
treeView | A #GtkTreeView |
path | The path that’s expanded |
Function type for determining whether the row pointed to by iter should be rendered as a separator. A common way to implement this is to have a boolean column in the model, whose values the #GtkTreeViewRowSeparatorFunc returns.
Parameters
model | the #GtkTreeModel |
iter | a #GtkTreeIter pointing at a row in model |
Returns
A function used for checking whether a row in model matches a search key string entered by the user. Note the return value is reversed from what you would normally expect, though it has some similarity to strcmp() returning 0 for equal strings.
Parameters
model | the #GtkTreeModel being searched |
column | the search column set by [gtk.tree_view.TreeView.setSearchColumn] |
key | the key string to compare with |
iter | a #GtkTreeIter pointing the row of model that should be compared with key. |
Returns
Variables 262
BINARY_AGE = 2443Like [gtk.global.getBinaryAge], but from the headers used at application compile time, rather than from the library linked against at application run time.
INPUT_ERROR = - 1Constant to return from a signal handler for the #GtkSpinButton::input signal in case of conversion failure.
INTERFACE_AGE = 32Like [gtk.global.getInterfaceAge], but from the headers used at application compile time, rather than from the library linked against at application run time.
LEVEL_BAR_OFFSET_FULL = "full"The name used for the stock full offset included by #GtkLevelBar.
LEVEL_BAR_OFFSET_HIGH = "high"The name used for the stock high offset included by #GtkLevelBar.
LEVEL_BAR_OFFSET_LOW = "low"The name used for the stock low offset included by #GtkLevelBar.
MAJOR_VERSION = 3Like [gtk.global.getMajorVersion], but from the headers used at application compile time, rather than from the library linked against at application run time.
MAX_COMPOSE_LEN = 7The maximum length of sequences in compose tables.
MICRO_VERSION = 43Like [gtk.global.getMicroVersion], but from the headers used at application compile time, rather than from the library linked against at application run time.
MINOR_VERSION = 24Like [gtk.global.getMinorVersion], but from the headers used at application compile time, rather than from the library linked against at application run time.
PAPER_NAME_A3 = "iso_a3"Name for the A3 paper size.
PAPER_NAME_A4 = "iso_a4"Name for the A4 paper size.
PAPER_NAME_A5 = "iso_a5"Name for the A5 paper size.
PAPER_NAME_B5 = "iso_b5"Name for the B5 paper size.
PAPER_NAME_EXECUTIVE = "na_executive"Name for the Executive paper size.
PAPER_NAME_LEGAL = "na_legal"Name for the Legal paper size.
PAPER_NAME_LETTER = "na_letter"Name for the Letter paper size.
PATH_PRIO_MASK = 15PRINT_SETTINGS_COLLATE = "collate"PRINT_SETTINGS_DEFAULT_SOURCE = "default-source"PRINT_SETTINGS_DITHER = "dither"PRINT_SETTINGS_DUPLEX = "duplex"PRINT_SETTINGS_FINISHINGS = "finishings"PRINT_SETTINGS_MEDIA_TYPE = "media-type"PRINT_SETTINGS_NUMBER_UP = "number-up"PRINT_SETTINGS_NUMBER_UP_LAYOUT = "number-up-layout"PRINT_SETTINGS_N_COPIES = "n-copies"PRINT_SETTINGS_ORIENTATION = "orientation"PRINT_SETTINGS_OUTPUT_BASENAME = "output-basename"The key used by the “Print to file” printer to store the file name of the output without the path to the directory and the file extension.
PRINT_SETTINGS_OUTPUT_BIN = "output-bin"PRINT_SETTINGS_OUTPUT_DIR = "output-dir"The key used by the “Print to file” printer to store the directory to which the output should be written.
PRINT_SETTINGS_OUTPUT_FILE_FORMAT = "output-file-format"The key used by the “Print to file” printer to store the format of the output. The supported values are “PS” and “PDF”.
PRINT_SETTINGS_OUTPUT_URI = "output-uri"The key used by the “Print to file” printer to store the URI to which the output should be written. GTK+ itself supports only “file://” URIs.
PRINT_SETTINGS_PAGE_RANGES = "page-ranges"PRINT_SETTINGS_PAGE_SET = "page-set"PRINT_SETTINGS_PAPER_FORMAT = "paper-format"PRINT_SETTINGS_PAPER_HEIGHT = "paper-height"PRINT_SETTINGS_PAPER_WIDTH = "paper-width"PRINT_SETTINGS_PRINTER = "printer"PRINT_SETTINGS_PRINTER_LPI = "printer-lpi"PRINT_SETTINGS_PRINT_PAGES = "print-pages"PRINT_SETTINGS_QUALITY = "quality"PRINT_SETTINGS_RESOLUTION = "resolution"PRINT_SETTINGS_RESOLUTION_X = "resolution-x"PRINT_SETTINGS_RESOLUTION_Y = "resolution-y"PRINT_SETTINGS_REVERSE = "reverse"PRINT_SETTINGS_SCALE = "scale"PRINT_SETTINGS_USE_COLOR = "use-color"PRINT_SETTINGS_WIN32_DRIVER_EXTRA = "win32-driver-extra"PRINT_SETTINGS_WIN32_DRIVER_VERSION = "win32-driver-version"PRIORITY_RESIZE = 110Use this priority for functionality related to size allocation.
It is used internally by GTK+ to compute the sizes of widgets. This priority is higher than [gdk.types.PRIORITY_REDRAW] to avoid resizing a widget which was just redrawn.
STOCK_ABOUT = "gtk-about"The “About” item. 
Deprecated
STOCK_ADD = "gtk-add"The “Add” item and icon.
Deprecated
STOCK_APPLY = "gtk-apply"The “Apply” item and icon.
Deprecated
STOCK_BOLD = "gtk-bold"The “Bold” item and icon.
Deprecated
STOCK_CANCEL = "gtk-cancel"The “Cancel” item and icon.
Deprecated
STOCK_CAPS_LOCK_WARNING = "gtk-caps-lock-warning"The “Caps Lock Warning” icon.
Deprecated
STOCK_CDROM = "gtk-cdrom"The “CD-Rom” item and icon.
Deprecated
STOCK_CLEAR = "gtk-clear"The “Clear” item and icon.
Deprecated
STOCK_CLOSE = "gtk-close"The “Close” item and icon.
Deprecated
STOCK_COLOR_PICKER = "gtk-color-picker"The “Color Picker” item and icon.
STOCK_CONNECT = "gtk-connect"The “Connect” icon.
STOCK_CONVERT = "gtk-convert"The “Convert” item and icon.
STOCK_COPY = "gtk-copy"The “Copy” item and icon.
Deprecated
STOCK_CUT = "gtk-cut"The “Cut” item and icon.
Deprecated
STOCK_DELETE = "gtk-delete"The “Delete” item and icon.
Deprecated
STOCK_DIALOG_AUTHENTICATION = "gtk-dialog-authentication"The “Authentication” item and icon.
Deprecated
STOCK_DIALOG_ERROR = "gtk-dialog-error"The “Error” item and icon.
Deprecated
STOCK_DIALOG_INFO = "gtk-dialog-info"The “Information” item and icon.
Deprecated
STOCK_DIALOG_QUESTION = "gtk-dialog-question"The “Question” item and icon.
Deprecated
STOCK_DIALOG_WARNING = "gtk-dialog-warning"The “Warning” item and icon.
Deprecated
STOCK_DIRECTORY = "gtk-directory"The “Directory” icon.
Deprecated
STOCK_DISCARD = "gtk-discard"The “Discard” item.
STOCK_DISCONNECT = "gtk-disconnect"The “Disconnect” icon.
STOCK_DND = "gtk-dnd"The “Drag-And-Drop” icon.
STOCK_DND_MULTIPLE = "gtk-dnd-multiple"The “Drag-And-Drop multiple” icon.
STOCK_EDIT = "gtk-edit"The “Edit” item and icon.
STOCK_EXECUTE = "gtk-execute"The “Execute” item and icon.
Deprecated
STOCK_FILE = "gtk-file"The “File” item and icon.
Since 3.0, this item has a label, before it only had an icon.
Deprecated
STOCK_FIND = "gtk-find"The “Find” item and icon.
Deprecated
STOCK_FIND_AND_REPLACE = "gtk-find-and-replace"The “Find and Replace” item and icon.
Deprecated
STOCK_FLOPPY = "gtk-floppy"The “Floppy” item and icon.
STOCK_FULLSCREEN = "gtk-fullscreen"The “Fullscreen” item and icon.
Deprecated
STOCK_GOTO_BOTTOM = "gtk-goto-bottom"The “Bottom” item and icon.
Deprecated
STOCK_GOTO_FIRST = "gtk-goto-first"The “First” item and icon. The icon has an RTL variant.
Deprecated
STOCK_GOTO_LAST = "gtk-goto-last"The “Last” item and icon. The icon has an RTL variant.
Deprecated
STOCK_GOTO_TOP = "gtk-goto-top"The “Top” item and icon.
Deprecated
STOCK_GO_BACK = "gtk-go-back"The “Back” item and icon. The icon has an RTL variant.
Deprecated
STOCK_GO_DOWN = "gtk-go-down"The “Down” item and icon.
Deprecated
STOCK_GO_FORWARD = "gtk-go-forward"The “Forward” item and icon. The icon has an RTL variant.
Deprecated
STOCK_GO_UP = "gtk-go-up"The “Up” item and icon.
Deprecated
STOCK_HARDDISK = "gtk-harddisk"The “Harddisk” item and icon.
Deprecated
STOCK_HELP = "gtk-help"The “Help” item and icon.
Deprecated
STOCK_HOME = "gtk-home"The “Home” item and icon.
Deprecated
STOCK_INDENT = "gtk-indent"The “Indent” item and icon. The icon has an RTL variant.
Deprecated
STOCK_INDEX = "gtk-index"The “Index” item and icon.
STOCK_INFO = "gtk-info"The “Info” item and icon.
Deprecated
STOCK_ITALIC = "gtk-italic"The “Italic” item and icon.
Deprecated
STOCK_JUMP_TO = "gtk-jump-to"The “Jump to” item and icon. The icon has an RTL variant.
Deprecated
STOCK_JUSTIFY_CENTER = "gtk-justify-center"The “Center” item and icon.
Deprecated
STOCK_JUSTIFY_FILL = "gtk-justify-fill"The “Fill” item and icon.
Deprecated
STOCK_JUSTIFY_LEFT = "gtk-justify-left"The “Left” item and icon.
Deprecated
STOCK_JUSTIFY_RIGHT = "gtk-justify-right"The “Right” item and icon.
Deprecated
STOCK_LEAVE_FULLSCREEN = "gtk-leave-fullscreen"The “Leave Fullscreen” item and icon.
Deprecated
STOCK_MEDIA_FORWARD = "gtk-media-forward"The “Media Forward” item and icon. The icon has an RTL variant.
Deprecated
STOCK_MEDIA_NEXT = "gtk-media-next"The “Media Next” item and icon. The icon has an RTL variant.
Deprecated
STOCK_MEDIA_PAUSE = "gtk-media-pause"The “Media Pause” item and icon.
Deprecated
STOCK_MEDIA_PLAY = "gtk-media-play"The “Media Play” item and icon. The icon has an RTL variant.
Deprecated
STOCK_MEDIA_PREVIOUS = "gtk-media-previous"The “Media Previous” item and icon. The icon has an RTL variant.
Deprecated
STOCK_MEDIA_RECORD = "gtk-media-record"The “Media Record” item and icon.
Deprecated
STOCK_MEDIA_REWIND = "gtk-media-rewind"The “Media Rewind” item and icon. The icon has an RTL variant.
Deprecated
STOCK_MEDIA_STOP = "gtk-media-stop"The “Media Stop” item and icon.
Deprecated
STOCK_MISSING_IMAGE = "gtk-missing-image"The “Missing image” icon.
Deprecated
STOCK_NETWORK = "gtk-network"The “Network” item and icon.
Deprecated
STOCK_NEW = "gtk-new"The “New” item and icon.
Deprecated
STOCK_NO = "gtk-no"The “No” item and icon.
STOCK_OK = "gtk-ok"The “OK” item and icon.
Deprecated
STOCK_OPEN = "gtk-open"The “Open” item and icon.
Deprecated
STOCK_ORIENTATION_LANDSCAPE = "gtk-orientation-landscape"The “Landscape Orientation” item and icon.
STOCK_ORIENTATION_PORTRAIT = "gtk-orientation-portrait"The “Portrait Orientation” item and icon.
STOCK_ORIENTATION_REVERSE_LANDSCAPE = "gtk-orientation-reverse-landscape"The “Reverse Landscape Orientation” item and icon.
STOCK_ORIENTATION_REVERSE_PORTRAIT = "gtk-orientation-reverse-portrait"The “Reverse Portrait Orientation” item and icon.
STOCK_PAGE_SETUP = "gtk-page-setup"The “Page Setup” item and icon.
Deprecated
STOCK_PASTE = "gtk-paste"The “Paste” item and icon.
Deprecated
STOCK_PREFERENCES = "gtk-preferences"The “Preferences” item and icon.
Deprecated
STOCK_PRINT = "gtk-print"The “Print” item and icon.
Deprecated
STOCK_PRINT_ERROR = "gtk-print-error"The “Print Error” icon.
Deprecated
STOCK_PRINT_PAUSED = "gtk-print-paused"The “Print Paused” icon.
STOCK_PRINT_PREVIEW = "gtk-print-preview"The “Print Preview” item and icon.
Deprecated
STOCK_PRINT_REPORT = "gtk-print-report"The “Print Report” icon.
STOCK_PRINT_WARNING = "gtk-print-warning"The “Print Warning” icon.
STOCK_PROPERTIES = "gtk-properties"The “Properties” item and icon.
Deprecated
STOCK_QUIT = "gtk-quit"The “Quit” item and icon.
Deprecated
STOCK_REDO = "gtk-redo"The “Redo” item and icon. The icon has an RTL variant.
Deprecated
STOCK_REFRESH = "gtk-refresh"The “Refresh” item and icon.
Deprecated
STOCK_REMOVE = "gtk-remove"The “Remove” item and icon.
Deprecated
STOCK_REVERT_TO_SAVED = "gtk-revert-to-saved"The “Revert” item and icon. The icon has an RTL variant.
Deprecated
STOCK_SAVE = "gtk-save"The “Save” item and icon.
Deprecated
STOCK_SAVE_AS = "gtk-save-as"The “Save As” item and icon.
Deprecated
STOCK_SELECT_ALL = "gtk-select-all"The “Select All” item and icon.
Deprecated
STOCK_SELECT_COLOR = "gtk-select-color"The “Color” item and icon.
STOCK_SELECT_FONT = "gtk-select-font"The “Font” item and icon.
STOCK_SORT_ASCENDING = "gtk-sort-ascending"The “Ascending” item and icon.
Deprecated
STOCK_SORT_DESCENDING = "gtk-sort-descending"The “Descending” item and icon.
Deprecated
STOCK_SPELL_CHECK = "gtk-spell-check"The “Spell Check” item and icon.
Deprecated
STOCK_STOP = "gtk-stop"The “Stop” item and icon.
Deprecated
STOCK_STRIKETHROUGH = "gtk-strikethrough"The “Strikethrough” item and icon.
Deprecated
STOCK_UNDELETE = "gtk-undelete"The “Undelete” item and icon. The icon has an RTL variant.
STOCK_UNDERLINE = "gtk-underline"The “Underline” item and icon.
Deprecated
STOCK_UNDO = "gtk-undo"The “Undo” item and icon. The icon has an RTL variant.
Deprecated
STOCK_UNINDENT = "gtk-unindent"The “Unindent” item and icon. The icon has an RTL variant.
Deprecated
STOCK_YES = "gtk-yes"The “Yes” item and icon.
STOCK_ZOOM_100 = "gtk-zoom-100"The “Zoom 100%” item and icon.
Deprecated
STOCK_ZOOM_FIT = "gtk-zoom-fit"The “Zoom to Fit” item and icon.
Deprecated
STOCK_ZOOM_IN = "gtk-zoom-in"The “Zoom In” item and icon.
Deprecated
STOCK_ZOOM_OUT = "gtk-zoom-out"The “Zoom Out” item and icon.
Deprecated
STYLE_CLASS_ACCELERATOR = "accelerator"A CSS class to match an accelerator.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_ARROW = "arrow"A CSS class used when rendering an arrow element.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_BACKGROUND = "background"A CSS class to match the window background.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_BOTTOM = "bottom"A CSS class to indicate an area at the bottom of a widget.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_BUTTON = "button"A CSS class to match buttons.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_CALENDAR = "calendar"A CSS class to match calendars.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_CELL = "cell"A CSS class to match content rendered in cell views.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_CHECK = "check"A CSS class to match check boxes.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_COMBOBOX_ENTRY = "combobox-entry"A CSS class to match combobox entries.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_CONTEXT_MENU = "context-menu"A CSS class to match context menus.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_CSD = "csd"A CSS class that gets added to windows which have client-side decorations.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_CURSOR_HANDLE = "cursor-handle"A CSS class used when rendering a drag handle for text selection.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_DEFAULT = "default"A CSS class to match the default widget.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_DESTRUCTIVE_ACTION = "destructive-action"A CSS class used when an action (usually a button) is one that is expected to remove or destroy something visible to the user.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_DIM_LABEL = "dim-label"A CSS class to match dimmed labels.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_DND = "dnd"A CSS class for a drag-and-drop indicator.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_DOCK = "dock"A CSS class defining a dock area.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_ENTRY = "entry"A CSS class to match text entries.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_ERROR = "error"A CSS class for an area displaying an error message, such as those in infobars.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_EXPANDER = "expander"A CSS class defining an expander, such as those in treeviews.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_FLAT = "flat"A CSS class that is added when widgets that usually have a frame or border (like buttons or entries) should appear without it.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_FRAME = "frame"A CSS class defining a frame delimiting content, such as #GtkFrame or the scrolled window frame around the scrollable area.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_GRIP = "grip"A CSS class defining a resize grip.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_HEADER = "header"A CSS class to match a header element.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_HIGHLIGHT = "highlight"A CSS class defining a highlighted area, such as headings in assistants and calendars.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_HORIZONTAL = "horizontal"A CSS class for horizontally layered widgets.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_IMAGE = "image"A CSS class defining an image, such as the icon in an entry.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_INFO = "info"A CSS class for an area displaying an informational message, such as those in infobars.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_INLINE_TOOLBAR = "inline-toolbar"A CSS class to match inline toolbars.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_INSERTION_CURSOR = "insertion-cursor"A CSS class used when rendering a drag handle for the insertion cursor position.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_LABEL = "label"A CSS class to match labels.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_LEFT = "left"A CSS class to indicate an area at the left of a widget.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_LEVEL_BAR = "level-bar"A CSS class used when rendering a level indicator, such as a battery charge level, or a password strength.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_LINKED = "linked"A CSS class to match a linked area, such as a box containing buttons belonging to the same control.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_LIST = "list"A CSS class to match lists.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_LIST_ROW = "list-row"A CSS class to match list rows.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_MARK = "mark"A CSS class defining marks in a widget, such as in scales.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_MENU = "menu"A CSS class to match menus.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_MENUBAR = "menubar"A CSS class to menubars.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_MENUITEM = "menuitem"A CSS class to match menu items.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_MESSAGE_DIALOG = "message-dialog"A CSS class that is added to message dialogs.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_MONOSPACE = "monospace"A CSS class that is added to text view that should use a monospace font.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_NEEDS_ATTENTION = "needs-attention"A CSS class used when an element needs the user attention, for instance a button in a stack switcher corresponding to a hidden page that changed state.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_NOTEBOOK = "notebook"A CSS class defining a notebook.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_OSD = "osd"A CSS class used when rendering an OSD (On Screen Display) element, on top of another container.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_OVERSHOOT = "overshoot"A CSS class that is added on the visual hints that happen when scrolling is attempted past the limits of a scrollable area.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_PANE_SEPARATOR = "pane-separator"A CSS class for a pane separator, such as those in #GtkPaned.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_PAPER = "paper"A CSS class that is added to areas that should look like paper.
This is used in print previews and themes are encouraged to style it as black text on white background.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_POPOVER = "popover"A CSS class that matches popovers.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_POPUP = "popup"A CSS class that is added to the toplevel windows used for menus.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_PRIMARY_TOOLBAR = "primary-toolbar"A CSS class to match primary toolbars.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_PROGRESSBAR = "progressbar"A CSS class to use when rendering activity as a progressbar.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_PULSE = "pulse"A CSS class to use when rendering a pulse in an indeterminate progress bar.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_QUESTION = "question"A CSS class for an area displaying a question to the user, such as those in infobars.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_RADIO = "radio"A CSS class to match radio buttons.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_RAISED = "raised"A CSS class to match a raised control, such as a raised button on a toolbar.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_READ_ONLY = "read-only"A CSS class used to indicate a read-only state.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_RIGHT = "right"A CSS class to indicate an area at the right of a widget.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_RUBBERBAND = "rubberband"A CSS class to match the rubberband selection rectangle.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_SCALE = "scale"A CSS class to match scale widgets.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_SCALE_HAS_MARKS_ABOVE = "scale-has-marks-above"A CSS class to match scale widgets with marks attached, all the marks are above for horizontal #GtkScale. left for vertical #GtkScale.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_SCALE_HAS_MARKS_BELOW = "scale-has-marks-below"A CSS class to match scale widgets with marks attached, all the marks are below for horizontal #GtkScale, right for vertical #GtkScale.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_SCROLLBAR = "scrollbar"A CSS class to match scrollbars.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_SCROLLBARS_JUNCTION = "scrollbars-junction"A CSS class to match the junction area between an horizontal and vertical scrollbar, when they’re both shown.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_SEPARATOR = "separator"A CSS class for a separator.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_SIDEBAR = "sidebar"A CSS class defining a sidebar, such as the left side in a file chooser.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_SLIDER = "slider"A CSS class to match sliders.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_SPINBUTTON = "spinbutton"A CSS class defining an spinbutton.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_SPINNER = "spinner"A CSS class to use when rendering activity as a “spinner”.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_STATUSBAR = "statusbar"A CSS class to match statusbars.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_SUBTITLE = "subtitle"A CSS class used for the subtitle label in a titlebar in a toplevel window.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_SUGGESTED_ACTION = "suggested-action"A CSS class used when an action (usually a button) is the primary suggested action in a specific context.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_TITLE = "title"A CSS class used for the title label in a titlebar in a toplevel window.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_TITLEBAR = "titlebar"A CSS class used when rendering a titlebar in a toplevel window.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_TOOLBAR = "toolbar"A CSS class to match toolbars.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_TOOLTIP = "tooltip"A CSS class to match tooltip windows.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_TOP = "top"A CSS class to indicate an area at the top of a widget.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_TOUCH_SELECTION = "touch-selection"A CSS class for touch selection popups on entries and text views.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_TROUGH = "trough"A CSS class to match troughs, as in scrollbars and progressbars.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_UNDERSHOOT = "undershoot"A CSS class that is added on the visual hints that happen where content is 'scrolled off' and can be made visible by scrolling.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_VERTICAL = "vertical"A CSS class for vertically layered widgets.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_VIEW = "view"A CSS class defining a view, such as iconviews or treeviews.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_WARNING = "warning"A CSS class for an area displaying a warning message, such as those in infobars.
Refer to individual widget documentation for used style classes.
STYLE_CLASS_WIDE = "wide"A CSS class to indicate that a UI element should be 'wide'. Used by #GtkPaned.
Refer to individual widget documentation for used style classes.
STYLE_PROPERTY_BACKGROUND_COLOR = "background-color"A property holding the background color of rendered elements as a #GdkRGBA.
STYLE_PROPERTY_BACKGROUND_IMAGE = "background-image"A property holding the element’s background as a #cairo_pattern_t.
STYLE_PROPERTY_BORDER_COLOR = "border-color"A property holding the element’s border color as a #GdkRGBA.
STYLE_PROPERTY_BORDER_RADIUS = "border-radius"A property holding the rendered element’s border radius in pixels as a #gint.
STYLE_PROPERTY_BORDER_STYLE = "border-style"A property holding the element’s border style as a #GtkBorderStyle.
STYLE_PROPERTY_BORDER_WIDTH = "border-width"A property holding the rendered element’s border width in pixels as a #GtkBorder. The border is the intermediary spacing property of the padding/border/margin series.
[gtk.global.renderFrame] uses this property to find out the frame line width, so #GtkWidgets rendering frames may need to add up this padding when requesting size
STYLE_PROPERTY_COLOR = "color"A property holding the foreground color of rendered elements as a #GdkRGBA.
STYLE_PROPERTY_FONT = "font"A property holding the font properties used when rendering text as a #PangoFontDescription.
STYLE_PROPERTY_MARGIN = "margin"A property holding the rendered element’s margin as a #GtkBorder. The margin is defined as the spacing between the border of the element and its surrounding elements. It is external to #GtkWidget's size allocations, and the most external spacing property of the padding/border/margin series.
STYLE_PROPERTY_PADDING = "padding"A property holding the rendered element’s padding as a #GtkBorder. The padding is defined as the spacing between the inner part of the element border and its child. It’s the innermost spacing property of the padding/border/margin series.
STYLE_PROVIDER_PRIORITY_APPLICATION = 600A priority that can be used when adding a #GtkStyleProvider for application-specific style information.
STYLE_PROVIDER_PRIORITY_FALLBACK = 1The priority used for default style information that is used in the absence of themes.
Note that this is not very useful for providing default styling for custom style classes - themes are likely to override styling provided at this priority with catch-all `* {...}` rules.
STYLE_PROVIDER_PRIORITY_SETTINGS = 400The priority used for style information provided via #GtkSettings.
This priority is higher than #GTK_STYLE_PROVIDER_PRIORITY_THEME to let settings override themes.
STYLE_PROVIDER_PRIORITY_THEME = 200The priority used for style information provided by themes.
STYLE_PROVIDER_PRIORITY_USER = 800The priority used for the style information from XDG_CONFIG_HOME/gtk-3.0/gtk.css.
You should not use priorities higher than this, to give the user the last word.
STYLE_REGION_COLUMN = "column"A widget region name to define a treeview column.
Deprecated
STYLE_REGION_COLUMN_HEADER = "column-header"A widget region name to define a treeview column header.
Deprecated
STYLE_REGION_ROW = "row"A widget region name to define a treeview row.
Deprecated
STYLE_REGION_TAB = "tab"A widget region name to define a notebook tab.
Deprecated
TEXT_VIEW_PRIORITY_VALIDATE = 125The priority at which the text view validates onscreen lines in an idle job in the background.
TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID = - 1The GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID can be used to make a #GtkTreeSortable use the default sort function.
See also [gtk.tree_sortable.TreeSortable.setSortColumnId]
TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID = - 2The GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID can be used to make a #GtkTreeSortable use no sorting.
See also [gtk.tree_sortable.TreeSortable.setSortColumnId]