Re: GTK2::Button retrieved from Tie::IxHash hash value does not render

2011-08-03 Thread Torsten Schoenfeld
On 02.08.2011 23:45, Torsten Schoenfeld wrote: On 24.07.2011 18:56, Roderich Schupp wrote: Maybe gperl_get_object and gperl_get_object_check need SvGETMAGIC(sv); *before* checking SvROK(sv)? Yes, that's exactly the solution. And we have gperl_sv_is_defined for that. When I added it, I

Re: GTK2::Button retrieved from Tie::IxHash hash value does not render

2011-08-03 Thread Torsten Schoenfeld
On 03.08.2011 05:16, Sergei Steshenko wrote: Does this mean there's going to be Gtk2 release soon ? Hopefully. Is there a prior Gtk2 release not affected by this problem ? I don't think so. ___ gtk-perl-list mailing list gtk-perl-list@gnome.org

Re: GTK2::Button retrieved from Tie::IxHash hash value does not render

2011-08-02 Thread Torsten Schoenfeld
On 24.07.2011 18:56, Roderich Schupp wrote: Maybe gperl_get_object and gperl_get_object_check need SvGETMAGIC(sv); *before* checking SvROK(sv)? Yes, that's exactly the solution. And we have gperl_sv_is_defined for that. When I added it, I audited each occurrence of SvOK, but

Re: GTK2::Button retrieved from Tie::IxHash hash value does not render

2011-08-02 Thread Sergei Steshenko
--- On Tue, 8/2/11, Torsten Schoenfeld kaffeeti...@gmx.de wrote: From: Torsten Schoenfeld kaffeeti...@gmx.de Subject: Re: GTK2::Button retrieved from Tie::IxHash hash value does not render To: gtk-perl-list@gnome.org Date: Tuesday, August 2, 2011, 2:45 PM On 24.07.2011 18:56, Roderich

Re: GTK2::Button retrieved from Tie::IxHash hash value does not render

2011-07-24 Thread Roderich Schupp
On Sat, Jul 23, 2011 at 1:35 AM, Kevin Ryde use...@zip.com.au wrote: Clears as in runs the magic I suppose, so as to reach the ixhash FETCH().  Does that mean gperl_get_object() and friends ought to SvGETMAGIC() or something before looking into an sv? Dunno. I instrumented

Re: GTK2::Button retrieved from Tie::IxHash hash value does not render

2011-07-24 Thread Kevin Ryde
Roderich Schupp roderich.sch...@googlemail.com writes: Maybe gperl_get_object and gperl_get_object_check need SvGETMAGIC(sv); *before* checking SvROK(sv)? Yes, I think so. Always seems a bit fraught enquiring into the nature of an sv with those OK or TYPE macros. If I intentionally

Re: GTK2::Button retrieved from Tie::IxHash hash value does not render

2011-07-22 Thread Roderich Schupp
On Thu, Jul 21, 2011 at 7:29 PM, Emmanuel Rodriguez emmanuel.rodrig...@gmail.com wrote: It seems that Tie::IxHash is storing the string representation of the buttons instead of the real values. No. Otherwise $button{qbimport}-signal_connect( clicked = \qbimport ); would already have died.

Re: GTK2::Button retrieved from Tie::IxHash hash value does not render

2011-07-22 Thread Emmanuel Rodriguez
On Fri, Jul 22, 2011 at 08:45, Roderich Schupp roderich.sch...@googlemail.com wrote: On Thu, Jul 21, 2011 at 7:29 PM, Emmanuel Rodriguez emmanuel.rodrig...@gmail.com wrote: It seems that Tie::IxHash is storing the string representation of the buttons instead of the real values. No. Otherwise

Re: GTK2::Button retrieved from Tie::IxHash hash value does not render

2011-07-22 Thread Roderich Schupp
On Fri, Jul 22, 2011 at 10:03 AM, Emmanuel Rodriguez emmanuel.rodrig...@gmail.com wrote: There's something odd going on there with the reference to the button. Right. I guess that $vbox-add is an XS function? You have to do extra work to correctly access tied magic stuff from XS. Here's what

Re: GTK2::Button retrieved from Tie::IxHash hash value does not render

2011-07-22 Thread Kevin Ryde
Roderich Schupp roderich.sch...@googlemail.com writes: That's why assigning the value to a dummy variable works: it clears the tie magic. Clears as in runs the magic I suppose, so as to reach the ixhash FETCH(). Does that mean gperl_get_object() and friends ought to SvGETMAGIC() or something

Re: GTK2::Button retrieved from Tie::IxHash hash value does not render

2011-07-21 Thread Emmanuel Rodriguez
On Thu, Jul 21, 2011 at 16:59, Terrence Brannon scheme...@gmail.com wrote: The simple program below: use Gtk2 -init; use Tie::IxHash; # Gtk2-init; works if you didn't use -init on use my $window = Gtk2::Window-new('toplevel'); my $vbox = Gtk2::VBox-new (FALSE, 0); $window-add($vbox); #tie