[gnome-games/gnome-3-0] sudoku: Import Gdk and fix color parsing



commit 62008755e822301ea16277f916df7d0fda7e8300
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date:   Mon May 2 21:54:20 2011 +0200

    sudoku: Import Gdk and fix color parsing

 gnome-sudoku/src/lib/gsudoku.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/gsudoku.py b/gnome-sudoku/src/lib/gsudoku.py
index 51e4597..ef434ac 100644
--- a/gnome-sudoku/src/lib/gsudoku.py
+++ b/gnome-sudoku/src/lib/gsudoku.py
@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-from gi.repository import Gtk,GObject
+from gi.repository import Gtk,Gdk,GObject
 import colors
 import math
 import random
@@ -55,7 +55,7 @@ class SudokuNumberGrid (Gtk.AspectFrame):
     def set_bg_color (self, color):
         if type(color) == str:
             try:
-                color = Gdk.color_parse(color)
+                color = Gdk.color_parse(color)[1]
             except:
                 print 'set_bg_color handed Bad color', color
                 return



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