[gnome-shell] Magnifier DBus setCrosswireColor() doesn't convert correctly to hex string.



commit c19c236dbfb654bd085cdb7f3501fd748881911a
Author: Joseph Scheuhammer <clown utoronto ca>
Date:   Thu Jun 24 18:43:55 2010 -0400

    Magnifier DBus setCrosswireColor() doesn't convert correctly to hex string.
    
    Modified setCrosswireColor() in magnifierDBus.js to correctly pad hex string
    with leading zeroes when converting from integer.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=622508

 js/ui/magnifierDBus.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/magnifierDBus.js b/js/ui/magnifierDBus.js
index feddc28..0d8332e 100644
--- a/js/ui/magnifierDBus.js
+++ b/js/ui/magnifierDBus.js
@@ -267,7 +267,7 @@ ShellMagnifier.prototype = {
      * @color:   Unsigned int of the form rrggbbaa.
      */
      setCrosswireColor: function(color) {
-        Main.magnifier.setCrosshairsColor('#' + color.toString(16));
+        Main.magnifier.setCrosshairsColor('#%08x'.format(color));
      },
 
     /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]