Showing row and column numbers with GtkTextView



Hi,

I'm trying to show the current row and column number in a statusbar below a
TextView screen. I get it to work fine for keystrokes, but can't seem to get
it to work for a reposition of the cursor with a mouse click.   If I use a
"button-press-event" signal, I can get and show the row and column, but I
loose all other button press functionality (i.e. placing the cursor or making a selection). I have tried g_signal_connect_after, but that doesn't seem to even pick up the signal. If I use a "button-release-event, it does what I want
(i.e. shows the numbers and places the cursor) but every mouse move after
that makes a selection.

How do I do what I want to do - capture the row and column when the user
clicks the mouse - without hindering the normal mouse events?

Bill



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