gtk-builder-tool(1)

gtk-builder-tool1

Gtkbuilder file utility

Usage

gtk-builder-tool [COMMAND] [OPTION ...] FILE

Overview

gtk-builder-tool can perform various operations on GtkBuilder .ui files.

You should always test the modified .ui files produced by gtk-builder-tool before using them in production.

Commands

The following commands are understood:

validate

Validates the .ui file and report errors to stderr.

simplify

Simplifies the .ui file by removing properties that are set to their default values and write the resulting XML to stdout, or back to the input file.

enumerate

Lists all the named objects that are created in the .ui file.

preview

Preview the .ui file. This command accepts options to specify the ID of an object and a .css file to use.

Options

The simplify command accepts the following options:

--replace

Write the content back to the .ui file instead of stdout.

Options

The preview command accepts the following options:

--id=ID

The ID of the object to preview. If not specified, gtk-builder-tool will choose a suitable object on its own.

--css=FILE

Load style information from the given .css file.

Releases

6 releases since Debian 9 (Stretch); the text changed 5 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13
  6. Arch

From gtk3 1:3.24.52-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.