Skip to content

Commit

Permalink
update to shell version 3.26
Browse files Browse the repository at this point in the history
  • Loading branch information
hslbck committed Sep 21, 2017
1 parent 317dfd3 commit 7a0e592
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 12 deletions.
Binary file modified radio-extension.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion radio@hslbck.gmail.com/addChannelDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const _httpSession = new Soup.SessionSync();

let oldChannel = null;

const AddChannelDialog = new Lang.Class({
var AddChannelDialog = new Lang.Class({
Name: 'AddChannelDialog',
Extends: ModalDialog.ModalDialog,

Expand Down
2 changes: 1 addition & 1 deletion radio@hslbck.gmail.com/channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
const Lang = imports.lang;

const Channel = new Lang.Class({
var Channel = new Lang.Class({
Name: 'Channel',

_init: function (name, uri, favourite, encoding) {
Expand Down
2 changes: 1 addition & 1 deletion radio@hslbck.gmail.com/channelListDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const FavouriteDisabledIcon = 'non-starred-symbolic';

let _selectedChannel;

const ChannelListDialog = new Lang.Class({
var ChannelListDialog = new Lang.Class({
Name: 'ChannelListDialog',
Extends: ModalDialog.ModalDialog,

Expand Down
2 changes: 1 addition & 1 deletion radio@hslbck.gmail.com/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"shell-version": ["3.18", "3.20", "3.22", "3.24"],
"shell-version": ["3.18", "3.20", "3.22", "3.24", "3.26"],
"uuid": "radio@hslbck.gmail.com",
"name": "Internet Radio",
"description": "Listen to an Internet Radio Stream",
Expand Down
4 changes: 2 additions & 2 deletions radio@hslbck.gmail.com/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const MyE = Extension.imports.extension;
const Convert = Extension.imports.convertCharset;
const Convenience = Extension.imports.convenience;

Gst.init(null, 0);
Gst.init(null);

let tag = "";
let currentChannel;
Expand All @@ -32,7 +32,7 @@ let settings;

const SETTING_VOLUME_LEVEL = 'volume-level';

const Player = new Lang.Class({
var Player = new Lang.Class({
Name: 'Player',

_init: function (channel) {
Expand Down
2 changes: 1 addition & 1 deletion radio@hslbck.gmail.com/prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const SETTING_TITLE_NOTIFICATION = 'title-notification';
const SETTING_SHOW_TITLE_IN_PANEL = 'show-title-in-panel';
const SETTING_SHOW_VOLUME_ADJUSTMENT_SLIDER = 'show-volume-adjustment-slider';

const RadioPrefsWidget = new GObject.Class({
var RadioPrefsWidget = new GObject.Class({
Name: 'RadioPrefsWidget',
GTypeName: 'RadioPrefsWidget',
Extends: Gtk.Grid,
Expand Down
8 changes: 5 additions & 3 deletions radio@hslbck.gmail.com/radioMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const MediaKeysInterface = '<node> \
</node>';
const MediaKeysProxy = Gio.DBusProxy.makeProxyWrapper(MediaKeysInterface);

const RadioMenuButton = new Lang.Class({
var RadioMenuButton = new Lang.Class({
Name: 'Radio Button',
Extends: PanelMenu.Button,

Expand All @@ -99,9 +99,10 @@ const RadioMenuButton = new Lang.Class({
this.channelList = Io.read();
this.chas = this.channelList.channels;
this.lastPlayed = this.channelList.lastplayed;
let encoding = this.lastPlayed.hasOwnProperty('encoding') ? this.lastPlayed.encoding : null;

// init last played channel
this.lastPlayedChannel = new Channel.Channel(this.lastPlayed.name, this.lastPlayed.address, false, this.lastPlayed.encoding);
this.lastPlayedChannel = new Channel.Channel(this.lastPlayed.name, this.lastPlayed.address, false, encoding);

// init player
this.player = new Player.Player(this.lastPlayedChannel);
Expand Down Expand Up @@ -349,7 +350,8 @@ const RadioMenuButton = new Lang.Class({
// init channel and add channels to the PopupMenu
_initChannels: function (chas) {
for (var i in chas) {
let channel = new Channel.Channel(chas[i].name, chas[i].address, chas[i].favourite, chas[i].encoding);
let encoding = chas[i].hasOwnProperty('encoding') ? chas[i].encoding : null;
let channel = new Channel.Channel(chas[i].name, chas[i].address, chas[i].favourite, encoding);
this.helperChannelList[i] = channel;
if (chas[i].favourite) {
this._addToFavourites(channel);
Expand Down
2 changes: 1 addition & 1 deletion radio@hslbck.gmail.com/searchDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ _httpSession.user_agent = "GSE Radio";
_httpSession.timeout = 10;
let _selectedChannel;

const SearchDialog = new Lang.Class({
var SearchDialog = new Lang.Class({
Name: 'SearchDialog',
Extends: ModalDialog.ModalDialog,

Expand Down
2 changes: 1 addition & 1 deletion radio@hslbck.gmail.com/titleMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Clutter = imports.gi.Clutter;
const PanelMenu = imports.ui.panelMenu;
const Extension = imports.misc.extensionUtils.getCurrentExtension();

const TitleMenuButton = new Lang.Class({
var TitleMenuButton = new Lang.Class({
Name: 'Title Button',
Extends: PanelMenu.Button,

Expand Down

0 comments on commit 7a0e592

Please sign in to comment.