1GTK4-BUILDER-TOOL()                                        GTK4-BUILDER-TOOL()
2
3
4

NAME

6       gtk4-builder-tool - GtkBuilder File Utility
7

SYNOPSIS

9       gtk4-builder-tool <COMMAND> [OPTIONS...] <FILE>
10
11       gtk4-builder-tool validate <FILE>
12       gtk4-builder-tool enumerate <FILE>
13       gtk4-builder-tool simplify [OPTIONS...] <FILE>
14       gtk4-builder-tool preview [OPTIONS...] <FILE>
15
16

DESCRIPTION

18       gtk4-builder-tool can perform various operations on GtkBuilder UI defi‐
19       nition files.
20

COMMANDS

22   Validation
23       The validate command validates the given UI definition file and reports
24       errors to stderr.
25
26   Enumeration
27       The  enumerate  command lists all the named objects that are present in
28       the UI definition file.
29
30   Preview
31       The preview command displays the UI dfinition file.
32
33       This command accepts options to specify the ID of the  toplevel  object
34       and a CSS file to use.
35
36       --id=ID
37          The ID of the object to preview. If not specified, gtk4-builder-tool
38          will choose a suitable object on its own.
39
40       --css=FILE
41          Load style information from the given CSS file.
42
43   Simplification
44       The simplify command simplifies the  UI  definition  file  by  removing
45       properties  that are set to their default values and writes the result‐
46       ing XML to the standard output, or back to the input file.
47
48       When the --3to4 option is specified, the  simplify  command  interprets
49       the  input as a GTK 3 UI definuition file and attempts to convert it to
50       GTK 4 equivalents. It performs various conversions,  such  as  renaming
51       properties,  translating child properties to layout properties, rewrit‐
52       ing the setup for  GtkNotebook,  GtkStack,  GtkAssistant   or  changing
53       toolbars into boxes.
54
55       You  should  always  test  the modified UI definition files produced by
56       gtk4-builder-tool before using them in production.
57
58       Note in particular that the conversion done with --3to4 is meant  as  a
59       starting  point for a port from GTK 3 to GTK 4. It is expected that you
60       will have to do manual fixups  after the initial conversion.
61
62       --replace
63          Write the content back to the UI definition file  instead  of  using
64          the standard output.
65
66       --3to4
67          Transform a GTK 3 UI definition file to the equivalent GTK 4 defini‐
68          tions.
69
70
71
72
73                                                           GTK4-BUILDER-TOOL()
Impressum