mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 16:31:58 +02:00
Initial GTK4 port
Port most of the player to GTK4. Some things are still broken or disabled due to GTK change, but will be gradually fixed.
This commit is contained in:
@@ -13,11 +13,12 @@ var Window = GObject.registerClass({
|
||||
super._init({
|
||||
application: application,
|
||||
title: title || 'Clapper',
|
||||
border_width: 0,
|
||||
//border_width: 0,
|
||||
resizable: true,
|
||||
window_position: Gtk.WindowPosition.CENTER,
|
||||
//window_position: Gtk.WindowPosition.CENTER,
|
||||
width_request: 960,
|
||||
height_request: 642
|
||||
height_request: 642,
|
||||
destroy_with_parent: true,
|
||||
});
|
||||
this.isFullscreen = false;
|
||||
}
|
||||
@@ -27,7 +28,7 @@ var Window = GObject.registerClass({
|
||||
let un = (this.isFullscreen) ? 'un' : '';
|
||||
this[`${un}fullscreen`]();
|
||||
}
|
||||
|
||||
/*
|
||||
vfunc_window_state_event(event)
|
||||
{
|
||||
super.vfunc_window_state_event(event);
|
||||
@@ -43,4 +44,5 @@ var Window = GObject.registerClass({
|
||||
this.isFullscreen = isFullscreen;
|
||||
this.emit('fullscreen-changed', this.isFullscreen);
|
||||
}
|
||||
*/
|
||||
});
|
||||
|
Reference in New Issue
Block a user