"changed" signal
- From: Ari Jolma <ari jolma tkk fi>
- To: gtk-perl-list gnome org
- Subject: "changed" signal
- Date: Sat, 05 Mar 2005 16:22:55 +0200
Hello,
I have this kind of code:
my $h = new_with_range Gtk2::HScale (0,10,1);
$h->signal_connect("changed" => sub {print "changed\n" });
$h->signal_connect("value-changed" => sub {print"value changed\n"} );
this gives a warning: signal "changed" is invalid
my $h = new_with_range Gtk2::HScale (0,10,1);
$h->get_adjustment->signal_connect("changed" => sub {print "changed\n" });
$h->signal_connect("value-changed" => sub {print"value changed\n"} );
this does not give a warning but the subroutine is never called, even
though I resize the scale (it is in a window)
In another place (within a custom widget I'm building) I get the changed
sub called but only once.
Any ideas?
Ari
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]