Really strange, it produced: $VAR1 = 623; $VAR2 = -20; Why it provides two pointer for one canvas object? Why it is put on a timeout? > Subject: Re: Goo::Canvas fails to get pointer > From: mario kemper googlemail com > To: jiandingzhe msn com > CC: gtk-perl-list gnome org > Date: Fri, 7 May 2010 13:55:08 +0200 > > 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"; > > > > ################################# > > > > Hotmail: Powerful Free email with security by Microsoft. Get it now. |