X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fusr%2Flib%2Fhildon-desktop%2Fcomicwidget.py;h=d81dea0231d653be7888deefb0006d5e0067c9ed;hb=47dd2f2a076eb3aa4ea0ca841a46180a00a9d9fa;hp=c4c822873292d9eb93ebce5d6e97d40661b4a968;hpb=2c5d4b523e80bd9d81ad66b9c89c2400b6466fa1;p=comic-widget diff --git a/src/usr/lib/hildon-desktop/comicwidget.py b/src/usr/lib/hildon-desktop/comicwidget.py index c4c8228..d81dea0 100644 --- a/src/usr/lib/hildon-desktop/comicwidget.py +++ b/src/usr/lib/hildon-desktop/comicwidget.py @@ -18,8 +18,8 @@ socket.setdefaulttimeout(30) supports_alpha = False # LOGGING! -# sys.stdout = open('/home/user/.comic-widget/output_log.txt', 'a') -# sys.stderr = open('/home/user/.comic-widget/error_log.txt', 'a') +# sys.stdout = open('/home/user/.comic-widget/output_log.txt', 'a', 0) +sys.stderr = open('/home/user/.comic-widget/error_log.txt', 'a', 0) # print "Start logging!" # constants. dbfile is the location of the csv @@ -1315,7 +1315,8 @@ class ComicHomePlugin(hildondesktop.HomePluginItem): height = int(self.sizes['height']) picwidth = width - 2 maxheight = height - 48 - + if os.path.isfile(filename) == False: + filename = "/opt/comic-widget/images/next0-48x48.png" pixbuf = gtk.gdk.pixbuf_new_from_file(filename) parent_buf = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, pixbuf.get_has_alpha(), 8, width, maxheight) parent_buf.fill(0xffffffff)