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