[gnome-shell] altTab: Properly query the themenode's color when painting the arrows



commit 294490f77bf88be072fa0bf8dbab29f330ecc9cd
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Tue Feb 15 20:55:23 2011 +0100

    altTab: Properly query the themenode's color when painting the arrows

 js/ui/altTab.js |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/altTab.js b/js/ui/altTab.js
index 62df018..b675be7 100644
--- a/js/ui/altTab.js
+++ b/js/ui/altTab.js
@@ -1103,10 +1103,8 @@ ThumbnailList.prototype = {
 
 function _drawArrow(area, side) {
     let themeNode = area.get_theme_node();
-    let borderColor = new Clutter.Color();
-    themeNode.get_border_color(side, borderColor);
-    let bodyColor = new Clutter.Color();
-    themeNode.get_foreground_color(bodyColor);
+    let borderColor = themeNode.get_border_color(side);
+    let bodyColor = themeNode.get_foreground_color();
 
     let [width, height] = area.get_surface_size ();
     let cr = area.get_context();



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