Replace GTK headerbar with custom implementation

This avoids D&D controllers clash and allows to freely customize how maximize, minimize and close buttons work (differently for e.g. web application) and where are they placed
This commit is contained in:
Rafał Dzięgiel
2021-02-16 12:08:45 +01:00
parent 6448012edd
commit 530f60bce9
6 changed files with 167 additions and 71 deletions

View File

@@ -91,7 +91,7 @@ class ClapperCustomRevealer extends Gtk.Revealer
var RevealerTop = GObject.registerClass(
class ClapperRevealerTop extends CustomRevealer
{
_init(window)
_init()
{
super._init({
transition_duration: REVEAL_TIME,
@@ -133,7 +133,7 @@ class ClapperRevealerTop extends CustomRevealer
revealerBox.add_css_class('osd');
revealerBox.add_css_class('reavealertop');
this.headerBar = new HeaderBar(window);
this.headerBar = new HeaderBar();
revealerBox.append(this.headerBar);
this.revealerGrid = new Gtk.Grid({