mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 08:21:59 +02:00
Compatibility with latest GTK4 git
This commit is contained in:
@@ -322,7 +322,7 @@ class ClapperPlayer extends PlayerBase
|
|||||||
|
|
||||||
let clapperWidget = this.widget.get_ancestor(Gtk.Grid);
|
let clapperWidget = this.widget.get_ancestor(Gtk.Grid);
|
||||||
if(!clapperWidget.fullscreenMode) {
|
if(!clapperWidget.fullscreenMode) {
|
||||||
let size = window.get_size();
|
let size = window.get_default_size();
|
||||||
if(size[0] > 0 && size[1] > 0)
|
if(size[0] > 0 && size[1] > 0)
|
||||||
clapperWidget._saveWindowSize(size);
|
clapperWidget._saveWindowSize(size);
|
||||||
}
|
}
|
||||||
|
@@ -135,7 +135,7 @@ var Widget = GObject.registerClass({
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
let root = this.get_root();
|
let root = this.get_root();
|
||||||
let size = root.get_size();
|
let size = root.get_default_size();
|
||||||
|
|
||||||
this._saveWindowSize(size);
|
this._saveWindowSize(size);
|
||||||
|
|
||||||
@@ -160,7 +160,7 @@ var Widget = GObject.registerClass({
|
|||||||
? this.floatSize
|
? this.floatSize
|
||||||
: this.windowSize;
|
: this.windowSize;
|
||||||
|
|
||||||
root.resize(resize[0], resize[1]);
|
root.set_default_size(resize[0], resize[1]);
|
||||||
debug(`resized window: ${resize[0]}x${resize[1]}`);
|
debug(`resized window: ${resize[0]}x${resize[1]}`);
|
||||||
|
|
||||||
this.revealerBottom.showChild(false);
|
this.revealerBottom.showChild(false);
|
||||||
|
Reference in New Issue
Block a user