Remove fullscreen-changed signal

GTK since 4.0 has fullscreened property that can be used as both a binding and signal with notify. No need to keep the fullscreen-changed signal as part of the app.
This commit is contained in:
Rafostar
2021-01-05 20:47:57 +01:00
parent 3452990c28
commit a9d4555661
2 changed files with 3 additions and 11 deletions

View File

@@ -25,9 +25,7 @@ app.connect('activate', () => {
});
let widget = new Clapper.Widget();
widget.connect('fullscreen-changed', (widget, isFullscreen) => {
label.set_visible(!isFullscreen);
});
window.bind('fullscreened', label, 'visible', GObject.BindingFlags.INVERT_BOOLEAN);
window.connect('show', () => {
let media = 'http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4';
widget.player.set_media(media);