Chris Arnold wrote:
I am looking for your patch from above.

Ok, here we go: Download the patch that is attached to this mail then cd into your SVN checkout. Now, apply the patch with the command

patch -p0 < /path/to/gpodder/r497_draw-fallback.patch

It should say something like "patching file src/gpodder/draw.py". After that, run gPodder from your SVN checkout with the command "make test" and see if the problem re-appears.

This patch adds an empty png as fallback when the pill pixbuf cannot be generated. We still have to find another way to generate the pixbuf then.

Thomas
Index: src/gpodder/draw.py
===================================================================
--- src/gpodder/draw.py	(revision 497)
+++ src/gpodder/draw.py	(working copy)
@@ -127,7 +127,10 @@
 def draw_pill_pixbuf(left_text, right_text):
     s = draw_text_pill(left_text, right_text)
     sio = StringIO.StringIO()
-    s.write_to_png(sio)
+    try:
+        s.write_to_png(sio)
+    except:
+        sio.write('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A\n/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cMEQkqIyxn3RkAAAAZdEVYdENv\nbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAADUlEQVQI12NgYGBgAAAABQABXvMqOgAAAABJ\nRU5ErkJggg==\n'.decode('base64'))
 
     pbl = gtk.gdk.PixbufLoader()
     pbl.write(sio.getvalue())
_______________________________________________
gpodder-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-devel

Reply via email to