summaryrefslogtreecommitdiff
path: root/portato/gui/gtk/views.py
diff options
context:
space:
mode:
authorNecoro <>2008-01-25 10:22:45 +0000
committerNecoro <>2008-01-25 10:22:45 +0000
commit43bb555d0925f447a89b0e3559d63704e4bafea0 (patch)
treeb16aa6a018e9304a878492cf07e33e2aaafa300e /portato/gui/gtk/views.py
parentd46f2db937f04c6c366816273aaf0209f742a502 (diff)
downloadportato-43bb555d0925f447a89b0e3559d63704e4bafea0.tar.gz
portato-43bb555d0925f447a89b0e3559d63704e4bafea0.tar.bz2
portato-43bb555d0925f447a89b0e3559d63704e4bafea0.zip
r725@Devoty: necoro | 2008-01-25 11:21:07 +0100
small bug fixes
Diffstat (limited to '')
-rw-r--r--portato/gui/gtk/views.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/portato/gui/gtk/views.py b/portato/gui/gtk/views.py
index 7c5af3d..db1f054 100644
--- a/portato/gui/gtk/views.py
+++ b/portato/gui/gtk/views.py
@@ -132,12 +132,11 @@ class LogView (logging.Handler):
logging.getLogger("portatoLogger").addHandler(self)
def emit (self, record):
- iter = self.buf.get_end_iter()
for lvl, name, color in self.colors:
if lvl == -1 or record.levelno <= lvl:
tag = "log_%s" % name
break
- self.buf.insert_with_tags_by_name(iter, "* ", tag)
- self.buf.insert_at_cursor(record.getMessage()+"\n")
+ self.buf.insert_with_tags_by_name(self.buf.get_end_iter(), "* ", tag)
+ self.buf.insert(self.buf.get_end_iter(), record.getMessage()+"\n")