[Gtk-sharp-list] events and TextView/Buffer
Miguel de Icaza
08 Sep 2002 13:36:40 -0400
> The way I'm trying to handle the event in my code is with a function
> that looks like this:
> private void TextWasInserted(object sender, InsertAtCursorArgs e)
> Console.WriteLine("Event handled");
> and then I try and hook in the event handler with:
> view.InsertAtCursor += new InsertAtCursorHandler(TextWasInserted);
> However, nothing happens. Should this work? Is this the wrong approach?
> I've tried similar things and attempted event handling on the TextBuffer
> as well, but events on the TextBuffer give Glib-GObject-CRITICAL
> messages on the console.
Please provide more information about the error.
I believe this is invoked only when you call the functions from the C
code. What are you trying to do?
My guess is that you want the "changed" signal, and not really the