Gtk2::TextBuffer 'changed' signal
- From: Daniel Kasak <dkasak nusconsulting com au>
- To: gtk-perl-list gnome org
- Subject: Gtk2::TextBuffer 'changed' signal
- Date: Fri, 25 Feb 2005 10:22:08 +1100
Hi all.
I've just noticed that I'm not getting signals fired on a
Gtk2::TextView's TextBuffer's changed signal.
I have a GtkTextView widget on a Glade form.
I do the following:
$form->get_widget("MyTextView")->get_buffer->signal_connect ( changed =>
\&some_sub );
Then I have:
sub some_sub {
print "Hi there!\n";
}
some_sub never fires when I edit the text in the textview. It used to, I
swear. I've tried with gtk2-perl / glib-perl 1.0.61 and 1.0.42 ( with
gtk+ 2.6.2 ).
I've inspected $form->get_widget("MyTextView") and
$form->get_widget("MyTextView")->get_buffer in a debugger - they are a
Gtk2::TextView and Gtk2::TextBuffer respectively. No errors are thrown.
The above is the correct way of doing it, right?
What's going on?
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: dkasak nusconsulting com au
website: http://www.nusconsulting.com.au
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]