Skip to content

Commit

Permalink
Support GNOME 3.34
Browse files Browse the repository at this point in the history
  • Loading branch information
hslbck committed Sep 25, 2019
1 parent a5ebb39 commit 4885cb5
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 15 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).

## [Unreleased]

## Added
- Support for GNOME 3.34
- Greek translation

## Changed

## Fixed
- #133 Fix volume slider for GNOME 3.34

## [11] - 2019-03-21

### Added
Expand Down
10 changes: 6 additions & 4 deletions [email protected]/addChannelDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

const Clutter = imports.gi.Clutter;
const St = imports.gi.St;
const GObject = imports.gi.GObject;
const ShellEntry = imports.ui.shellEntry;
const Extension = imports.misc.extensionUtils.getCurrentExtension();
const Channel = Extension.imports.channel;
Expand All @@ -21,11 +22,12 @@ const _ = Gettext.gettext;

let oldChannel = null;

var AddChannelDialog = class AddChannelDialog extends ChannelCreator.ChannelCreator {
var AddChannelDialog = GObject.registerClass(
class AddChannelDialog extends ChannelCreator.ChannelCreator {

constructor(channel) {
_init(channel) {
oldChannel = channel;
super({
super._init({
styleClass: 'run-dialog'
});
this._buildLayout();
Expand Down Expand Up @@ -164,4 +166,4 @@ var AddChannelDialog = class AddChannelDialog extends ChannelCreator.ChannelCrea
this.channelListDialog.open();
}
}
};
});
6 changes: 4 additions & 2 deletions [email protected]/channelCreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
This file is distributed under the same license as the gnome-shell-extension-radio package.
*/
const St = imports.gi.St;
const GObject = imports.gi.GObject;
const ModalDialog = imports.ui.modalDialog;
const Extension = imports.misc.extensionUtils.getCurrentExtension();
const Tweener = imports.ui.tweener;
Expand All @@ -18,7 +19,8 @@ const _ = Gettext.gettext;
const Soup = imports.gi.Soup;
const _httpSession = new Soup.SessionSync();

var ChannelCreator = class ChannelCreator extends ModalDialog.ModalDialog {
var ChannelCreator = GObject.registerClass(
class ChannelCreator extends ModalDialog.ModalDialog {


_buildErrorLayout () {
Expand Down Expand Up @@ -96,4 +98,4 @@ var ChannelCreator = class ChannelCreator extends ModalDialog.ModalDialog {
}
return input; // case for valid stream address
}
}
});
10 changes: 6 additions & 4 deletions [email protected]/channelListDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const Clutter = imports.gi.Clutter;
const Gtk = imports.gi.Gtk;
const Signals = imports.signals;
const St = imports.gi.St;
const GObject = imports.gi.GObject;
const ModalDialog = imports.ui.modalDialog;
const Util = imports.misc.util;
const Gettext = imports.gettext.domain("[email protected]");
Expand All @@ -22,10 +23,11 @@ const FavouriteDisabledIcon = 'non-starred-symbolic';

let _selectedChannel;

var ChannelListDialog = class ChannelListDialog extends ModalDialog.ModalDialog {
var ChannelListDialog = GObject.registerClass(
class ChannelListDialog extends ModalDialog.ModalDialog {

constructor() {
super({
_init() {
super._init({
styleClass: 'nm-dialog'
});
this._buildLayout();
Expand Down Expand Up @@ -181,7 +183,7 @@ var ChannelListDialog = class ChannelListDialog extends ModalDialog.ModalDialog
});
this._itemBox.add_child(cha.item.actor);
}
};
});


var ChannelListDialogItem = class ChannelListDialogItem {
Expand Down
2 changes: 1 addition & 1 deletion [email protected]/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"shell-version": ["3.32"],
"shell-version": ["3.32", "3.34"],
"uuid": "[email protected]",
"name": "Internet Radio",
"description": "Listen to an Internet Radio Stream",
Expand Down
10 changes: 6 additions & 4 deletions [email protected]/searchDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
const Clutter = imports.gi.Clutter;
const Gtk = imports.gi.Gtk;
const St = imports.gi.St;
const GObject = imports.gi.GObject;
const ShellEntry = imports.ui.shellEntry;
const Util = imports.misc.util;
const Gettext = imports.gettext.domain("[email protected]");
Expand All @@ -23,10 +24,11 @@ _httpSession.user_agent = "GSE Radio";
_httpSession.timeout = 10;
let _selectedChannel;

var SearchDialog = class SearchDialog extends ChannelCreator.ChannelCreator {
var SearchDialog = GObject.registerClass(
class SearchDialog extends ChannelCreator.ChannelCreator {

constructor() {
super({
_init() {
super._init({
styleClass: 'nm-dialog'
});
this._buildLayout();
Expand Down Expand Up @@ -227,4 +229,4 @@ var SearchDialog = class SearchDialog extends ChannelCreator.ChannelCreator {
this.close();
}
}
};
});

0 comments on commit 4885cb5

Please sign in to comment.