Move call to g_type_free_instance() here from g_object_do_finalize, since
[platform/upstream/glib.git] / gobject / ChangeLog
1 Sat Sep  9 20:04:13 2000  Owen Taylor  <otaylor@redhat.com>
2
3         * gobject.c (g_object_last_unref): Move call to
4         g_type_free_instance() here from g_object_do_finalize,
5         since g_type_free_instance() can unload the object's
6         implementation.
7
8 2000-07-27  Tor Lillqvist  <tml@iki.fi>
9
10         * gobject.c: No, don't mark glib_debug_objects for export here,
11         it's handled specially in gtktypeutils.c.
12
13         * gobject.def: Export g_type_fundamental_last (the function).
14
15 2000-07-26  Tor Lillqvist  <tml@iki.fi>
16
17         * gobject.def
18         * gobject.c: Mark glib_debug_objects for export/import as it is
19         used by GTK+.
20
21 Sun Jul 23 17:23:35 2000  Tim Janik  <timj@gtk.org>
22
23         * gtype.[hc]: make g_type_fundamental_last() a function, avoiding all
24         that extern variable clutter and avoiding further problems with thread
25         safety.
26
27 2000-07-19  Tor Lillqvist  <tml@iki.fi>
28
29         * gparam.h
30         * gvalue.h
31         * gparam.c
32         * gtype.c: Shut up Sun's picky compiler.
33
34 2000-07-14  Tor Lillqvist  <tml@iki.fi>
35
36         * gobject.def: Add g_type_get_plugin.
37
38 Thu Jul 13 02:07:54 2000  Tim Janik  <timj@gtk.org>
39
40         * gparam.c (g_param_value_defaults): default initialize the temporary
41         default value, instead of nuking the caller's value contents.
42
43 2000-07-11  Raja R Harinath  <harinath@cs.umn.edu>
44
45         * gtype.c (g_type_get_plugin): Don't return just 0 or 1.
46
47 Tue Jul 11 02:48:13 2000  Tim Janik  <timj@gtk.org>
48
49         * gtype.[hc]: removed g_type_is_dynamic() and added g_type_get_plugin().
50
51 2000-07-10  Tor Lillqvist  <tml@iki.fi>
52
53         * gobject-query.c: Include ../config.h for HAVE_UNISTD_H. Use it
54         to guard inclusion of <unistd.h>.
55
56         * gtype.h: Fix copy-paste errors in the ifdefs on how to declare a
57         variable for export. Call the macro GOBJECT_VAR.
58
59         * gtype.c: Declare _g_type_fundamental_last for export here, too.
60         (type_node_any_new): Use only constant expressions for sizeof
61         operator (for instance MSVC requires this).
62
63         * makefile.mingw.in: Define GOBJECT_COMPILATION.
64
65 Sun Jul  9 21:21:46 2000  Owen Taylor  <otaylor@redhat.com>
66
67         * genums.c: Move string.h include into the .c file
68         instead of where it was in the .h file by mistake.
69
70 Thu Jul  6 15:30:27 2000  Owen Taylor  <otaylor@redhat.com>
71
72         * Makefile.am (EXTRA_DIST): dist fixes.
73
74         * gobject.c: Add a global variable glib_debug_objects
75         (not in header file) to control object tracing.
76
77 2000-07-01  Tor Lillqvist  <tml@iki.fi>
78
79         * gobject.def: Update added and renamed entry points.
80
81         * makefile.mingw.in: Add gvaluetypes.o.
82
83 Thu Jun 29 16:02:07 2000  Owen Taylor  <otaylor@redhat.com>
84
85         * gobject.c:include string.h for memset
86         * genums.h: include string.h for strcpy
87         * gvalue.c: include string.h for memset, memcpy.
88
89 Sat Jun 24 23:03:04 2000  Tim Janik  <timj@gtk.org>
90
91         * gtype.[hc]: provide G_TYPE_CHAR, G_TYPE_UCHAR, G_TYPE_BOOLEAN,
92         G_TYPE_INT, G_TYPE_UINT, G_TYPE_LONG, G_TYPE_ULONG, G_TYPE_FLOAT,
93         G_TYPE_DOUBLE and G_TYPE_STRING fundamental types.
94         added a GTypeValueTable* pointer to GTypeInfo structure for types
95         to implement GValue handling functions.
96         GTypeValueTable contains the following members:
97           value_init(): initialize a GValue structure.
98           value_free(): free GValue structure contents (optional).
99           value_copy(): copy one GValue contents to another GValue structure of
100           collect_type: varargs collection type for the first variable argument
101           to be collected by collect_value().
102           collect_value(): variable arguments collection function (optional).
103           lcopy_type: varargs collection type for the first variable argument
104           to be location copyied by lcopy_value().
105           lcopy_value(): variable arguments location copy function (optional).
106         g_type_value_table_peek(): new function to retrive the GTypeValueTable*
107         for a type node. ValueTables get inherited from parent types, unless
108         overridden through the GTypeInfo structure. internally, GTypeValueTable
109         support means an added overhead of one pointer per static or used
110         dynamic type node.
111         g_type_add_class_cache_func(): provide a cache_func/data pair to be
112         called  prior to a type nodes last_unref() function, this can be used
113         to prevent premature class destruction. multiple installed cache_func()
114         will be chained upon last_unref() untill one of them returns TRUE.
115         the cache_func()s have to check the class id passed in to figure whether
116         they actually want to cache the class of this type (since all classes
117         are routed through the cache_func() chain).
118         g_type_remove_class_cache_func(): remove a previously installed
119         cache_func/data pair. the cache maintained by this function has to be
120         clear when calling g_type_remove_class_cache_func() to avoid leaks.
121         g_type_class_unref_uncached(): class unref function for cache_func()
122         implementations, unreferences a class omitting the cache chain (and
123         therefore unref->cache->unref->... loops).
124
125         * gvaluetypes.[hc]: provide the value setters/getters for the primitive
126         fundamental types boolean, char, uchar, int, uint, long, ulong, float,
127         double and string.
128
129         * gvalue.[hc]: provide G_TYPE_IS_VALUE() in terms of whether a
130         GTypeValueTable is provided for this type.
131         removed g_value_init_default(), g_value_validate(), g_value_defaults(),
132         g_value_set_default() and g_values_cmp() as these are supplied by the
133         GParamSpec API now.
134         moved g_values_exchange() into the "implementation details" section,
135         since it just provides the underlying functionality for
136         g_value_convert().
137
138         * gvaluecollector.h: renamed the varargs value container from
139         GParamCValue to GTypeCValue as the value collection methods are
140         supplied by the type system now.
141         G_PARAM_COLLECT_VALUE() and G_PARAM_LCOPY_VALUE() got renamed to
142         G_VALUE_COLLECT() and G_VALUE_LCOPY() and operate without a
143         GParamSpec structure now.
144
145         * genums.h: macros cleanups/fixes.
146
147         * genum.c: provide G_TYPE_ENUM and G_TYPE_FLAGS type
148         and assorted g_value_{s|g}et_{enum|flags}() implementations.
149
150         * gobject.[hc]:
151         provide G_IS_VALUE_OBJECT(), G_TYPE_OBJECT ValueTable methods
152         and g_value_{s|g}et_object().
153
154         * gparam.[hc]: reduced class to value_set_default(),
155         value_validate() and values_cmp(). also parameters now need to fill
156         in a GType value_type; field to indicate the GValue type they
157         are handling. provide g_param_value_set_default(),
158         g_param_value_defaults(), g_param_value_validate() and
159         g_param_values_cmp().
160
161         * gparamspecs.[hc]: got rid of the g_value_* functions and
162         the G_IS_VALUE_* macros. adapted param spec implementations
163         according to the GParamSpecClass changes.
164
165 Sat Jun 10 08:38:27 2000  Tim Janik  <timj@gtk.org>
166
167         * gtype.c (type_class_init): fetch the nth iface entry of the
168         type node in the nth loop iteration, not alwys the first.
169         bug discovered by Walt Pohl <cher@suitware.com>.
170         (type_data_finalize_class_ifaces): same here, cut and paste
171         rulez.
172
173 Wed Jun  7 09:21:05 2000  Owen Taylor  <otaylor@redhat.com>
174
175         * Makefile.am (INCLUDES): Add top_builddir so glibconfig.h
176         is found properly when build srcdir != builddir. (Patch from
177         Eric Lemings)
178
179 2000-05-13  Tor Lillqvist  <tml@iki.fi>
180
181         * makefile.mingw.in
182         * gobject.def
183         * gobject.rc.in: New files, for Win32 (mingw) build.
184
185         * Makefile.am: Add to EXTRA_DIST. Add rules to produce the
186         corresponding non-*.in files.
187
188         * gtype.h: (Win32:) Mark _g_type_fundamental_last for
189         export/import from DLL.
190
191 Fri May  5 01:15:48 2000  Tim Janik  <timj@gtk.org>
192
193         * gtype.h: add reserved fundamental ids for gtk types (for transition
194         time). added G_TYPE_FUNDAMENTAL_MAX for gtk.
195
196 Mon Apr 17 20:45:50 2000  Tim Janik  <timj@gtk.org>
197
198         * glib-gobject.c (g_object_base_class_finalize): oops, don't unset
199         n_params prior to destructing them.
200
201 Tue Apr 11 04:28:10 2000  Tim Janik  <timj@gtk.org>
202
203         * fixed a couple of bugs in the initial parameter/object
204         implementations, after getting beast running on GObject and GValue.
205
206 Fri Apr  7 04:27:49 2000  Tim Janik  <timj@gtk.org>
207
208         * glib-gobject.[hc]: completed parameter set/get implementations,
209         along with asyncronous parameter changed notification queue.
210
211 Sun Apr  2 04:54:36 2000  Tim Janik  <timj@gtk.org>
212
213         * glib-gobject.[hc]: GObject implementation, that is facilities
214         for setting/getting quarked data and reference counting.
215
216         * glib-gparamspecs.[hc]: first actuall parameter implementations
217         for GLib, so far we have: char, uchar, bool, int, uint, long,
218         ulong, enum, flags, float, double, string and object. each of these
219         GParamSpecs is a new instantiatable type in its own respect,
220         so the .c file derives 13 new types from G_TYPE_PARAM and
221         defines over 50 (*2) conversion facilities.
222
223         * glib-gvaluecollector.h: generic varargs handling stubs for
224         GParamSpecs, private header file (does get installed for
225         inclusion into user code though).
226
227         * glib-gvalue.[hc]: GValue functionality implementation.
228
229         * glib-gparam.[hc]: basis GParamSpec implementation for
230         the virtual base type G_TYPE_PARAM.
231
232         * glib-genums.[hc]: enum/flags type implementation, based on
233         bseenum.[hc].
234
235         * glib-extra.[hc]: GLib additions, including 1.3 compatibility
236         routines and various other functions, from string manipulation
237         over list manipulation up to a unix signal GSource.
238
239         * glib-gtype.[hc]: GLib Type System implementation, heavily
240         based on BSE's dynamic type system.