[pygobject] [gtk-demo] iconviewedit.py: fix for Gdk.color_parse API breakage caused by improved GDK overrides



commit d29cad6976a80862e1fc590d3e7d190e8a234866
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date:   Wed Aug 24 12:19:02 2011 +0200

    [gtk-demo] iconviewedit.py: fix for Gdk.color_parse API breakage caused by improved GDK overrides

 demos/gtk-demo/demos/Icon View/iconviewedit.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/demos/gtk-demo/demos/Icon View/iconviewedit.py b/demos/gtk-demo/demos/Icon View/iconviewedit.py
index 9233b09..a137bd3 100644
--- a/demos/gtk-demo/demos/Icon View/iconviewedit.py	
+++ b/demos/gtk-demo/demos/Icon View/iconviewedit.py	
@@ -59,12 +59,12 @@ class IconviewEditApp:
         renderer.props.editable = True
         renderer.connect('edited', self.edited, icon_view)
         icon_view.add_attribute(renderer, 'text', self.COL_TEXT)
-        
+
         self.window.add(icon_view)
 
         self.window.show_all()
 
-    def set_cell_color (self, 
+    def set_cell_color (self,
                         cell_layout,
 	                    cell,
 		                tree_model,
@@ -73,7 +73,7 @@ class IconviewEditApp:
 
          # FIXME return single element instead of tuple
          text = tree_model.get(iter_, self.COL_TEXT)[0]
-         color = Gdk.color_parse(text)[1]
+         color = Gdk.color_parse(text)
          pixel = 0
          if color is not None:
              pixel = \



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