gtk.types
D types for gtk4 library
Types 178
Type of callback used to calculate the next page in a gtk.assistant.Assistant.
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.
See gtk.assistant.Assistant.setForwardPageFunc.
Parameters
currentPage | The page number used to calculate the next page. |
Returns
The type of the callback functions used for iterating over the cell renderers and their allocated areas inside a gtk.cell_area.CellArea, 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 gtk.cell_area.CellArea, 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 gtk.cell_layout.CellLayout |
cell | the cell renderer whose value is to be set |
treeModel | the model |
iter | a gtk.tree_iter.TreeIter indicating the row to set the value for |
A function to be used by gtk.custom_layout.CustomLayout to allocate a widget.
Parameters
widget | the widget to allocate |
width | the new width of the widget |
height | the new height of the widget |
baseline | the new baseline of the widget, or -1 |
User function that is called to determine if the item should be matched.
If the filter matches the item, this function must return true. If the item should be filtered out, false must be returned.
Parameters
item | The item to be matched |
Returns
A function to be used by gtk.custom_layout.CustomLayout to measure a widget.
Parameters
widget | the widget to be measured |
orientation | the direction to be measured |
forSize | the size to be measured for |
minimum | the measured minimum size of the widget |
natural | the measured natural size of the widget |
minimumBaseline | the measured minimum baseline of the widget |
naturalBaseline | the measured natural baseline of the widget |
Queries a widget for its preferred size request mode.
Parameters
widget | the widget to be queried |
Returns
Whenever drawing_area needs to redraw, this function will be called.
This function should exclusively redraw the contents of the drawing area and must not call any widget functions that cause changes.
Parameters
drawingArea | the gtk.drawing_area.DrawingArea to redraw |
cr | the context to draw to |
width | the actual width of the contents. This value will be at least as wide as GtkDrawingArea:width. |
height | the actual height of the contents. This value will be at least as wide as GtkDrawingArea:height. |
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_editable_get_text (GTK_EDITABLE (gtk_entry_completion_get_entry ())).
Parameters
completion | the gtk.entry_completion.EntryCompletion |
key | the string to match, normalized and case-folded |
iter | a gtk.tree_iter.TreeIter indicating the row to match |
Returns
for key
Callback called by gtk.expression.Expression.watch when the expression value changes.
Called for flow boxes that are bound to a gio.list_model.ListModel.
This function is called 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 whenever a child changes or is added.
It lets you control if the child should be visible or not.
Parameters
child | a gtk.flow_box_child.FlowBoxChild 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 gtk.flow_box.FlowBox |
child | a gtk.flow_box_child.FlowBoxChild |
A function to compare two children to determine which should come first.
Parameters
child1 | the first child |
child2 | the second child |
Returns
they are equal, and > 0 otherwise
The type of function that is used for deciding what fonts get shown in a gtk.font_chooser.FontChooser.
See gtk.font_chooser.FontChooser.setFilterFunc.
Parameters
family | a pango.font_family.FontFamily |
face | a pango.font_face.FontFace 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 gtk.icon_view.IconView |
path | The gtk.tree_path.TreePath of a selected row |
Called for list boxes that are bound to a gio.list_model.ListModel with gtk.list_box.ListBox.bindModel for each item that gets added to the model.
If the widget returned is not a #GtkListBoxRow widget, then the widget will be inserted as the child of an intermediate #GtkListBoxRow.
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 gtk.list_box.ListBox |
row | a gtk.list_box_row.ListBoxRow |
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 |
User function that is called to map an item of the original model to an item expected by the map model.
The returned items must conform to the item type of the model they are used with.
Parameters
item | The item to map |
Returns
User-provided callback function to create a popup for a gtk.menu_button.MenuButton on demand.
This function is called when the popup of menu_button is shown, but none has been provided via gtk.menu_button.MenuButton.setPopover or gtk.menu_button.MenuButton.setMenuModel.
Parameters
menuButton | the gtk.menu_button.MenuButton |
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 gtk.page_setup.PageSetup that has been passed to gtk.global.printRunPageSetupDialogAsync |
The type of callback that is passed to gtk.print_job.PrintJob.send.
It is called when the print job has been completely sent.
Parameters
printJob | the gtk.print_job.PrintJob |
error | a glib.error.ErrorWrap that contains error information if the sending of the print job failed, otherwise null |
The type of function passed to gtk.global.enumeratePrinters.
Note that you need to ref printer, if you want to keep a reference to it after the function has returned.
Parameters
printer | a gtk.printer.Printer |
Returns
Prototype for shortcuts based on user callbacks.
Parameters
widget | The widget passed to the activation |
args | The arguments passed to the activation |
Returns
The predicate function used by gtk.text_iter.TextIter.forwardFindChar and gtk.text_iter.TextIter.backwardFindChar.
Parameters
ch | a Unicode code point |
Returns
stop, and false otherwise
A function used with gtk.text_tag_table.TextTagTable.foreach_, to iterate over every gtk.text_tag.TextTag inside a gtk.text_tag_table.TextTagTable.
Parameters
tag | the gtk.text_tag.TextTag |
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.
A function to set the properties of a cell instead of just using the straight mapping between the cell and the model.
This function 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.
See also: gtk.tree_view_column.TreeViewColumn.setCellDataFunc
Parameters
treeColumn | A gtk.tree_view_column.TreeViewColumn |
cell | The gtk.cell_renderer.CellRenderer that is being rendered by tree_column |
treeModel | The gtk.tree_model.TreeModel being rendered |
iter | A gtk.tree_iter.TreeIter 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 gtk.tree_sortable.TreeSortable 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 gtk.tree_model.TreeModel the comparison is within |
a | A gtk.tree_iter.TreeIter in model |
b | Another gtk.tree_iter.TreeIter in model |
Returns
a sorts before, with or after b
Prototype of the function called to create new child models when gtk.tree_list_row.TreeListRow.setExpanded is called.
This function can return null to indicate that item is guaranteed to be a leaf node and will never have children. If it does not have children but may get children later, it should return an empty model that is filled once children arrive.
Parameters
item | The item that is being expanded |
Returns
item or null if item can never have children
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 gtk.tree_model_filter.TreeModelFilter |
iter | a gtk.tree_iter.TreeIter pointing to the row whose display values are determined |
value | A gobject.value.Value 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 gtk.tree_model_filter.TreeModelFilter |
iter | a gtk.tree_iter.TreeIter 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 gtk.tree_model.TreeModel being iterated |
path | the current gtk.tree_path.TreePath |
iter | the current gtk.tree_iter.TreeIter |
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 gtk.tree_model.TreeModel being viewed |
path | The gtk.tree_path.TreePath of a selected row |
iter | A gtk.tree_iter.TreeIter 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 gtk.tree_selection.TreeSelection |
model | A gtk.tree_model.TreeModel being viewed |
path | The gtk.tree_path.TreePath 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 gtk.tree_view.TreeView |
column | The gtk.tree_view_column.TreeViewColumn being dragged |
prevColumn | A gtk.tree_view_column.TreeViewColumn on one side of column |
nextColumn | A gtk.tree_view_column.TreeViewColumn on the other side of column |
Returns
Function used for gtk.tree_view.TreeView.mapExpandedRows.
Parameters
treeView | A gtk.tree_view.TreeView |
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 gtk.types.TreeViewRowSeparatorFunc returns.
Parameters
model | the gtk.tree_model.TreeModel |
iter | a gtk.tree_iter.TreeIter 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 gtk.tree_model.TreeModel being searched |
column | the search column set by gtk.tree_view.TreeView.setSearchColumn |
key | the key string to compare with |
iter | a gtk.tree_iter.TreeIter pointing the row of model that should be compared with key. |
Returns
The type of the callback functions used for activating actions installed with gtk.widget_class.WidgetClass.installAction.
The parameter must match the parameter_type of the action.
Parameters
widget | the widget to which the action belongs |
actionName | the action name |
parameter | parameter for activation |
Variables 97
ACCESSIBLE_ATTRIBUTE_BACKGROUND = "bg-color"An attribute for the background color, expressed as an RGB value encoded in a string using the format: {r8},{g8},{b8}.
ACCESSIBLE_ATTRIBUTE_FAMILY = "family-name"An attribute for the font family name.
ACCESSIBLE_ATTRIBUTE_FOREGROUND = "fg-color"An attribute for the foreground color, expressed as an RGB value encoded in a string using the format: {r8},{g8},{b8}.
ACCESSIBLE_ATTRIBUTE_OVERLINE = "overline"An attribute for the overline style.
Possible values are:
ACCESSIBLE_ATTRIBUTE_OVERLINE_NONE = "none"The "none" overline value for gtk.types.ACCESSIBLE_ATTRIBUTE_OVERLINE.
ACCESSIBLE_ATTRIBUTE_OVERLINE_SINGLE = "single"The "single" overline value for gtk.types.ACCESSIBLE_ATTRIBUTE_OVERLINE.
ACCESSIBLE_ATTRIBUTE_SIZE = "size"An attribute for the font size, expressed in points.
ACCESSIBLE_ATTRIBUTE_STRETCH = "stretch"An attribute for the font stretch type.
Possible values are:
ACCESSIBLE_ATTRIBUTE_STRETCH_CONDENSED = "condensed"The "condensed" stretch value for gtk.types.ACCESSIBLE_ATTRIBUTE_STRETCH.
ACCESSIBLE_ATTRIBUTE_STRETCH_EXPANDED = "expanded"The "expanded" stretch value for gtk.types.ACCESSIBLE_ATTRIBUTE_STRETCH.
ACCESSIBLE_ATTRIBUTE_STRETCH_EXTRA_CONDENSED = "extra_condensed"The "extra condensed" stretch value for gtk.types.ACCESSIBLE_ATTRIBUTE_STRETCH.
ACCESSIBLE_ATTRIBUTE_STRETCH_EXTRA_EXPANDED = "extra_expanded"The "extra expanded" stretch value for gtk.types.ACCESSIBLE_ATTRIBUTE_STRETCH.
ACCESSIBLE_ATTRIBUTE_STRETCH_NORMAL = "normal"The "normal" stretch value for gtk.types.ACCESSIBLE_ATTRIBUTE_STRETCH.
ACCESSIBLE_ATTRIBUTE_STRETCH_SEMI_CONDENSED = "semi_condensed"The "semi condensed" stretch value for gtk.types.ACCESSIBLE_ATTRIBUTE_STRETCH.
ACCESSIBLE_ATTRIBUTE_STRETCH_SEMI_EXPANDED = "semi_expanded"The "semi expanded" stretch value for gtk.types.ACCESSIBLE_ATTRIBUTE_STRETCH.
ACCESSIBLE_ATTRIBUTE_STRETCH_ULTRA_CONDENSED = "ultra_condensed"The "ultra condensed" stretch value for gtk.types.ACCESSIBLE_ATTRIBUTE_STRETCH.
ACCESSIBLE_ATTRIBUTE_STRETCH_ULTRA_EXPANDED = "ultra_expanded"The "ultra expanded" stretch value for gtk.types.ACCESSIBLE_ATTRIBUTE_STRETCH.
ACCESSIBLE_ATTRIBUTE_STRIKETHROUGH = "strikethrough"An attribute for strikethrough text.
Possible values are true or false.
ACCESSIBLE_ATTRIBUTE_STYLE = "style"An attribute for the font style.
Possible values are:
ACCESSIBLE_ATTRIBUTE_STYLE_ITALIC = "italic"The "italic" style value for gtk.types.ACCESSIBLE_ATTRIBUTE_STYLE.
ACCESSIBLE_ATTRIBUTE_STYLE_NORMAL = "normal"The "normal" style value for gtk.types.ACCESSIBLE_ATTRIBUTE_STYLE.
ACCESSIBLE_ATTRIBUTE_STYLE_OBLIQUE = "oblique"The "oblique" style value for gtk.types.ACCESSIBLE_ATTRIBUTE_STYLE.
ACCESSIBLE_ATTRIBUTE_UNDERLINE = "underline"An attribute for the underline style.
Possible values are:
ACCESSIBLE_ATTRIBUTE_UNDERLINE_DOUBLE = "double"The "double" underline value for gtk.types.ACCESSIBLE_ATTRIBUTE_UNDERLINE.
ACCESSIBLE_ATTRIBUTE_UNDERLINE_ERROR = "error"The "error" underline value for gtk.types.ACCESSIBLE_ATTRIBUTE_UNDERLINE.
ACCESSIBLE_ATTRIBUTE_UNDERLINE_NONE = "none"The "none" underline value for gtk.types.ACCESSIBLE_ATTRIBUTE_UNDERLINE.
ACCESSIBLE_ATTRIBUTE_UNDERLINE_SINGLE = "single"The "single" underline value for gtk.types.ACCESSIBLE_ATTRIBUTE_UNDERLINE.
ACCESSIBLE_ATTRIBUTE_VARIANT = "variant"An attribute for the font variant.
Possible values are:
- gtk.types.ACCESSIBLE_ATTRIBUTE_VARIANT_SMALL_CAPS
- gtk.types.ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_SMALL_CAPS
- gtk.types.ACCESSIBLE_ATTRIBUTE_VARIANT_PETITE_CAPS
- gtk.types.ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_PETITE_CAPS
- gtk.types.ACCESSIBLE_ATTRIBUTE_VARIANT_UNICASE
- gtk.types.ACCESSIBLE_ATTRIBUTE_VARIANT_TITLE_CAPS
ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_PETITE_CAPS = "all-petite-caps"The "all petite caps" variant value for gtk.types.ACCESSIBLE_ATTRIBUTE_VARIANT.
ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_SMALL_CAPS = "all-small-caps"The "all small caps" variant value for gtk.types.ACCESSIBLE_ATTRIBUTE_VARIANT.
ACCESSIBLE_ATTRIBUTE_VARIANT_PETITE_CAPS = "petite-caps"The "petite caps" variant value for gtk.types.ACCESSIBLE_ATTRIBUTE_VARIANT.
ACCESSIBLE_ATTRIBUTE_VARIANT_SMALL_CAPS = "small-caps"The "small caps" variant value for gtk.types.ACCESSIBLE_ATTRIBUTE_VARIANT.
ACCESSIBLE_ATTRIBUTE_VARIANT_TITLE_CAPS = "title-caps"The "title caps" variant value for gtk.types.ACCESSIBLE_ATTRIBUTE_VARIANT.
ACCESSIBLE_ATTRIBUTE_VARIANT_UNICASE = "unicase"The "unicase" variant value for gtk.types.ACCESSIBLE_ATTRIBUTE_VARIANT.
ACCESSIBLE_ATTRIBUTE_WEIGHT = "weight"An attribute for the font weight.
ACCESSIBLE_VALUE_UNDEFINED = - 1An undefined value. The accessible attribute is either unset, or its value is undefined.
BINARY_AGE = 1402Like func@get_binary_age, but from the headers used at application compile time, rather than from the library linked against at application run time.
IM_MODULE_EXTENSION_POINT_NAME = "gtk-im-module"INPUT_ERROR = - 1Constant to return from a signal handler for the ::input signal in case of conversion failure.
INTERFACE_AGE = 2Like func@get_interface_age, but from the headers used at application compile time, rather than from the library linked against at application run time.
INVALID_LIST_POSITION = 4294967295The value used to refer to a guaranteed invalid position in a gio.list_model.ListModel.
This value may be returned from some functions, others may accept it as input. Its interpretation may differ for different functions.
Refer to each function's documentation for if this value is allowed and what it does.
LEVEL_BAR_OFFSET_FULL = "full"The name used for the stock full offset included by gtk.level_bar.LevelBar.
LEVEL_BAR_OFFSET_HIGH = "high"The name used for the stock high offset included by gtk.level_bar.LevelBar.
LEVEL_BAR_OFFSET_LOW = "low"The name used for the stock low offset included by gtk.level_bar.LevelBar.
MAJOR_VERSION = 4Like func@get_major_version, but from the headers used at application compile time, rather than from the library linked against at application run time.
MAX_COMPOSE_LEN = 7MEDIA_FILE_EXTENSION_POINT_NAME = "gtk-media-file"MICRO_VERSION = 2Like func@get_micro_version, but from the headers used at application compile time, rather than from the library linked against at application run time.
MINOR_VERSION = 14Like func@get_minor_version, 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.
PRINT_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.
STYLE_PROVIDER_PRIORITY_APPLICATION = 600A priority that can be used when adding a gtk.style_provider.StyleProvider 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 gtk.settings.Settings.
This priority is higher than gtk.types.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-4.0/gtk.css.
You should not use priorities higher than this, to give the user the last word.
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 = - 1Uses the default sort function in a gtk.tree_sortable.TreeSortable.
TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID = - 2Disables sorting in a gtk.tree_sortable.TreeSortable.