Re: signals for line numbers in statusbar



Olivier Sessink <olivier lx student wau nl> writes:

I want to show the current line number of the "insert" mark from the gtk-2
text widget. Which signals should I use to update the number? The
"move-cursor" seems to be the most appropriate, but it is not emitted when
the user uses the mouse to change the line, or if the user just hits the
enter button. Any ideas?


"move_cursor" is just a keybinding signal.

You want mark_set or whatever on GtkTextBuffer, and compare the mark
to gtk_text_buffer_get_insert_mark().

Havoc



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