Sha256: 26ac6a900eb16486bf4fe9c81999c1282f5c4aad3b8295a7f3df98bf263a17b1

Contents?: true

Size: 919 Bytes

Versions: 12

Compression:

Stored size: 919 Bytes

Contents

# Step 5: Add a GSettings object

The original files are located in the following directory.

- https://gitlab.gnome.org/GNOME/gtk/-/blob/main/examples/application5

The original schema file is [here](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/examples/application5/org.gtk.exampleapp.gschema.xml) and the license is LGPL 2.1 or later.

This program uses GSettings object of the GIO library.
You need to compile the schema file (`org.gtk.exampleapp.gschema.xml`) in advance.
The instruction is written in the `Rakefile`, so you just run `rake` to compile it.

```console
$ cd gtk4/sample/examples/application5
$ rake
```

The Ruby script `exampleapp.rb` works with `gschemas.compiled`.

```console
$ ruby exampleapp.rb README.md Rakefile
```

You will see the contents of the two files `README.md` and `Rakefile` in the window.

If you want to remove `gschemas.compiled`, do like this:

```console
$ rake clean
```

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
gtk4-4.2.4 sample/examples/application5/README.md
gtk4-4.2.3 sample/examples/application5/README.md
gtk4-4.2.2 sample/examples/application5/README.md
gtk4-4.2.1 sample/examples/application5/README.md
gtk4-4.2.0 sample/examples/application5/README.md
gtk4-4.1.9 sample/examples/application5/README.md
gtk4-4.1.8 sample/examples/application5/README.md
gtk4-4.1.7 sample/examples/application5/README.md
gtk4-4.1.6 sample/examples/application5/README.md
gtk4-4.1.5 sample/examples/application5/README.md
gtk4-4.1.4 sample/examples/application5/README.md
gtk4-4.1.3 sample/examples/application5/README.md