[gnome-documents] sidebar: update to new GTK+ annotations



commit ab38d70ad48ccbfd2e9beb84159eeb7ea98c7dca
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Nov 8 10:37:34 2011 -0500

    sidebar: update to new GTK+ annotations
    
    GtkSymbolicColor constructors are now marked as such; use their new form
    in the sidebar view.

 src/sidebar.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/sidebar.js b/src/sidebar.js
index ac3dabc..66f1eb5 100644
--- a/src/sidebar.js
+++ b/src/sidebar.js
@@ -336,7 +336,7 @@ SidebarView.prototype = {
         let context = this._treeView.get_style_context();
         let fgColor = context.get_color(Gtk.StateFlags.NORMAL);
         let symbolicColor = Gtk.SymbolicColor.new_literal(fgColor);
-        let shade = symbolicColor.new_shade(1.50);
+        let shade = Gtk.SymbolicColor.new_shade(symbolicColor, 1.50);
 
         [ res, fgColor ] = shade.resolve(null);
 
@@ -375,7 +375,7 @@ SidebarView.prototype = {
         let context = this._treeView.get_style_context();
         let fgColor = context.get_color(Gtk.StateFlags.NORMAL);
         let symbolicColor = Gtk.SymbolicColor.new_literal(fgColor);
-        let shade = symbolicColor.new_shade(0.60);
+        let shade = Gtk.SymbolicColor.new_shade(symbolicColor, 0.60);
 
         [ res, fgColor ] = shade.resolve(null);
 
@@ -403,7 +403,7 @@ SidebarView.prototype = {
         let context = this._treeView.get_style_context();
         let bgColor = context.get_background_color(Gtk.StateFlags.NORMAL);
         let symbolicColor = Gtk.SymbolicColor.new_literal(bgColor);
-        let shade = symbolicColor.new_shade(0.95);
+        let shade = Gtk.SymbolicColor.new_shade(symbolicColor, 0.95);
 
         [ res, bgColor ] = shade.resolve(null);
 



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