… | |
… | |
23 | use GCE::MainWindow; |
23 | use GCE::MainWindow; |
24 | use GCE::PickWindow; |
24 | use GCE::PickWindow; |
25 | |
25 | |
26 | my $w = GCE::MainWindow->new; |
26 | my $w = GCE::MainWindow->new; |
27 | |
27 | |
28 | # XXX: signals don't feel right => move this stuff to MainWindow, it should |
|
|
29 | # deal with all the stuff it does |
|
|
30 | $w->signal_connect (update_stack_view => sub { |
|
|
31 | my ($t, $x, $y, $a) = @_; |
|
|
32 | print "$x $y: " . join (',', map { $_->{_name} } @$a) . "\n"; |
|
|
33 | }); |
|
|
34 | |
|
|
35 | $w->show_all; |
28 | $w->show_all; |
36 | |
29 | |
37 | Gtk2->main; |
30 | Gtk2->main; |
38 | |
31 | |
39 | =head1 AUTHOR |
32 | =head1 AUTHOR |