Gtk2::TextView and insert_at_cursor signal

Hi all.

I just noticed that Gtk2::TextView doesn't have a 'changed' signal ( correct me if I'm wrong here ). So to emulate it, I'm using both the 'insert_at_cursor' and 'delete_from_cursor' signals. The 'delete_from_cursor' fires when expected. The 'insert_at_cursor' doesn't ( ie when I click in the TextView and type some text ).


$textview->signal_connect( insert_at_cursor => sub { print "inserting\n"; } ); $textview->signal_connect( delete_from_cursor => sub { print "deleting\n; } );

What's up?


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