From 73b803abdb4eb4c932d6525c598da2ee6f48a876 Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Thu, 10 Dec 2020 11:51:55 +0100 Subject: [PATCH] Compatibility with latest GTK4 git --- clapper_src/player.js | 2 +- clapper_src/widget.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clapper_src/player.js b/clapper_src/player.js index db7a53e7..776ed62c 100644 --- a/clapper_src/player.js +++ b/clapper_src/player.js @@ -322,7 +322,7 @@ class ClapperPlayer extends PlayerBase let clapperWidget = this.widget.get_ancestor(Gtk.Grid); if(!clapperWidget.fullscreenMode) { - let size = window.get_size(); + let size = window.get_default_size(); if(size[0] > 0 && size[1] > 0) clapperWidget._saveWindowSize(size); } diff --git a/clapper_src/widget.js b/clapper_src/widget.js index 500f9c7b..707174a1 100644 --- a/clapper_src/widget.js +++ b/clapper_src/widget.js @@ -135,7 +135,7 @@ var Widget = GObject.registerClass({ return; let root = this.get_root(); - let size = root.get_size(); + let size = root.get_default_size(); this._saveWindowSize(size); @@ -160,7 +160,7 @@ var Widget = GObject.registerClass({ ? this.floatSize : this.windowSize; - root.resize(resize[0], resize[1]); + root.set_default_size(resize[0], resize[1]); debug(`resized window: ${resize[0]}x${resize[1]}`); this.revealerBottom.showChild(false);