Port app to the new GstClapper API

This commit is contained in:
Rafał Dzięgiel
2021-01-27 22:07:17 +01:00
parent 08f86cf0cc
commit bee1889376
6 changed files with 40 additions and 40 deletions

View File

@@ -1,4 +1,4 @@
const { GObject, Gtk, GstPlayer } = imports.gi;
const { GObject, Gtk, GstClapper } = imports.gi;
const Buttons = imports.src.buttons;
const Misc = imports.src.misc;
const { PlayerRemote } = imports.src.playerRemote;
@@ -50,11 +50,11 @@ class ClapperWidgetRemote extends Gtk.Grid
switch(action) {
case 'state_changed':
switch(value) {
case GstPlayer.PlayerState.STOPPED:
case GstPlayer.PlayerState.PAUSED:
case GstClapper.ClapperState.STOPPED:
case GstClapper.ClapperState.PAUSED:
this.togglePlayButton.setPrimaryIcon();
break;
case GstPlayer.PlayerState.PLAYING:
case GstClapper.ClapperState.PLAYING:
this.togglePlayButton.setSecondaryIcon();
break;
default: