[PATCH] gnome2 remove deprecated function

Derek Atkins warlord at MIT.EDU
Mon May 24 15:03:34 EDT 2004


PLEASE CC GNUCASH-DEVEL ON ALL REPLIES!

"Brian P. Skahan" <bskahan at etria.com> writes:

> It wouldn't compile on FC2 here.  (gtk+-2.4)

Why not?  The api exists on FC2, just inside an #ifndef
G_DISABLE_DEPRECATED which we shouldn't be defining in our code
(because it would break LOTS of stuff).  How does it fail for you on
FC2?

> looks like its in gtk+2.2 (so it should work with FC1, I think)
> http://developer.gnome.org/doc/API/2.2/gobject/gobject-Standard-Parameter-and-Value-Types.html#g-value-take-object
>
> but not in gtk+-2.0.
> so much for API stability.

Heh.  Well, g_value_set_object_take_ownership() exists in glib-2.2.1
but g_value_take_object() does not.  So, we should use the former.
Granted, it's a <protected> API so I honestly don't see why we're
calling it at all.

> -Brian

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list