Add about dialog

This commit is contained in:
Rafostar
2020-10-15 16:21:46 +02:00
parent 34d39502b9
commit 57a8e6d933
7 changed files with 96 additions and 29 deletions

View File

@@ -3,15 +3,25 @@ const { GLib, GObject, Gtk, Pango } = imports.gi;
var HeaderBar = GObject.registerClass(
class ClapperHeaderBar extends Gtk.HeaderBar
{
_init(window, startButtons, endButtons)
_init(window, models)
{
super._init({
can_focus: false,
});
this.set_title_widget(this._createWidgetForWindow(window));
startButtons.forEach(btn => this.pack_start(btn));
endButtons.forEach(btn => this.pack_end(btn));
let openMenuButton = new Gtk.MenuButton({
icon_name: 'open-menu-symbolic'
});
openMenuButton.set_menu_model(models.settingsMenu);
this.pack_end(openMenuButton);
let fullscreenButton = new Gtk.Button({
icon_name: 'view-fullscreen-symbolic'
});
fullscreenButton.connect('clicked', () => this.get_parent().fullscreen());
this.pack_end(fullscreenButton);
}
updateHeaderBar(mediaInfo)