Commit 83a18dc1 authored by Andy Holmes's avatar Andy Holmes
Browse files

Merge branch 'andyholmes/fix-anatomy' into 'main'

Extensions: fix example in anatomy.md

Closes #28

See merge request !58
parents d8f36320 9ddc71de
Pipeline #319372 passed with stages
in 4 minutes and 15 seconds
......@@ -210,7 +210,8 @@ function buildPrefsWidget() {
// At the time buildPrefsWidget() is called, the window is not yet prepared
// so if you want to access the headerbar you need to use a small trick
GLib.timeout_add(0, () => {
GLib.idle_add(GLib.PRIORITY_DEFAULT, () => {
// In GTK4 (GNOME 40), call `get_root()` instead of `get_toplevel()`
let window = prefsWidget.get_toplevel();
let headerBar = window.get_titlebar();
headerbar.title = `${Me.metadata.name} Preferences`;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment