Re: Goo::Canvas fails to get pointer



I am not exactly sure what you are trying to do, but I've attached a
working example that might lead you into the right direction.

$canvas->get_pointer is called in a Glib::Timeout.

Regards
Mario

Am Freitag, den 07.05.2010, 07:56 +0000 schrieb Xi Yang:
I'm using $canvas->get_pointer() and Glib::Object->new_from_pointer()
to store Goo::Canvas in a shared perl data structure. However, it
always return invalid value:

#################################

# This produces "-1-1", which seems to be really weird
print $canvas->get_pointer,"\n";

#################################



Attachment: gootest.pl
Description: Perl program



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