Re: Bug in Gtk2::ToggleButton->new_from_stock()



muppet wrote:

Your call to Gtk2::ToggleButton->new_from_stock() is resolving to  
Gtk2::Button::new_from_stock(), because ToggleButton isa Button, and  
there is no gtk_toggle_button_new_from_stock().

Hmm, somewhat unexpected for a Perl programmer, but Ok ;)

So, the solution is to take advantage of Gtk2::Button::set_use_stock 
(), like this:
[...]

Thanks for the hint, I'll do it that way.

Regards,

Joern

-- 
sub i($){print$_[0]}*j=*ENV;sub w($){sleep$_[0]}sub _($){i"$p:$c> ",w+01
,$_=$_[0],tr;i-za-h,;a-hi-z ;,i$_,w+01,i"\n"}$|=1;$f='HO';($c=$j{PWD})=~
s+$j{$f."ME"}+~+;$p.="$j{USER}\@".`hostname`;chop$p;_"kl",$c='~',_"zu,".
"-zn,*",_"#,epg,lw,gwc,mfmkcbm,cvsvwev,uiqt,kwvbmvb?",i"$p:$c> ";w+1<<07

Attachment: pgp3rio4c6zNY.pgp
Description: PGP signature



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