mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
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:
@@ -8,13 +8,8 @@ const Revealers = imports.clapper_src.revealers;
|
|||||||
const { debug } = Debug;
|
const { debug } = Debug;
|
||||||
const { settings } = Misc;
|
const { settings } = Misc;
|
||||||
|
|
||||||
var Widget = GObject.registerClass({
|
var Widget = GObject.registerClass(
|
||||||
Signals: {
|
class ClapperWidget extends Gtk.Grid
|
||||||
'fullscreen-changed': {
|
|
||||||
param_types: [GObject.TYPE_BOOLEAN]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}, class ClapperWidget extends Gtk.Grid
|
|
||||||
{
|
{
|
||||||
_init()
|
_init()
|
||||||
{
|
{
|
||||||
@@ -484,7 +479,6 @@ var Widget = GObject.registerClass({
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
this.setFullscreenMode(isFullscreen);
|
this.setFullscreenMode(isFullscreen);
|
||||||
this.emit('fullscreen-changed', isFullscreen);
|
|
||||||
debug(`interface in fullscreen mode: ${isFullscreen}`);
|
debug(`interface in fullscreen mode: ${isFullscreen}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -25,9 +25,7 @@ app.connect('activate', () => {
|
|||||||
});
|
});
|
||||||
let widget = new Clapper.Widget();
|
let widget = new Clapper.Widget();
|
||||||
|
|
||||||
widget.connect('fullscreen-changed', (widget, isFullscreen) => {
|
window.bind('fullscreened', label, 'visible', GObject.BindingFlags.INVERT_BOOLEAN);
|
||||||
label.set_visible(!isFullscreen);
|
|
||||||
});
|
|
||||||
window.connect('show', () => {
|
window.connect('show', () => {
|
||||||
let media = 'http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4';
|
let media = 'http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4';
|
||||||
widget.player.set_media(media);
|
widget.player.set_media(media);
|
||||||
|
Reference in New Issue
Block a user