Re: [gtk-vnc-devel] Error on GLib



On Dom, 2008-01-27 at 11:20 -0600, Anthony Liguori wrote:
> Jonh Wendell wrote:
> > Hi, Anthony. I didn't work. Same message here :(
> >   
> 
> I've attached a patch which fixes a problem.  The problem is that the 
> vnc-auth-credential signal is being marshaled with the PARAM type.  The 
> PARAM type expects a GParamSpec * which is used to refer to a parameter 
> that's part of the object.  Since we're passing a GValueArray, this is 
> clearly wrong.  The only reason this probably worked with older gtk's is 
> that there was no checking happening so the marshaling function 
> essentially was just marshaling a pointer.  The only thing I can think 
> to do to avoid breaking the ABI is to switch the marshaling function to 
> a POINTER type.  This is gives us the behavior we had before.  I think 
> GTK avoids passing lists of things to signals.  Perhaps the signal 
> interface shouldn't have taken any parameters and relied on calling 
> methods in the object to determine what authentication information was 
> needed.
> 
> Regards
> 
> Anthony LIguori


Thanks, Anthony. The patch worked, no more warnings ;)

Cheers,
-- 
Jonh Wendell
www.bani.com.br






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