💄 Only add headerbar on GTK4
This commit is contained in:
@@ -338,8 +338,10 @@ var PreferencesDialog = class PreferencesDialog {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Add a header bar to the window.
|
// Add a header bar to the window.
|
||||||
const header = Gtk.HeaderBar.new();
|
if (utils.isGTK4()) {
|
||||||
window.set_titlebar(header);
|
const header = Gtk.HeaderBar.new();
|
||||||
|
window.set_titlebar(header);
|
||||||
|
}
|
||||||
|
|
||||||
const box = new Gtk.Box({
|
const box = new Gtk.Box({
|
||||||
orientation: Gtk.Orientation.VERTICAL,
|
orientation: Gtk.Orientation.VERTICAL,
|
||||||
|
|||||||
Reference in New Issue
Block a user