mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 08:21:59 +02:00
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:
@@ -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({
|
||||
|
Reference in New Issue
Block a user