Skip to content

Commit

Permalink
cinnamon-timer@jake1164 - Added support for cinnamon 4.0 (linuxmint#2244
Browse files Browse the repository at this point in the history
)

* cinnamon-timer@jake1164 - Updated metadata to allow to run on cinnamon 3.8

* cinnamon-timer: Added the license info to the info.json file.

* cinnamon-timer@jake1164 - Updated with support for 4.0
  • Loading branch information
jake1164 authored and jaszhix committed Jan 25, 2019
1 parent 973c772 commit a06ee8c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions cinnamon-timer@jake1164/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ All settings can be changed by right clicking on the icon and selecting configur
## TODO:

## Changelog
* 1.1.3
- Added support for Cinnamon 4.0

* 1.1.2
- Added legacy support for Cinnamon 2.6 - 3.2 (No dropdown or slider settings in settings window)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ MyApplet.prototype = {

_init: function (orientation, panel_height, instance_id) {
Applet.TextIconApplet.prototype._init.call(this, orientation, panel_height, instance_id);

try {

if (this.versionCompare(GLib.getenv('CINNAMON_VERSION'), "3.2") >= 0) {
this.setAllowedLayout(Applet.AllowedLayout.BOTH);
}
Expand All @@ -64,6 +64,7 @@ MyApplet.prototype = {
this.doTick();
}
this.doUpdateUI();

}
catch (e) {
global.logError(e);
Expand Down Expand Up @@ -353,6 +354,8 @@ MyApplet.prototype = {
Util.spawnCommandLine("play " + this.SoundPath);
}
catch (e) {
// spawnCommandLine does not actually throw exception when a sound fails to play
// ie. sox not installed.
global.logError(e);
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"uuid": "cinnamon-timer@jake1164",
"version": "1.1.2",
"version": "1.1.3",
"name": "Timer with notifications",
"description": "A timer app with visual and auditory notifications.",
"website": "https://cinnamon-spices.linuxmint.com/applets/view/302",
"multiversion": true,
"cinnamon-version": ["2.6", "2.8", "3.0", "3.2", "3.4", "3.6", "3.8"]
"cinnamon-version": ["2.6", "2.8", "3.0", "3.2", "3.4", "3.6", "3.8", "4.0"]
}

0 comments on commit a06ee8c

Please sign in to comment.