Commit a3eb5c7d authored by Paolo Borelli's avatar Paolo Borelli

Fix to match latest gtk annotations

parent 6306dd73
......@@ -76,8 +76,7 @@ def update_statusbar(buffer, statusbar):
statusbar.pop(0)
count = buffer.get_char_count()
iter = Gtk.TextIter()
buffer.get_iter_at_mark(iter, buffer.get_insert())
iter = buffer.get_iter_at_mark(buffer.get_insert())
row = iter.get_line()
col = iter.get_line_offset()
msg = 'Cursor at row %d column %d - %d chars in document' % (row, col, count)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment