Re: can't signal_connect in windows.
- From: "muppet" <scott asofyet org>
- To: gtk-perl-list gnome org
- Subject: Re: can't signal_connect in windows.
- Date: Mon, 18 Jun 2007 13:01:45 -0400 (EDT)
Dirk Koopman wrote:
Take this snippet of code.
use Gtk2 '-init';
$main = new Gtk2::Window('toplevel');
$main->signal_connect('delete_event', sub { Gtk2->main_quit; });
$main->show_all;
Gtk2->main;
I get: Can't locate object method "signal_connect" via package
"Gtk2::Window".
So Gtk2 has initialised, $main is a ref to Gtk2::Window, what have I
missed out (apart from the other 600 lines of code)?
This smells like the problems we had after (i forget which version) added
GInitiallyUnowned to the ancestry of GtkObject. What versions of glib, gtk+,
Glib, and Gtk2 are you using?
(Long story short, use the newest Gtk2-Perl you can find.)
--
muppet <scott at asofyet dot org>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]