Compatibility with latest GTK4 git

This commit is contained in:
Rafostar
2020-12-10 11:51:55 +01:00
parent 8dfede27ac
commit 73b803abdb
2 changed files with 3 additions and 3 deletions

View File

@@ -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);
} }

View File

@@ -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);