You could try adding a handler to the key_press_event signal, and calling
the select_region() or set_position() methods from that handler.  This
should be called before the GtkText's event handler routine.

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


On Thu, 8 Jul 1999 [EMAIL PROTECTED] wrote:

> I build a brace matcher and want to show the expression of the closed
> braces. This is working, but after the next key the selected chars are 
> deleted from the GtkText widget. I have tried to disclaim it, but this 
> does not prevent the deletion. How do I deselect something, or should
> this be done by foot. (changing the bg color for these strings and build
> a new line)
> 
> Thanks,
> 
> __Janko
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
> 

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to