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

NAME

6       gtk4-builder-tool - GtkBuilder file utility
7

SYNOPSIS

9       gtk4-builder-tool [COMMAND] [OPTION...] FILE
10

DESCRIPTION

12       gtk4-builder-tool can perform various operations on GtkBuilder .ui
13       files.
14
15       The validate command validates the .ui file and reports errors to
16       stderr.
17
18       The enumerate command lists all the named objects that are created in
19       the .ui file.
20
21       The preview command displays the .ui file. This command accepts options
22       to specify the ID of the toplevel object and a .css file to use.
23
24       The simplify command simplifies the .ui file by removing properties
25       that are set to their default values and writes the resulting XML to
26       stdout, or back to the input file.
27
28       When the --3to4 is specified, simplify interprets the input as a GTK 3
29       ui file and attempts to convert it to GTK 4 equivalents. It performs
30       various conversions, such as renaming properties, translating child
31       properties to layout properties, rewriting the setup for GtkNotebook,
32       GtkStack, GtkAssistant or changing toolbars into boxes.
33
34       You should always test the modified .ui files produced by
35       gtk4-builder-tool before using them in production.
36
37       Note in particular that the conversion done with --3to4 is meant as a
38       starting point for a port from GTK 3 to GTK 4. It is expected that you
39       will have to do manual fixups after the initial conversion.
40

SIMPLIFY OPTIONS

42       The simplify command accepts the following options:
43
44       --replace
45           Write the content back to the .ui file instead of stdout.
46
47       --3to4
48           Transform a GTK 3 ui file to GTK 4
49

PREVIEW OPTIONS

51       The preview command accepts the following options:
52
53       --id=ID
54           The ID of the object to preview. If not specified,
55           gtk4-builder-tool will choose a suitable object on its own.
56
57       --css=FILE
58           Load style information from the given .css file.
59
60
61
62GTK                                                       GTK4-BUILDER-TOOL(1)
Impressum