Use basic GtkBox widget for headerbar replacement

Window headerbar is hidden at all times. We do not want to execute the logic that comes with GtkHeaderBar, so we simplify it by using GtkBox as a dummy widget.
This commit is contained in:
Rafał Dzięgiel
2021-02-19 12:11:19 +01:00
parent 12b38702ab
commit ef06be464c

View File

@@ -30,7 +30,7 @@ class ClapperApp extends AppBase
const clapperWidget = new Widget();
window.set_child(clapperWidget);
const dummyHeaderbar = new Gtk.HeaderBar({
const dummyHeaderbar = new Gtk.Box({
can_focus: false,
focusable: false,
visible: false,