After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 57887 - GLib 2.0
GLib 2.0
Status: RESOLVED WONTFIX
Product: libgda
Classification: Other
Component: Client library
0.2.90
Other Linux
: Normal normal
: GNOME-1-x
Assigned To: Rodrigo Moya
Rodrigo Moya
Depends on:
Blocks:
 
 
Reported: 2001-07-22 19:25 UTC by Rodrigo Moya
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Rodrigo Moya 2001-07-22 19:25:41 UTC
We should start shipping a GLib 2.0-based version of libgda and gnome-db
(or at least prepare it) as soon as possible. So, the quickest way would be
to provide, in the file libgda/lib/gda-common/gda-common-defs.h #defines
for all the functions, macros, data types that are different for GObject
and GtkObject, and use these #define's everywhere so that the same source
code is used to compile both versions.

So, for example:

#if defined(HAVE_GOBJECT)
#  define gda_object_unref g_object_unref
#  define gda_object_ref g_object_ref
#  define GdaType GType
#else
#  define gda_object_unref gtk_object_unref
#  define gda_object_ref gtk_object_ref
#  define GdaType GtkType
#endif
Comment 1 Rodrigo Moya 2001-07-22 22:20:30 UTC
No, don't do this. I've now created a new CVS branch
(gnome-2-0-branch) where all the glib-2.0 related code should go
Comment 2 Rodrigo Moya 2001-11-12 16:27:26 UTC
Setting all bugs to the GNOME-1-x milestone. A review is needed, because some of
these bugs may be perfectly moved to the LIBGDA-1-0 milestone