Permalink
Browse files

gnome3.20 support, fixes #29 (thanks to Raphaël Hertzog)

  • Loading branch information...
olebowle committed May 28, 2016
1 parent e95b6fc commit 35c78048e0556371a2481b9f3591641bd4d236fb
Showing with 3 additions and 5 deletions.
  1. +2 −4 timer@olebowle.gmx.com/extension.js
  2. +1 −1 timer@olebowle.gmx.com/metadata.json
@@ -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();
@@ -1,5 +1,5 @@
{
"shell-version": ["3.16"],
"shell-version": ["3.20"],
"uuid": "timer@olebowle.gmx.com",
"name": "Timer",
"url": "https://github.com/olebowle/gnome-shell-timer",

0 comments on commit 35c7804

Please sign in to comment.