Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in gnome-extra/gnome-games/files: gnome-games-3.2.1-sudoku-borders.patch gnome-games-3.2.1-pygobject-3.0.3.patch
Date: Wed, 04 Jan 2012 23:30:20
Message-Id: 20120104233010.39CB72004C@flycatcher.gentoo.org
1 tetromino 12/01/04 23:30:10
2
3 Added: gnome-games-3.2.1-sudoku-borders.patch
4 gnome-games-3.2.1-pygobject-3.0.3.patch
5 Log:
6 Fix py-compile idiom for automake-1.11.2 compatibility (bugs #396585, #397335). Move gnome2_src_prepare after eautoreconf. Revbump to fix sudoku set_bg_color traceback and pygobject-3.0.3 crashes (bug #397501), and to not install libgames-support-gi.a.
7
8 (Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.1 gnome-extra/gnome-games/files/gnome-games-3.2.1-sudoku-borders.patch
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/gnome-games/files/gnome-games-3.2.1-sudoku-borders.patch?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/gnome-games/files/gnome-games-3.2.1-sudoku-borders.patch?rev=1.1&content-type=text/plain
15
16 Index: gnome-games-3.2.1-sudoku-borders.patch
17 ===================================================================
18 From a91b3962d121f4042e7029e30a5c1423dfb0c130 Mon Sep 17 00:00:00 2001
19 From: Edward Sheldrake <ejsheldrake@×××××.com>
20 Date: Sat, 8 Oct 2011 14:42:32 +0100
21 Subject: [PATCH] sudoku: fix borders
22
23 Fixes python traceback printed to terminal that ends with:
24 TypeError: 'Color' object does not support indexing
25
26 Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=658519
27 ---
28 gnome-sudoku/src/lib/gsudoku.py | 2 +-
29 1 files changed, 1 insertions(+), 1 deletions(-)
30
31 diff --git a/gnome-sudoku/src/lib/gsudoku.py b/gnome-sudoku/src/lib/gsudoku.py
32 index 79a0e21..b222f95 100644
33 --- a/gnome-sudoku/src/lib/gsudoku.py
34 +++ b/gnome-sudoku/src/lib/gsudoku.py
35 @@ -56,7 +56,7 @@ class SudokuNumberGrid (Gtk.AspectFrame):
36 def set_bg_color (self, color):
37 try:
38 if type(color) == str:
39 - color = Gdk.color_parse(color)[1]
40 + color = Gdk.color_parse(color)
41 color = Gdk.RGBA(color.red/65535.0, color.green/65535.0, color.blue/65535.0)
42 else:
43 color = Gdk.RGBA(*color)
44 --
45 1.7.8.1
46
47
48
49
50 1.1 gnome-extra/gnome-games/files/gnome-games-3.2.1-pygobject-3.0.3.patch
51
52 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/gnome-games/files/gnome-games-3.2.1-pygobject-3.0.3.patch?rev=1.1&view=markup
53 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/gnome-games/files/gnome-games-3.2.1-pygobject-3.0.3.patch?rev=1.1&content-type=text/plain
54
55 Index: gnome-games-3.2.1-pygobject-3.0.3.patch
56 ===================================================================
57 From 8ab5a3a28281e6b1b649d9ef93628b3433ddd887 Mon Sep 17 00:00:00 2001
58 From: "John (J5) Palmieri" <johnp@××××××.com>
59 Date: Mon, 2 Jan 2012 13:39:05 -0500
60 Subject: [PATCH] fix type check so gnome-sudoku works with pygobject >= 3.0.3
61
62 gnome-sudoku was using if type(grid) == str to check if it needed
63 to convert the game board to a list. Unicode fixes in the latest
64 pygobject returns unicode strings for any string stored in a
65 TreeStore. The fix was to correctly check for any string using
66 isinstance(grid, basestring)
67
68 Note this will not work in python3 so needs to be looked at when
69 porting
70 ---
71 gnome-sudoku/src/lib/sudoku.py | 2 +-
72 1 files changed, 1 insertions(+), 1 deletions(-)
73
74 diff --git a/gnome-sudoku/src/lib/sudoku.py b/gnome-sudoku/src/lib/sudoku.py
75 index a345593..7d28608 100644
76 --- a/gnome-sudoku/src/lib/sudoku.py
77 +++ b/gnome-sudoku/src/lib/sudoku.py
78 @@ -130,7 +130,7 @@ class SudokuGrid(object):
79 for n, col in enumerate([[(x, y) for y in range(self.group_size)] for x in range(self.group_size)]):
80 self.col_coords[n] = col
81 if grid:
82 - if type(grid) == str:
83 + if isinstance(grid, basestring):
84 g = re.split("\s+", grid)
85 side = int(math.sqrt(len(g)))
86 grid = []
87 --
88 1.7.8.2