From f882560ffca81122eb34a1d23d511b61b285ca78 Mon Sep 17 00:00:00 2001 From: Marcus W Date: Thu, 4 Feb 2010 00:25:15 +0200 Subject: [PATCH] continuing on the difficult comic --- src/usr/lib/hildon-desktop/comicwidget.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/usr/lib/hildon-desktop/comicwidget.py b/src/usr/lib/hildon-desktop/comicwidget.py index 033ad47..957b52c 100644 --- a/src/usr/lib/hildon-desktop/comicwidget.py +++ b/src/usr/lib/hildon-desktop/comicwidget.py @@ -375,6 +375,7 @@ class ComicDb(): else: splt = string.split(splt[1], '/">< ', 1) prev = splt[0]; + print "got prev: " + prev splt = string.split(s, 'Previous | ', 1) if len(splt) < 2: @@ -392,12 +394,15 @@ class ComicDb(): return False splt = string.split(splt[1], ' by
', 1) + splt = string.split(splt[1], '">', 1) url = "http://www.explosm" + splt[0] splt2 = string.rsplit(url, "/", 1) filename = splt2[1] @@ -715,6 +720,7 @@ class ComicHomePlugin(hildondesktop.HomePluginItem): if scaled_buf.get_height() - (vpos + maxheight) < 0: vpos = scaled_buf.get_height() - maxheight scaled_buf.copy_area(0,vpos,478,maxheight,parent_buf,1,0) + # parent_buf.composite(scaled_buf, 0, 0, 478, maxheight, 0, 0, 478, maxheight, gtk.gdk.INTERP_BILINEAR, 0) self.imgvpos = vpos else: tmpy = maxheight - scaled_buf.get_height() @@ -723,7 +729,10 @@ class ComicHomePlugin(hildondesktop.HomePluginItem): scaled_buf.copy_area(0,0,478,scaled_buf.get_height(),parent_buf,1,tmpy) self.imgvpos = 0 +# test = parent_buf.render_pixmap_and_mask(0) + parent_buf.add_alpha(True,chr(255),chr(255),chr(255)) retimg.set_from_pixbuf(parent_buf) + print retimg.get_pixel_size() print "vpos after fixing image: " + str(self.imgvpos) return retimg -- 1.7.9.5