Skip to content

Commit

Permalink
gnome3.20 support, fixes #29 (thanks to Raphaël Hertzog)
Browse files Browse the repository at this point in the history
  • Loading branch information
olebowle committed May 28, 2016
1 parent e95b6fc commit 35c7804
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions [email protected]/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,8 @@ Indicator.prototype = {
let pi = Math.PI;
function arc(r, value, max, angle, lightColor, darkColor) {
if(max == 0) return;
let light = new Clutter.Color();
light.from_string(lightColor);
let dark = new Clutter.Color();
dark.from_string(darkColor);
let [res, light] = Clutter.Color.from_string(lightColor);
let [res, dark] = Clutter.Color.from_string(darkColor);
Clutter.cairo_set_source_color(cr, light);
cr.arc(xc, yc, r, 0, 2*pi);
cr.fill();
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.16"],
"shell-version": ["3.20"],
"uuid": "[email protected]",
"name": "Timer",
"url": "https://github.com/olebowle/gnome-shell-timer",
Expand Down

0 comments on commit 35c7804

Please sign in to comment.