Re: [gtk2-perl-xs] Setting a cursor on a label



"muppet" wrote:

the GdkWindow needs a parent!  add the event box to a container before you try
to realize it.

Ok, indeed that was a problem. The container, I added the eventbox to, 
was added to its parent later, so when I tried to realize the eventbox,
it wasn't connected to a toplevel window. I changed that and now dont't
get any warnings or crashes, but the cursor simply doesn't show up...

the realize doesn't work unless the widget has a parent, and the cursor won't
show up unless the window was realized before setting the cursor.

I think I meet these conditions, but it still doesn't work. It's 
diffciult to post example code, the layout is somewhat more complex than
just a label in a toplevel window ;) Anyhow an idea what else could be 
the problem?

Thanks,

Joern

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

Attachment: pgpa4Uc2VmcWI.pgp
Description: PGP signature



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