docs: Sync up debug flag information

This commit is contained in:
Matthias Clasen
2021-05-22 20:41:48 -04:00
parent 601a8de422
commit 40f292cb13
2 changed files with 46 additions and 12 deletions

View File

@@ -22,20 +22,26 @@ are only available when GTK has been configured with `-Ddebug=true`.
`builder`
: GtkBuilder support
`builder-objects`
: Unused GtkBuilder objects
`geometry`
: Size allocation
`icontheme`
: Icon themes
`iconfallback`
: Information about icon fallback
`keybindings`
: Keybindings
: Keyboard shortcuts
`modules`
: Loading of modules
: Modules and extensions
`printing`
: Printing support
: Printing
`size-request`
: Size requests
@@ -46,6 +52,15 @@ are only available when GTK has been configured with `-Ddebug=true`.
`tree`
: Tree widget internals
`constraints`
: Constraints and the constraint solver
`layout`
: Layout managers
`acccessibility`
: Accessibility state changs
A number of keys are influencing behavior instead of just logging:
`interactive`
@@ -57,15 +72,6 @@ A number of keys are influencing behavior instead of just logging:
`touchscreen`
: Pretend the pointer is a touchscreen device
`updates`
: Visual feedback about window updates
`resize`
: Highlight resizing widgets
`layout`
: Show layout borders
`snapshot`
: Include debug render nodes in the generated snapshots

View File

@@ -34,6 +34,34 @@
G_BEGIN_DECLS
/**
* GtkDebugFlags:
* @GTK_DEBUG_TEXT: Information about GtkTextView
* @GTK_DEBUG_TREE: Information about GtkTreeView
* @GTK_DEBUG_KEYBINDINGS: Information about keyboard shortcuts
* @GTK_DEBUG_MODULES: Information about modules and extensions
* @GTK_DEBUG_GEOMETRY: Information about size allocation
* @GTK_DEBUG_ICONTHEME: Information about icon themes
* @GTK_DEBUG_PRINTING: Information about printing
* @GTK_DEBUG_BUILDER: Trace GtkBuilder operation
* @GTK_DEBUG_SIZE_REQUEST: Information about size requests
* @GTK_DEBUG_NO_CSS_CACHE: Disable the style property cache
* @GTK_DEBUG_INTERACTIVE: Open the GTK inspector
* @GTK_DEBUG_TOUCHSCREEN: Pretend the pointer is a touchscreen
* @GTK_DEBUG_ACTIONS: Information about actions and menu models
* @GTK_DEBUG_LAYOUT: Information from layout managers
* @GTK_DEBUG_SNAPSHOT: Include debug render nodes in the generated snapshots
* @GTK_DEBUG_CONSTRAINTS: Information from the constraints solver
* @GTK_DEBUG_BUILDER_OBJECTS: Log unused GtkBuilder objects
* @GTK_DEBUG_A11Y: Information about accessibility state changes
* @GTK_DEBUG_ICONFALLBACK: Information about icon fallback
*
* Flags to use with gtk_set_debug_flags().
*
* Settings these flags causes GTK to print out different
* types of debugging information. Some of these flags are
* only available when GTK has been configured with `-Ddebug=true`.
*/
typedef enum {
GTK_DEBUG_TEXT = 1 << 0,
GTK_DEBUG_TREE = 1 << 1,