Problems with XmHTML and PERL-GTK 0.6123



I am trying to make the signal 'activate' work in a XmHTML Link, using Perl-Gtk.
The following code "starts" the XmHTML widget:

  $main_html = new Gtk::XmHTML;
  $vbox_main->add($main_html);
  $main_html->show;
  $main_html->signal_connect('activate' => \&click);  

And, this is the function to be called.

sub click {
 my ($widget) = @_;
 print "lixo\n";
}

I just followed the example from the "make test"'s "HTML test" in the PERL-GTK 0.6123 Module.
When I click in the link,  get the following error:

Cannot set argument of type gpointer (fundamental type gpointer) at ./cmc.pl line 509.

BTW, the "HTML test" works!!!

Does some one have a clue?

Best Regards,
Raul Dias



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