Dolda2000 GitWeb
/
automanga.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1aa34ec
)
Fixed progressbar bug.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 17 May 2013 05:54:41 +0000
(07:54 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 17 May 2013 05:54:41 +0000
(07:54 +0200)
manga/reader.py
patch
|
blob
|
blame
|
history
diff --git
a/manga/reader.py
b/manga/reader.py
index
6694ecd
..
51d2779
100644
(file)
--- a/
manga/reader.py
+++ b/
manga/reader.py
@@
-295,11
+295,12
@@
class msgproc(object):
self._prog = None
def prog(self, p):
- if p is not None and self._prog is None:
- self._prog = gtk.ProgressBar()
+ if p is not None:
+ if self._prog is None:
+ self._prog = gtk.ProgressBar()
+ self.hlay.pack_start(self._prog, padding=5)
+ self._prog.show()
self._prog.set_fraction(p)
- self.hlay.pack_start(self._prog, padding=5)
- self._prog.show()
elif p is None and self._prog is not None:
self.hlay.remove(self._prog)
self._prog = None