Add header bar with media title and path

This commit is contained in:
Rafostar
2020-09-10 10:26:20 +02:00
parent a9ac872c98
commit 06914db0da
2 changed files with 34 additions and 3 deletions

View File

@@ -101,10 +101,15 @@ var App = GObject.registerClass({
);
this.interface = new Interface();
let headerBar = new Gtk.HeaderBar({
show_close_button: true
});
this.interface.addHeaderBar(headerBar);
this.interface.controls.toggleFullscreenButton.connect(
'clicked', this._onInterfaceToggleFullscreenClicked.bind(this)
);
this.window.set_titlebar(this.interface.headerBar);
this.window.add(this.interface);
}