Re: [gnome-db] gda_holder_set_value_static_str



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Vivien,

I've got a little patch for real_gda_holder_set_const_value () which
returned the wrong values if a static GValue A, passed as parameter, had
the same inner value as the holder's GValue B.
Now it correctly returns NULL if no previous value was set.

thanks and regards,
Massimo



Vivien Malerba wrote:
> 
> 
> 2008/10/3 Massimo Cora' <maxcvs email it <mailto:maxcvs email it>>
> 
>     Hi Vivien,
> 
>     Vivien Malerba wrote:
>     > * At line 1022, the value has not changed, and the debug message says
>     > that the function returns NULL when in fact it returns
>     holder->priv->value.
> 
>     oh, sorry. It was a typo. It's corrected now. It's right that the
>     function returns the current holder->priv->value.
> 
>     > * whenever NULL is retuned and if it's an error, then g_set_error must
>     > be set.
>     >
> 
>     I set the message "Change refused by signal callback." if the change
>     signal fails to propagate. Did you mean this?
> 
>     >
>     >
>     > Yes, printing a warning if some mem leak is about to occur is a
>     good idea.
>     >
> 
>     ok to avoid problems in values management now I copy the whole GValue,
>     even if static, into a fresh new allocated GValue. User should take care
>     of freeing it. I wrote a comment on the doc of gda_holder_copy (),
>     because a g_print () there could decrease performances. Let me know if
>     it's ok like this or I'll change it.
> 
> 
> Patch applied except for the error when the change signal callback
> returned an error because there is already g_propagate_error().
> 
> Thanks,
> 
> Vivien
> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkkMgtsACgkQcfVTgMRILk208QCeMJ5sR+x9O+5ysb+wZYEBOQBk
1NgAnieoMglmKCk6iiDnb/qqkApobjfz
=1PeC
-----END PGP SIGNATURE-----

Attachment: libgda-2008-11-01.tar.bz2
Description: application/bzip



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