On Thu, 2002-08-08 at 13:05, Unai wrote: > El Jue 08 Ago 2002 17:13, Gustavo Gir�ldez escribi�: > > > How can I use the g_signal_connect_after for the button_press_event > > > on the GtkTextView? It seems that the TextView is handling the > > > event and my callback isn't called by the left mouse button. (the > > > right mouse button works ok). > > > > > Use g_signal_connect instead, and return FALSE if you didn't handle > > the event, so that the GtkTextView can continue processing. > > The problem is that i need it to be "after". It is used to get the > cursor position in a message window, and i need to get the position > after the widget places the cursor in the clicked point. Is there any > way to tell the TextView widget to pass the event to another callback > after it does his work?
Oh, in that case you should connect to the "mark_set" signal of the text buffer. The cursor position is kept in a buffer mark (named "insert"), so when the cursor moves, the mark is moved, and the signal is emitted. You can take a look at the glimmer module which does exactly this (prints the cursor position in a status bar). Cheers, Gustavo _______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
