Updating Line Number on cursor move



Hi all,

I'm writing an app which displays the current line number on the
status bar,  currently i'm attaching the TextBuffer's signal_mark_set,
so everytime the user moves the cursor the line number updates,
however it doesn't update for text inserts. I presume this is because
the mark is not being set, just moved because of its gravity.

I am aware that I could use the signal_changed signal aswell, however
I'm sure there should be a nicer solution than this.

Thanks in advance.
Rob.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]