Avoid rebuilding everything everytime.
[platform/upstream/glib.git] / gobject / ChangeLog
1 2001-03-07  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2
3         * Makefile.am: Avoid rebuilding everything everytime.
4
5 Mon Mar  5 15:26:30 2001  Jonathan Blandford  <jrb@redhat.com>
6
7         * gparamspecs.c (g_param_spec_interface): add a new param spec to
8         handle interfaces.
9
10 Wed Feb 21 18:31:46 2001  Jonathan Blandford  <jrb@redhat.com>
11
12         * gsignal.h (g_signal_connect): Add g_signal_connect define to
13         make porting from gtk_signal_connect easy.
14
15         * gsignal.c (g_signal_emit_valist): Use G_TYPE_FROM_INSTANCE
16         (instance) instead of node->itype when initting the value.
17
18 2001-02-17  Havoc Pennington  <hp@pobox.com>
19
20         Applied patch from Soeren Sandmann:
21         
22         * gvaluetypes.c (g_value_get_string): G_CONST_RETURN
23
24         * gtype.c (g_type_name): G_CONST_RETURN
25
26         * gsignal.c (g_signal_name): G_CONST_RETURN
27
28         * gobject-query.c (main): const fix
29
30 Sat Feb 17 07:58:46 2001  Tim Janik  <timj@gtk.org>
31
32         * genums.h (G_TYPE_IS_FLAGS): patch from sven to fixup
33         G_ENUM_CLASS_TYPE() macro.
34
35 Sat Feb 17 04:55:35 2001  Tim Janik  <timj@gtk.org>
36
37         * gtype.[hc]: changed collect_format, collect_value() and lcopy_format,
38         lcopy_value() in the GTypeValueTable. the collect functions are now
39         called only once per value, collect_format/lcopy_format are strings
40         that enlist all necessary GTypeCValues to be varargs-collected.
41
42         * gvalue.h: ranamed STATIC_TAG to G_VALUE_NOCOPY_CONTENTS to indicate that
43         a value shouldn't copy its contents.
44
45         * gvaluecollector.h: changed G_VALUE_COLLECT() and G_VALUE_LCOPY()
46         macros to carry an additional argument (flags) that can be used
47         to pass G_VALUE_NOCOPY_CONTENTS along to the collection functions.
48
49         * *.c: adapted collect_value() and lcopy_value() functions to the new
50         prototypes, support G_VALUE_NOCOPY_CONTENTS where apropriate.
51
52         * gsignal.[hc]: introduced a G_SIGNAL_TYPE_STATIC_SCOPE flag that can
53         be passed along (ORed) with the parameter types, indicating that the
54         emission arguments are to be considered static for the scope of the
55         emission. should be used with care and only if the caller knows that
56         a parameter cannot be destroyed/freed from signal handlers connected
57         to an emission.
58
59 Fri Feb 16 07:10:44 2001  Tim Janik  <timj@gtk.org>
60
61         * gclosure.c:
62         (g_closure_ref):
63         (g_closure_sink): make closure sinking explicit.
64
65         * gsignal.c:
66         (g_signal_connect_data): 
67         (g_signal_connect_closure): 
68         (g_signal_connect_closure_by_id): 
69         (g_signal_newv): perform explicit closure sinking.
70
71 Thu Feb  8 00:31:45 2001  Tim Janik  <timj@gtk.org>
72
73         * gtype.h: added G_TYPE_DEBUG_NONE for/from Eric Lemings ;)
74
75 2001-02-04  Tor Lillqvist  <tml@iki.fi>
76
77         * gobject.def: Remove glib_debug_objects.
78
79 Sun Feb  4 07:30:53 2001  Tim Janik  <timj@gtk.org>
80
81         * gtype.[hc]: changed g_type_init() to take debugging flags
82         initially, a combination of G_TYPE_DEBUG_OBJECTS and
83         G_TYPE_DEBUG_SIGNALS. using the G_TYPE_ prefix is a bit odd
84         here, but basically g_type_int() serves as initialization
85         fucntion for all of GType, GObject, GSignal, so what the heck.
86
87         * gobject.c: special case debugging code properly.
88         changed glib_trap_object_ref to g_trap_object_ref.
89
90         * gsignal.c: add signal emission debugging abilities, along with
91         a new trap object g_trap_instance_signals.
92
93 2001-02-04  Tor Lillqvist  <tml@iki.fi>
94
95         * Makefile.am (progs_LDADD): Change order of libs to libgobject
96         first, then libglib. Needed for cygwin, says jbdoll@kepri.re.kr.
97
98 Wed Jan 31 06:19:49 2001  Tim Janik  <timj@gtk.org>
99
100         * gparam.h: gtk-doc sucks for not dealing with #define inside enums.
101
102         * gtype.[hc]: added G_TYPE_FLAG_RESERVED_ID_BIT, a bit in the type
103         number that's supposed to be left untouched (preserved mainly
104         for the signal code).
105
106         * *.c: added thread safety code, based on an old patch from sebastian.
107         the remaining thread safety issues are now datalists on pspecs (to be
108         solved im gdataset.c) and gvalue.c where locking concerns value exchange
109         functionality only, and that's soon to be revised.
110
111 2001-01-27  Tor Lillqvist  <tml@iki.fi>
112
113         * makefile.msc.in: Don't try to compile gmarshal.c on its own.
114
115 2001-01-24    <alexl@redhat.com>
116
117         * gclosure.c (g_closure_unref):
118         Don't leak closure->notifiers.
119
120 2001-01-05  Havoc Pennington  <hp@redhat.com>
121
122         * gparamspecs.c (g_param_spec_enum): set the value_type in the
123         param spec; closes bug 40210
124         (g_param_spec_flags): ditto for flags
125
126 2001-01-03  Alexander Larsson  <alexl@redhat.com>
127
128         * gobject.c:
129         Move glib_debug_objects out of the G_ENABLE_DEBUG #ifdef.
130
131 Thu Dec 28 11:36:44 2000  Tim Janik  <timj@gtk.org>
132
133         * gbsearcharray.c (upper_power2): disable G_BSEARCH_ALIGN_POWER2
134         fucntionality if DISABLE_MEM_POOLS is defined.
135
136         * gtype.c: honour DISABLE_MEM_POOLS.
137
138         * gsignal.c (g_signal_init): flag signal key bsearch array with
139         G_BSEARCH_ALIGN_POWER2 to avoid excessive growth time. honour
140         DISABLE_MEM_POOLS.
141
142         * gparam.h: added G_PARAM_READWRITE alias for (G_PARAM_READABLE |
143                                                        G_PARAM_WRITABLE).
144
145 2000-12-15  Tor Lillqvist  <tml@iki.fi>
146
147         * gobject.def: Update.
148
149 2000-12-15  Havoc Pennington  <hp@pobox.com>
150
151         * gobject.c (g_object_do_class_init): use g_signal_newc
152
153         * gsignal.c (g_signal_newc): convenience function for signals
154         created from C
155         (g_signal_new_valist): added
156         (g_signal_new): removed
157
158 Fri Dec 15 04:40:23 2000  Tim Janik  <timj@gtk.org>
159
160         * gparam.[hc]: add an instance member value_type so the default
161         value of the pspec class can be overridden.
162
163 2000-12-14  Tor Lillqvist  <tml@iki.fi>
164
165         * makefile.mingw.in: Update, include parts from Makefile.am to
166         build gmarshal.[ch]. Some day, we won't need these separate
167         makefiles for Win32 compilation. I hope.
168
169         * makefile.msc.in: Update. No use trying to build gmarshal.[ch]
170         here, it would require Unixish tools. MSVC users building from CVS
171         sources are out of luck.
172         
173         * gobject.def: Update.
174
175 Wed Dec 13 09:31:26 2000  Tim Janik  <timj@gtk.org>
176
177         * gparamspecs.[hc]: add G_TYPE_PARAM_BOXED implementation.
178
179         * gobject.[hc]: minor fixes.
180
181 Tue Dec 12 23:38:02 2000  Tim Janik  <timj@gtk.org>
182
183         * Makefile.am: _never_ touch oldest-source-stamp.
184         
185         * gobject.[hc]: construct property handling fixes/improvements.
186         fixed trailer handling in get/set property.
187         
188         * gparam.[hc]: implement param spec pool, got rid of param spec
189         hashtable. the most prominent change is that e deal with type
190         prefixes here.
191         
192 2000-12-12  Elliot Lee  <sopwith@redhat.com>
193
194         * Makefile.am:
195           . You have to 'touch oldest-source-stamp' if you want to avoid having
196           the Makefile constantly rebuild itself.
197           . Fix marshaller generation rules to work with srcdir != builddir
198             (there were issues with trying to run "./glib-genmarshal", etc.)
199
200 Mon Dec 11 04:44:11 2000  Tim Janik  <timj@gtk.org>
201
202         * gboxed.c: fixed dealing with collection/lcopy of NULL values.
203         
204         * gclosure.h: removed insane ramblings, added G_CALLBACK() a casting
205         convenience macro.
206         
207         * Makefile.am: cleanups, marshaller generation rules.
208         
209         * gmarshal.[hc]: new files with GRuntime standard marshallers.
210         
211         * glib-genmarshal.c: fix log domain, support gruntime standard 
212         marshallers, suport G_TYPE_PARAM, come with extern "C" and
213         #include gmarshal.h.
214         
215         * glib-genmarshal.1: reflect glib-genmarshal.c updates.
216         
217         * gobject.[hc]: implement object constructor. rework parameter
218         changed notification queueing, we support queue freezes now and
219         don't dispatch from an idle handler anymore.
220         parameter->property rename hassle.
221         implemented ::properties_changed and ::notify::* signals for
222         property change notification (the later supports property names
223         as details). added signal connection and named data properties.
224         (g_signal_connect_object): new function to setup while_alive
225         connections.
226         (g_object_class_install_property): sink properties now, since they
227         are initially floating.
228         (g_object_steal_data):
229         (g_object_set_data_full):
230         (g_object_set_data):
231         (g_object_get_data): set/get data by using g_datalist_*() functions
232         directly.
233         (g_object_queue_param_changed): nuked.
234         (g_object_freeze_notify): start queueing of property changes (freeze/
235         thaw calls stack).
236         (g_object_notify): announce changes of a certain property directly.
237         (g_object_thaw_notify): process queue of property changes, therefore
238         emitting GObject::notify::detail with detail being the changed
239         properties names.
240         (G_OBJECT_WARN_INVALID_PROPERTY_ID): saner macro variant of former
241         G_WARN_INVALID_PARAM_ID().
242         
243         * gparam.[hc]: param specs are now initially floating and need to be
244         sunken with g_param_spec_sink(), support G_TYPE_PARAM values.
245         added G_PARAM_CONSTRUCT and G_PARAM_CONSTRUCT_ONLY parameter flags,
246         required by GObjectClass.constructor().
247         
248         * gparamspecs.[hc]: added GParamSpecParam, GParamSpecPointer and
249         GParamSpecCCallback, param specs for G_TYPE_PARAM, G_TYPE_POINTER
250         and G_TYPE_CCALLBACK respectively.
251         
252         * gsignal.[hc]: cleanups.
253         (signal_id_lookup): after walking the anchestry, try interfaces as well.
254         (g_signal_new): new function to create signals from varargs type list.
255         (g_signal_connect_closure): closure connection variant that works from
256         signal name+detail.
257         (g_signal_connect_data): c handler connection variant that works from
258         signal name+detail.
259         (g_signal_emit_valist): emit signal for an instance with paraneters
260         collected from a va_list.
261         (g_signal_emit): emit signal, taking parameters from varargs list.
262         (g_signal_emit_by_name): same as g_signal_emit, working from
263         signal name+detail.
264         (signal_emit_R): return whether return_value needs to be altered.
265         
266         * gtype.[hc]: set log-domain to GRuntime, i'm slowly getting to all
267         the points that need to reflect the upcoming rename.
268         melt g_type_conforms_to() functionality into g_type_is_a(), as that
269         is what we really want (liskov substitution principle).
270         assorted changes to other files due to conforms_to->is_a.
271
272         * gvalue.[hc]: implemented g_value_set_instance() that sets a value
273         from an instantiatable type via the value_table's collect_value()
274         function (based on an idea from James Henstridge <james@daa.com.au>).
275         cleanups/fixes.
276         
277         * gvaluetypes.[hc]: implement G_TYPE_CCALLBACK and G_TYPE_PARAM.
278
279 Wed Nov 29 13:30:05 2000  Tim Janik  <timj@gtk.org>
280
281         * gsignal.c (handlers_find): fix elliots "logic fix" that dereferences
282         NULL nodes if C handlers are searched for specific signals.
283
284 2000-11-28  Elliot Lee  <sopwith@redhat.com>
285
286         * gsignal.c: Fix warnings about possible use of uninitialized
287         variables, and fix logic that would leave 'node' unset in cases
288         that it might be used in.
289
290         * glib-genmarshal.c: Fix warning about printf format.
291
292 2000-11-28  Tor Lillqvist  <tml@iki.fi>
293
294         * gboxed.c: Include <string.h> for memset ().
295
296 2000-11-22  Tor Lillqvist  <tml@iki.fi>
297
298         * gobject.def: Update.
299
300 2000-11-20  Havoc Pennington  <hp@redhat.com>
301
302         * gobject.c (g_object_get_data)
303         (g_object_set_data)
304         (g_object_set_data_full)
305         (g_object_steal_data): More convenient data-setting functions
306
307 Wed Nov 15 20:58:05 2000  Owen Taylor  <otaylor@redhat.com>
308
309         * gtypemodule.c (g_type_module_use): If loading the
310         module fails, don't increment the use count.
311
312 Thu Nov  9 01:49:43 2000  Tim Janik  <timj@gtk.org>
313
314         * gobject.h (G_WARN_INVALID_PARAM_ID): doh,
315         s/BSE_OBJECT_TYPE_NAME/G_OBJECT_TYPE_NAME/; reported by Maas-Maarten
316         Zeeman <maas@wanadoo.nl>.
317
318 Mon Nov 13 00:48:39 2000  Owen Taylor  <otaylor@redhat.com>
319
320         * Makefile.am (EXTRA_DIST): Add glib-genmarshal.1
321
322 2000-11-11  Tor Lillqvist  <tml@iki.fi>
323
324         * gtypemodule.c: Include stdlib.h for exit().
325
326         * makefile.{mingw,msc}.in (gobject_OBJECTS): Add gtypemodule.
327
328         * gobject.def: Add missing functions.
329
330 Sun Nov  5 13:21:28 2000  Owen Taylor  <otaylor@redhat.com>
331
332         * Makefile.am gtypemodule.[ch]: New basic implementation of
333         GTypePlugin interface as a GObject. Dynamically loaded modules can
334         register any number of types and interface on the module.
335
336 Sun Nov  5 10:25:40 2000  Owen Taylor  <otaylor@redhat.com>
337
338         * gsignal.c (handlers_find): When appending handlers and
339         not matching on signal_id, use hlist->signal_id instead of 
340         signal_id. Having the correct signal_id when unreffing
341         the handlers makes things work a lot better.
342
343 2000-11-05  Tor Lillqvist  <tml@iki.fi>
344
345         * makefile.{mingw,msc}.in (gobject_OBJECTS): Add gtypeplugin.
346
347         * gobject.def: Update.
348
349 Sun Nov  5 05:22:55 2000  Tim Janik  <timj@gtk.org>
350
351         * gsignal.c:
352         fixed a bag full of subtle bugs of immensive screw-up potential in
353         handlers_find(), luckily no one found out about them yet ;)
354         fixed signal_handlers_foreach_matched_R() so it operates on an
355         initial handler list snapshot provided by handlers_find() to work
356         around general reentrancy problems and to avoid multiple callback()
357         invocations on the same handlers.
358         this code is now officially 80% bug free (10% remaining for interface
359         types, and 10% remaining for destroyed signals ;)
360         
361 Sat Nov  4 02:01:33 2000  Tim Janik  <timj@gtk.org>
362
363         * gsignal.c (_g_signals_destroy): valid signal nodes start out at 1.
364
365         * gtypeplugin.[hc]: new files holding a GTypePlugin interface
366         implementation that provides the API required by GType to deal with
367         dynamically loadable types.
368
369         * gtype.[hc]: displace any GTypePlugin business to gtypeplugin.h.
370
371 Fri Nov  3 07:35:00 2000  Tim Janik  <timj@gtk.org>
372
373         * gsignal.[hc]: prefix internal functions with '_'. renamed
374         g_signal_connect_closure() to g_signal_connect_closure_by_id().
375         added g_signal_parse_name() to retrive signal_id and detail quark
376         from a signal name (internal).
377
378 Wed Nov  1 03:36:54 2000  Tim Janik  <timj@gtk.org>
379
380         * gobject.c (g_object_base_class_finalize): destroy all signals that
381         the finalized obejct type introduced.
382
383         * gsignal.c (g_signals_destroy): don't require itype to have
384         signals.
385
386         * gobject.c (g_object_do_finalize): make sure all signal handlers
387         are destroyed.
388
389         * gsignal.[hc]:
390         (g_signal_handler_find): only match on non-0 masks.
391         (g_signal_handlers_block_matched):
392         (g_signal_handlers_unblock_matched):
393         (g_signal_handlers_disconnect_matched): new functions to block/unblock
394         or disconnect handlers in groups.
395
396 2000-10-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
397
398         * gvalue.c (exchange_entries_equal), gparam.c (param_spec_equals):
399         made both functions return gboolean just for the little extra
400         standard conformance now that GEqualFunc is introduced.
401
402 Mon Oct 30 05:52:45 2000  Tim Janik  <timj@gtk.org>
403
404         * gsignal.c (g_signal_list_ids): get rid of inline documentation owen
405         added, the doc system would ignore it anyways (for some reason not
406         aparent to me).
407
408 Mon Oct 30 03:00:07 2000  Tim Janik  <timj@gtk.org>
409
410         * gsignal.[hc] (g_signal_list_ids): renamed owen's g_type_signals(),
411         added required mutex locks.
412
413 Sun Oct 29 02:31:03 2000  Owen Taylor  <otaylor@redhat.com>
414
415         * gsignal.c (g_type_signals): Fix problem where signals
416         with "_" in them appeared twice in the result array.
417
418 Sun Oct 29 01:58:44 2000  Owen Taylor  <otaylor@redhat.com>
419
420         * gsignal.h: Add g_type_signals() - a function to list
421         all signals for a given type.
422
423 Sat Oct 28 00:28:09 2000  Tim Janik  <timj@gtk.org>
424
425         * gclosure.c (g_closure_add_marshal_guards): fixed notifier position
426         for post_marshal guard which was off at 0.
427
428 Fri Oct 27 21:49:31 2000  Tim Janik  <timj@gtk.org>
429
430         * gobject.[hc]: doh, fix argument order in for
431         g_cclosure_new_object_swap and g_cclosure_new_object.
432
433 2000-10-28  Tor Lillqvist  <tml@iki.fi>
434
435         * makefile.{mingw,msc}.in: Make glib-genmarshal.exe.
436
437         * glib-genmarshal.c: Conditionalise include of unistd.h.
438         Include <io.h> on Win32.
439
440         * gobject.def: Add some missing entry points.
441
442 Fri Oct 27 16:33:41 2000  Tim Janik  <timj@gtk.org>
443
444         * gsignal.[hc]: publically define GSignalInvocationHint structure
445         that gets passed in to closure invocations. added signal details.
446         renamed GSignalType to GSignalFlags to comply with conventions.
447         quite some cleanups and minor fixes. avoid uneccessary handler list
448         walks upon invokation of after handlers. relookup handler list for
449         restarted emissions. preliminary abort normal handler invokation if
450         after handler is encountered.
451
452         * glib-genmarshal.c:
453         * gclosure.[hc]: moved invocation_hint to the end of the
454         g_closure_invoke() arguments as sugegsted by kenelson.
455         also made it a gpointer to be more generic. the invocation_hint
456         is a caller specific thing that can be used to pass additional
457         data in to closure invocations as documented with the caller
458         invoking the closure.
459
460 Fri Oct 27 05:35:14 2000  Tim Janik  <timj@gtk.org>
461
462         * gobject.c (g_object_watch_closure): fixed realloc bug, reported
463         by havoc.
464
465         * gsignal.c (g_signal_newv): fixed deadlock scenarion where
466         g_signal_lookup() would be called with the signal lock being
467         held. reported by james henstridge.
468
469         * gclosure.c (g_closure_set_meta_marshal): fixed memcpy/overwrite bug
470         reported by owen.
471
472 2000-10-26  Tor Lillqvist  <tml@iki.fi>
473
474         * gbsearcharray.c (bsearch_array_insert): Fix gccisms (pointer
475         arithmetic on void pointer, label without statement following.
476
477         * gtype.c (type_node_fundamental_info): Don't apply unary minus to
478         result of sizeof operator, it can be unsigned. Cast first to
479         gssize.
480
481         * gobject.def: Add new functions.
482
483         * makefile.{mingw,msc}.in: Add new objects.
484
485 2000-10-26  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
486
487         * Makefile.am: Remove empty SUBDIRS line _again_, as that _still_
488         prevents 'make dist' from working.
489
490 Wed Oct 25 19:11:03 2000  Owen Taylor  <otaylor@redhat.com>
491
492         * gbsearcharray.h (g_bsearch_array_get_nth): Don't use implicit
493         casts from void * since this will get included from C++ too
494         at times.
495         
496 Thu Oct 26 00:30:27 2000  Tim Janik  <timj@gtk.org>
497
498         * gvaluetypes.[hc]: added g_value_set_static_string().
499
500         * gboxed.[hc]: const corrections. added g_value_set_static_boxed().
501
502 Wed Oct 25 20:27:02 2000  Tim Janik  <timj@gtk.org>
503
504         * gtype.c (g_type_free_instance): for the moment, freeing object
505         structures will fill their memory portion with 0xAA. there's a
506         FIXME there, remove this line at a later point.
507
508 Tue Oct 24 23:10:26 2000  Tim Janik  <timj@gtk.org>
509
510         * glib-genmarshal.1:
511         * glib-genmarshal.c: added publically installed marshaller generator.
512
513         * gtype.h: added G_TYPE_INSTANCE_GET_INTERFACE() to retrive a certain
514         interface VTable from instances.
515
516 Mon Oct 23 08:28:15 2000  Tim Janik  <timj@gtk.org>
517
518         * gobject.[hc]: new functions for closure maintenance:
519         (g_object_watch_closure): maintain validity of the object and
520         the closure for objects that are used as data part of a closure.
521         (g_cclosure_new_object): convenience function to create C closures
522         that have an object as data argument.
523         (g_closure_new_object): convenience function to create closures
524         that have an object as data argument.
525
526         * gclosure.[hc]: implementation of GClosure mechanism.
527         a closure is basically an encapsulation of a callback function
528         and its environment. ideally, most places supporting callback
529         functions will simply take a GClosure* pointer and thus unify
530         callback environments wrg destroy notification etc.
531         GClosure provides destroy notifiers for arbitrary data pointers,
532         reference counting, invalidation notification (it can be invalidated
533         which is merely a deactivate state) and a marshallinbg abstraction.
534         GCClosure is also provided in these files, they present a specialized
535         GClosure implementation for C language callbacks.
536
537         * genum.c: macro cleanups.
538         
539         * gboxed.[hc]: new files, for boxed type abstraction.
540         (g_boxed_copy): copy a boxed structure
541         (g_boxed_free): free a boxed structure
542         (g_value_set_boxed):
543         (g_value_get_boxed): standard GValue functions for boxed types
544         (g_boxed_type_register_static): convenience function for easy
545         introduction of new G_TYPE_BOXED derivatives.
546
547         * gparam.[hc]: introduced g_param_type_register_static(), a short hand
548         for creation of new GParamSpec derived types.
549
550         * gtype.[hc]: many fixes, introduced ability to flag individual
551         type nodes as ABSTRACT upon registration, added value_peek_pointer()
552         to the value table to peek at GValue contents as a pointer for types
553         that support this. fixed up GValue checks.
554
555         * gvalue.[hc]: added g_value_fits_pointer() and g_value_get_as_pointer()
556         to peek at the value contents as pointer.
557
558         * *.[hc]: adaptions to type macro fixes and changes in the type
559         registration API.
560
561         * many const corrections over the place.
562
563 Sat Oct 21 02:49:56 2000  Tim Janik  <timj@gtk.org>
564
565         * gtype.c (g_type_conforms_to): this function basically behaves like
566         and is_a check, except that it _additionally_ features interfaces
567         for instantiatable types. enforce this in the second branch as well
568         (`type' conforms_to `type') even if `type' is not an interface type.
569
570 Fri Oct 20 15:31:04 2000  Tim Janik  <timj@gtk.org>
571
572         * gvaluetypes.[hc]: added G_TYPE_POINTER implementation from jrb.
573
574         * gtype.[hc]:
575         * gobject.c:
576         * gvaluetypes.c: added GTypeValueTable.value_peek_pointer and
577         suitable implementations of this for G_TYPE_STRING, G_TYPE_OBJECT
578         and G_TYPE_POINTER.
579
580 Mon Aug 21 04:13:37 2000  Tim Janik  <timj@gtk.org>
581
582         * gbsearcharray.[hc]: long standing needed generic implementation
583         of a binary searchable, sorted and dynamically sized array.
584
585 2000-10-15  Raja R Harinath  <harinath@cs.umn.edu>
586
587         * Makefile.am (BUILT_EXTRA_DIST): New variable.
588         (dist-hook): Handle $(BUILT_EXTRA_DIST).
589         (*): Remove traces of @STRIP_{BEGIN,END}@.
590         
591 2000-09-29  Martin Baulig  <baulig@suse.de>
592         
593         Several minor ANSI C fixes.
594
595         Added missing casts:
596         * gtype.c (type_class_init): 
597         `(gpointer) bnode->data->class.class_init_base'
598         in call to g_slist_prepend() and
599         'GBaseInitFunc class_init_base = (GBaseInitFunc) slist->data'.
600
601         * gobject.c: Put text following #endif into comments.
602
603 2000-09-25  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
604
605         * Makefile.am: Remove empty SUBDIRS line, as that prevents make
606         dist from working.
607
608 Sat Sep  9 20:04:13 2000  Owen Taylor  <otaylor@redhat.com>
609
610         * gobject.c (g_object_last_unref): Move call to
611         g_type_free_instance() here from g_object_do_finalize,
612         since g_type_free_instance() can unload the object's
613         implementation.
614
615 2000-07-27  Tor Lillqvist  <tml@iki.fi>
616
617         * gobject.c: No, don't mark glib_debug_objects for export here,
618         it's handled specially in gtktypeutils.c.
619
620         * gobject.def: Export g_type_fundamental_last (the function).
621
622 2000-07-26  Tor Lillqvist  <tml@iki.fi>
623
624         * gobject.def
625         * gobject.c: Mark glib_debug_objects for export/import as it is
626         used by GTK+.
627
628 Sun Jul 23 17:23:35 2000  Tim Janik  <timj@gtk.org>
629
630         * gtype.[hc]: make g_type_fundamental_last() a function, avoiding all
631         that extern variable clutter and avoiding further problems with thread
632         safety.
633
634 2000-07-19  Tor Lillqvist  <tml@iki.fi>
635
636         * gparam.h
637         * gvalue.h
638         * gparam.c
639         * gtype.c: Shut up Sun's picky compiler.
640
641 2000-07-14  Tor Lillqvist  <tml@iki.fi>
642
643         * gobject.def: Add g_type_get_plugin.
644
645 Thu Jul 13 02:07:54 2000  Tim Janik  <timj@gtk.org>
646
647         * gparam.c (g_param_value_defaults): default initialize the temporary
648         default value, instead of nuking the caller's value contents.
649
650 2000-07-11  Raja R Harinath  <harinath@cs.umn.edu>
651
652         * gtype.c (g_type_get_plugin): Don't return just 0 or 1.
653
654 Tue Jul 11 02:48:13 2000  Tim Janik  <timj@gtk.org>
655
656         * gtype.[hc]: removed g_type_is_dynamic() and added g_type_get_plugin().
657
658 2000-07-10  Tor Lillqvist  <tml@iki.fi>
659
660         * gobject-query.c: Include ../config.h for HAVE_UNISTD_H. Use it
661         to guard inclusion of <unistd.h>.
662
663         * gtype.h: Fix copy-paste errors in the ifdefs on how to declare a
664         variable for export. Call the macro GOBJECT_VAR.
665
666         * gtype.c: Declare _g_type_fundamental_last for export here, too.
667         (type_node_any_new): Use only constant expressions for sizeof
668         operator (for instance MSVC requires this).
669
670         * makefile.mingw.in: Define GOBJECT_COMPILATION.
671
672 Sun Jul  9 21:21:46 2000  Owen Taylor  <otaylor@redhat.com>
673
674         * genums.c: Move string.h include into the .c file
675         instead of where it was in the .h file by mistake.
676
677 Thu Jul  6 15:30:27 2000  Owen Taylor  <otaylor@redhat.com>
678
679         * Makefile.am (EXTRA_DIST): dist fixes.
680
681         * gobject.c: Add a global variable glib_debug_objects
682         (not in header file) to control object tracing.
683
684 2000-07-01  Tor Lillqvist  <tml@iki.fi>
685
686         * gobject.def: Update added and renamed entry points.
687
688         * makefile.mingw.in: Add gvaluetypes.o.
689
690 Thu Jun 29 16:02:07 2000  Owen Taylor  <otaylor@redhat.com>
691
692         * gobject.c:include string.h for memset
693         * genums.h: include string.h for strcpy
694         * gvalue.c: include string.h for memset, memcpy.
695
696 Sat Jun 24 23:03:04 2000  Tim Janik  <timj@gtk.org>
697
698         * gtype.[hc]: provide G_TYPE_CHAR, G_TYPE_UCHAR, G_TYPE_BOOLEAN,
699         G_TYPE_INT, G_TYPE_UINT, G_TYPE_LONG, G_TYPE_ULONG, G_TYPE_FLOAT,
700         G_TYPE_DOUBLE and G_TYPE_STRING fundamental types.
701         added a GTypeValueTable* pointer to GTypeInfo structure for types
702         to implement GValue handling functions.
703         GTypeValueTable contains the following members:
704           value_init(): initialize a GValue structure.
705           value_free(): free GValue structure contents (optional).
706           value_copy(): copy one GValue contents to another GValue structure of
707           collect_type: varargs collection type for the first variable argument
708           to be collected by collect_value().
709           collect_value(): variable arguments collection function (optional).
710           lcopy_type: varargs collection type for the first variable argument
711           to be location copyied by lcopy_value().
712           lcopy_value(): variable arguments location copy function (optional).
713         g_type_value_table_peek(): new function to retrive the GTypeValueTable*
714         for a type node. ValueTables get inherited from parent types, unless
715         overridden through the GTypeInfo structure. internally, GTypeValueTable
716         support means an added overhead of one pointer per static or used
717         dynamic type node.
718         g_type_add_class_cache_func(): provide a cache_func/data pair to be
719         called  prior to a type nodes last_unref() function, this can be used
720         to prevent premature class destruction. multiple installed cache_func()
721         will be chained upon last_unref() untill one of them returns TRUE.
722         the cache_func()s have to check the class id passed in to figure whether
723         they actually want to cache the class of this type (since all classes
724         are routed through the cache_func() chain).
725         g_type_remove_class_cache_func(): remove a previously installed
726         cache_func/data pair. the cache maintained by this function has to be
727         clear when calling g_type_remove_class_cache_func() to avoid leaks.
728         g_type_class_unref_uncached(): class unref function for cache_func()
729         implementations, unreferences a class omitting the cache chain (and
730         therefore unref->cache->unref->... loops).
731
732         * gvaluetypes.[hc]: provide the value setters/getters for the primitive
733         fundamental types boolean, char, uchar, int, uint, long, ulong, float,
734         double and string.
735
736         * gvalue.[hc]: provide G_TYPE_IS_VALUE() in terms of whether a
737         GTypeValueTable is provided for this type.
738         removed g_value_init_default(), g_value_validate(), g_value_defaults(),
739         g_value_set_default() and g_values_cmp() as these are supplied by the
740         GParamSpec API now.
741         moved g_values_exchange() into the "implementation details" section,
742         since it just provides the underlying functionality for
743         g_value_convert().
744
745         * gvaluecollector.h: renamed the varargs value container from
746         GParamCValue to GTypeCValue as the value collection methods are
747         supplied by the type system now.
748         G_PARAM_COLLECT_VALUE() and G_PARAM_LCOPY_VALUE() got renamed to
749         G_VALUE_COLLECT() and G_VALUE_LCOPY() and operate without a
750         GParamSpec structure now.
751
752         * genums.h: macros cleanups/fixes.
753
754         * genum.c: provide G_TYPE_ENUM and G_TYPE_FLAGS type
755         and assorted g_value_{s|g}et_{enum|flags}() implementations.
756
757         * gobject.[hc]:
758         provide G_IS_VALUE_OBJECT(), G_TYPE_OBJECT ValueTable methods
759         and g_value_{s|g}et_object().
760
761         * gparam.[hc]: reduced class to value_set_default(),
762         value_validate() and values_cmp(). also parameters now need to fill
763         in a GType value_type; field to indicate the GValue type they
764         are handling. provide g_param_value_set_default(),
765         g_param_value_defaults(), g_param_value_validate() and
766         g_param_values_cmp().
767
768         * gparamspecs.[hc]: got rid of the g_value_* functions and
769         the G_IS_VALUE_* macros. adapted param spec implementations
770         according to the GParamSpecClass changes.
771
772 Sat Jun 10 08:38:27 2000  Tim Janik  <timj@gtk.org>
773
774         * gtype.c (type_class_init): fetch the nth iface entry of the
775         type node in the nth loop iteration, not alwys the first.
776         bug discovered by Walt Pohl <cher@suitware.com>.
777         (type_data_finalize_class_ifaces): same here, cut and paste
778         rulez.
779
780 Wed Jun  7 09:21:05 2000  Owen Taylor  <otaylor@redhat.com>
781
782         * Makefile.am (INCLUDES): Add top_builddir so glibconfig.h
783         is found properly when build srcdir != builddir. (Patch from
784         Eric Lemings)
785
786 2000-05-13  Tor Lillqvist  <tml@iki.fi>
787
788         * makefile.mingw.in
789         * gobject.def
790         * gobject.rc.in: New files, for Win32 (mingw) build.
791
792         * Makefile.am: Add to EXTRA_DIST. Add rules to produce the
793         corresponding non-*.in files.
794
795         * gtype.h: (Win32:) Mark _g_type_fundamental_last for
796         export/import from DLL.
797
798 Fri May  5 01:15:48 2000  Tim Janik  <timj@gtk.org>
799
800         * gtype.h: add reserved fundamental ids for gtk types (for transition
801         time). added G_TYPE_FUNDAMENTAL_MAX for gtk.
802
803 Mon Apr 17 20:45:50 2000  Tim Janik  <timj@gtk.org>
804
805         * glib-gobject.c (g_object_base_class_finalize): oops, don't unset
806         n_params prior to destructing them.
807
808 Tue Apr 11 04:28:10 2000  Tim Janik  <timj@gtk.org>
809
810         * fixed a couple of bugs in the initial parameter/object
811         implementations, after getting beast running on GObject and GValue.
812
813 Fri Apr  7 04:27:49 2000  Tim Janik  <timj@gtk.org>
814
815         * glib-gobject.[hc]: completed parameter set/get implementations,
816         along with asyncronous parameter changed notification queue.
817
818 Sun Apr  2 04:54:36 2000  Tim Janik  <timj@gtk.org>
819
820         * glib-gobject.[hc]: GObject implementation, that is facilities
821         for setting/getting quarked data and reference counting.
822
823         * glib-gparamspecs.[hc]: first actuall parameter implementations
824         for GLib, so far we have: char, uchar, bool, int, uint, long,
825         ulong, enum, flags, float, double, string and object. each of these
826         GParamSpecs is a new instantiatable type in its own respect,
827         so the .c file derives 13 new types from G_TYPE_PARAM and
828         defines over 50 (*2) conversion facilities.
829
830         * glib-gvaluecollector.h: generic varargs handling stubs for
831         GParamSpecs, private header file (does get installed for
832         inclusion into user code though).
833
834         * glib-gvalue.[hc]: GValue functionality implementation.
835
836         * glib-gparam.[hc]: basis GParamSpec implementation for
837         the virtual base type G_TYPE_PARAM.
838
839         * glib-genums.[hc]: enum/flags type implementation, based on
840         bseenum.[hc].
841
842         * glib-gtype.[hc]: GLib Type System implementation, heavily
843         based on BSE's dynamic type system.