js: Fix up for Clutter.Color changes

Spotted by darkxst on IRC.

https://bugzilla.gnome.org/show_bug.cgi?id=683073
This commit is contained in:
Jasper St. Pierre
2012-08-30 21:38:21 -03:00
parent df15ee4074
commit e616877fd2
3 changed files with 3 additions and 8 deletions

View File

@ -303,8 +303,7 @@ const Magnifier = new Lang.Class({
*/
setCrosshairsColor: function(color) {
if (this._crossHairs) {
let clutterColor = new Clutter.Color();
clutterColor.from_string(color);
let [res, clutterColor] = Clutter.Color.from_string(color);
this._crossHairs.setColor(clutterColor);
}
},
@ -1472,9 +1471,7 @@ const Crosshairs = new Lang.Class({
* @color: The color as a Clutter.Color.
*/
getColor: function() {
let clutterColor = new Clutter.Color();
this._horizLeftHair.get_color(clutterColor);
return clutterColor;
return this._horizLeftHair.get_color();
},
/**