r16628 - in /desktop/unstable/gnome-games/debian: changelog patches/07_sudoku_tempfile.patch patches/series
joss at users.alioth.debian.org
joss at users.alioth.debian.org
Wed Jul 23 15:55:34 UTC 2008
Author: joss
Date: Wed Jul 23 15:55:34 2008
New Revision: 16628
URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=16628
Log:
07_sudoku_tempfile.patch: new patch. Do not use temporary files to
generate thumbnails. Closes: #489872.
Added:
desktop/unstable/gnome-games/debian/patches/07_sudoku_tempfile.patch
Modified:
desktop/unstable/gnome-games/debian/changelog
desktop/unstable/gnome-games/debian/patches/series
Modified: desktop/unstable/gnome-games/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-games/debian/changelog?rev=16628&op=diff
==============================================================================
--- desktop/unstable/gnome-games/debian/changelog (original)
+++ desktop/unstable/gnome-games/debian/changelog Wed Jul 23 15:55:34 2008
@@ -1,3 +1,10 @@
+gnome-games (1:2.22.3-2) UNRELEASED; urgency=low
+
+ * 07_sudoku_tempfile.patch: new patch. Do not use temporary files to
+ generate thumbnails. Closes: #489872.
+
+ -- Josselin Mouette <joss at debian.org> Wed, 23 Jul 2008 17:29:10 +0200
+
gnome-games (1:2.22.3-1) unstable; urgency=low
* New upstream bugfix release:
Added: desktop/unstable/gnome-games/debian/patches/07_sudoku_tempfile.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-games/debian/patches/07_sudoku_tempfile.patch?rev=16628&op=file
==============================================================================
--- desktop/unstable/gnome-games/debian/patches/07_sudoku_tempfile.patch (added)
+++ desktop/unstable/gnome-games/debian/patches/07_sudoku_tempfile.patch Wed Jul 23 15:55:34 2008
@@ -1,0 +1,28 @@
+Debian #489872
+GNOME #544375
+
+Index: gnome-games-2.22.1.1/gnome-sudoku/src/lib/sudoku_thumber.py
+===================================================================
+--- gnome-games-2.22.1.1.orig/gnome-sudoku/src/lib/sudoku_thumber.py 2008-07-23 17:27:39.201661315 +0200
++++ gnome-games-2.22.1.1/gnome-sudoku/src/lib/sudoku_thumber.py 2008-07-23 17:28:01.201647626 +0200
+@@ -1,6 +1,5 @@
+ import cairo
+ import pango
+-import tempfile
+ import gtk
+
+ SUDOKU_SIZE = 9
+@@ -114,10 +113,10 @@
+
+ def make_pixbuf (sudoku, played, highlight_color):
+ surf = make_image_surface(sudoku,played,highlight_color)
+- fn = tempfile.mktemp('.png')
+- surf.write_to_png(fn)
++ pixbuf = gtk.gdk.pixbuf_new_from_data(surf.get_data(), gtk.gdk.COLORSPACE_RGB,
++ True, 8, SIZE, SIZE, SIZE*4)
+ del surf
+- return gtk.gdk.pixbuf_new_from_file(fn)
++ return pixbuf
+
+ if __name__ == '__main__':
+ make_image_surface(sudoku,played,
Modified: desktop/unstable/gnome-games/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-games/debian/patches/series?rev=16628&op=diff
==============================================================================
--- desktop/unstable/gnome-games/debian/patches/series (original)
+++ desktop/unstable/gnome-games/debian/patches/series Wed Jul 23 15:55:34 2008
@@ -2,4 +2,5 @@
04_ggz_m4_madness.patch
05_maintainer_mode.patch
06_ggzd_directory.patch
+07_sudoku_tempfile.patch
70_autotools.patch
More information about the pkg-gnome-commits
mailing list