RE: can't signal_connect in windows.



Hi,
 
This code works for me without problem (win32 / activeperl).
 
You might want to check if the version for which perl Gtk2 was compiled and the gtk+ version installed match.
Version mismatch has caused me similar bugs in the past.
 
Regards,
 
Jaap <pardus cpan org>

________________________________

From: gtk-perl-list-bounces gnome org on behalf of Dirk Koopman
Sent: Mon 6/18/2007 6:07 PM
To: gtk-perl-list gnome org
Subject: can't signal_connect in windows.



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)?
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list





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