Use G_FLAGS_CLASS_TYPE. (#323273, Kalle Vahlman)
[platform/upstream/glib.git] / gobject / ChangeLog
1 2005-12-05  Matthias Clasen  <mclasen@redhat.com>
2
3         * genums.h (G_FLAGS_CLASS_TYPE_NAME): Use G_FLAGS_CLASS_TYPE.
4         (#323273, Kalle Vahlman)
5         
6 Thu Dec  1 12:53:26 2005  Tim Janik  <timj@imendio.com>
7
8         * gtype.c: use g_slic_* for all object allocations.
9
10 2005-11-28  Matthias Clasen  <mclasen@redhat.com>
11
12         * gobjectnotifyqueue.c (g_object_notify_queue_thaw): 
13         * gobject-query.c (main): Silence compiler warnings.
14
15         * glib-genmarshal.c (main): Use G_N_ELEMENTS.
16
17 2005-11-27  Matthias Clasen  <mclasen@redhat.com>
18
19         * gboxed.h: Declare g_hash_table_get_type.
20
21 Wed Nov 23 18:01:46 2005  Tim Janik  <timj@imendio.com>
22
23         * gobject.[hc]: added floating reference count.
24         g_object_is_floating():
25         g_object_ref_sink(): new functions to deal with floating references.
26         g_object_force_floating(): new funciton for object implementations
27         to set the floating flag.
28
29         * gobject.c (g_object_init): make objects initially floating.
30
31 Wed Nov 23 17:58:13 2005  Tim Janik  <timj@gtk.org>
32
33         * gparam.[hc]: added g_param_spec_ref_sink().
34
35 Wed Nov 23 13:36:02 2005  Tim Janik  <timj@gtk.org>
36
37         * gboxed.[hc]: minor cleanups, implemented G_TYPE_HASH_TABLE.
38
39 2005-11-17  Matthias Clasen  <mclasen@redhat.com>
40
41         * === Released 2.9.0 ===
42
43 2005-11-17  Matthias Clasen  <mclasen@redhat.com>
44
45         * glib-genmarshal.c: const correctness fixes, found
46         by Arjan van de Ven and gcc.
47         
48 Tue Nov  1 17:07:43 2005  Tim Janik  <timj@imendio.com>
49
50         * gsignal.c: allocate signal handlers and handler match structures
51         via the new g_slice_*() API (get's rid of GList allocation hack).
52
53         * gtype.c: got rid of per-type memchunks. if GTypeInfo.n_preallocs
54         is > 0, objects are allocated via g_slice_*() instead of g_malloc().
55
56 2005-10-03  Matthias Clasen  <mclasen@redhat.com>
57
58         * glib-mkenums.in: Really fix #314890.
59
60 2005-09-28  Michael Natterer  <mitch@gimp.org>
61
62         * gtype.h (G_IMPLEMENT_INTERFACE): revert last change, it breaks
63         all users of G_IMPLEMENT_INTERFACE() inside
64         G_DEFINE_TYPE_WITH_CODE(), since apparently GCC doesn't like
65         commas enclosed in {}, not (), in nested macro calls.
66
67 2005-09-26  DindinX  <dindinx@gimp.org>
68
69         * gobject/gtype.h: initialize all the fields of GInterfaceInfo in the
70         G_IMPLEMENT_INTERFACE macro, to shut up a warning when compiling at -W
71
72 2005-09-26  Matthias Clasen  <mclasen@redhat.com>
73
74         * glib-mkenums.in: Don't hang on '{' following a trigraph comment
75         in the same line.  (#314890, Mathias Hasselmann)
76
77 Thu Sep 22 12:42:12 2005  Tim Janik  <timj@gtk.org>
78
79         * gparam.c (g_param_spec_internal): fix pspec->name assignment which
80         needs to be strdup()ed for non G_PARAM_STATIC_NAME pspecs. this fixes
81         recently introduced crashes during plugin unloading.
82         also, ensure that static pspec names are canonicalized.
83
84         * gsignal.h: reverted last change from matthias, we don't guarantee
85         that type ids aren't mangled with G_SIGNAL_TYPE_STATIC_SCOPE anywhere.
86
87 2005-09-20  Matthias Clasen  <mclasen@redhat.com>
88
89         * gsignal.h (struct _GSignalQuery): Remove the misleading comment
90         about G_SIGNAL_TYPE_STATIC_SCOPE, since we don't allow that 
91         on return types.
92
93 2005-09-08  Kjartan Maraas  <kmaraas@gnome.org>
94
95         * gclosure.c: (g_closure_set_meta_marshal): Remove some unused
96         code.
97         * gsignal.c: (g_signal_emitv): Same here
98         * gtype.c: (g_type_register_fundamental): And here
99         * testgobject.c: Mark some functions static.
100
101 2005-09-05  Matthias Clasen  <mclasen@redhat.com>
102
103         * gsignal.c (struct _SignalNode): Make the name field const.
104         (g_signal_newv): Don't keep an unnecessary extra copy of the 
105         signal name around, and don't forget to free the name if
106         an existing node is reused.     
107
108 2005-08-31  Matthias Clasen  <mclasen@redhat.com>
109
110         * gobject.c (g_object_do_class_init): Intern the signal name.
111
112         * gparam.c (g_param_spec_internal): Intern the name here,
113         since we need the quark anyway when sending change notification.
114
115         * gboxed.c: 
116         * gparamspecs.c: 
117         * gtype.c (g_type_init_with_debug_flags): Intern type name
118         before registering the types.
119
120         * gtype.h (G_DEFINE_TYPE_EXTENDED): Intern type name
121         before registering the type.
122
123         * gvaluetypes.c (g_value_types_init): 
124         * gtypeplugin.c (g_type_plugin_get_type): 
125         * gtypemodule.c (g_type_module_get_type): 
126         * gparam.c (g_param_type_init): 
127         * gobject.c (g_object_type_init): 
128         * genums.c (g_enum_types_init): 
129         * gboxed.c (g_boxed_type_init): Intern type names
130         before registering the type to avoid unnecessary
131         copies.
132
133 2005-08-23  Matthias Clasen  <mclasen@redhat.com>
134
135         * === Released 2.8.1 ===
136
137 2005-08-12  Matthias Clasen  <mclasen@redhat.com>
138
139         * === Released 2.8.0 ===
140
141 2005-08-09  Matthias Clasen  <mclasen@redhat.com>
142
143         * gvaluetransform.c: Access enum and flags
144         values as v_long/v_ulong, not v_int/v_uint,
145         to make value transformation of such types
146         work on bigendian 64bit machines.  (#312485,
147         Michael Lorenz)
148
149 2005-08-05  Matthias Clasen  <mclasen@redhat.com>
150         
151         * abicheck.sh: Also check exported variables
152
153         * === Released 2.7.7 ===
154
155 2005-08-03  Matthias Clasen  <mclasen@redhat.com>
156
157         * === Released 2.7.6 ===
158
159 2005-08-02  Matthias Clasen  <mclasen@redhat.com>
160
161         * gclosure.c (union ClosureInt): Mark the vint member as
162         volatile, which seems to be necessary to make atomic operations
163         work on s390.
164
165         * === Released 2.7.5 ===
166
167 Mon Aug  1 23:00:42 2005  Tim Janik  <timj@imendio.com>
168
169         * gclosure.c: turned all modifications to the first 32 integer bits in a 
170         closure into atomic accesses. wrapped write accesses into special macros
171         to keep the atomic modification logic in a single place. comment cleanups.
172
173         * gclosure.h: made all atomicly accessed closure fields volatile.
174
175         * gobject.h: made ref_count field volatile.
176
177 Sun Jul 31 02:04:23 2005  Tim Janik  <timj@gtk.org>
178
179         * gobject.c: use g_datalist_set_flags() and g_datalist_unset_flags() to
180         allow proper locking around &qdata modifications.
181
182 Sat Jul 30 21:10:26 2005  Tim Janik  <timj@gtk.org>
183
184         * gobject.c: reverted notify_mutex introduction, since this prevents
185         parallelized setting of object properties on different objects, and
186         serves no apparent purpose (to me at least).
187         g_object_real_dispose(): removed non-atomic reference count 
188         modifications.
189         g_object_unref(): make sure the closures array is destroyed when
190         destroying signal handlers.
191
192         * gparam.c: cosmetic changes.
193
194         * gsignal.c: comment fixup. allow 16bit blocking count.
195
196         * gsignal.c: reverted GClosure related changes.
197
198         * gclosure.c: reverted premature commit of atomic reference
199         counting attempt.
200
201 2005-07-21  Matthias Clasen  <mclasen@redhat.com>
202
203         * === Released 2.7.4 ===
204
205 2005-07-15  Matthias Clasen  <mclasen@redhat.com>
206
207         * === Released 2.7.3 ===
208         
209 2005-07-15  Matthias Clasen  <mclasen@redhat.com>
210
211         Make refcounting threadsafe by using atomic 
212         operations.  (#166020, Wim Taymans)
213         
214         * gobject.c: Use a recursive lock to protect the 
215         notify queue.
216         (g_object_unref): Get rid of g_object_last_unref and
217         do the last unref handling in g_object_unref.
218         (g_object_ref, g_object_unref): Use atomic operations.
219
220         * gsignal.c (struct _HandlerMatch): Use a full integer
221         for the ref_count field.
222         (handler_ref, handler_unref_R): Use atomic operations.
223
224         * gparam.c (g_param_spec_ref, g_param_spec_unref): 
225         Use atomic operations instead of a lock to make the
226         refcounting threadsafe.
227
228         * gclosure.c (g_closure_ref, g_closure_unref): Use atomic
229         operations. This is more complicated here, since the
230         refcount is stored in a bitfield, so we also have
231         to access all other bitfield members atomically.
232
233         * gsignal.c (handlers_find): Read the meta_marshal flag
234         of the closure atomically.
235
236 2005-07-11  Matthias Clasen  <mclasen@redhat.com>
237
238         * gobject.h: 
239         * gobject.symbols: Remove G_GNUC_NULL_TERMINATED from
240         g_object_new again, since that makes gcc warn on calls of 
241         the form g_object_new (some_type, NULL)
242
243 2005-07-09  Tor Lillqvist  <tml@novell.com>
244
245         * Makefile.am: Don't use the scripts in build/win32 to compile
246         gobject.rc into a resource object file. (This means we lose the
247         build number increment magic, but I doubt it was that useful
248         anyway.) Instead use windres directly. To pass the normal .o file
249         produced by windres through libtool, which wants .lo files, pass
250         it directly to the linker using a -Wl option.
251
252         * gobject.rc.in: Thus replace BUILDNUMBER with 0.
253
254 2005-07-08  Matthias Clasen  <mclasen@redhat.com>
255         
256         * === Released 2.7.2 ===
257
258 2005-06-30  Matthias Clasen  <mclasen@redhat.com>
259
260         * === Released 2.7.1 ===
261
262 2005-06-26  Tor Lillqvist  <tml@novell.com>
263
264         * Makefile.am: libtool installs/uninstalls the import library, no
265         need to do it ourselves. Do still install/uninstall the .def file,
266         though.
267
268 2005-06-24  Tor Lillqvist  <tml@novell.com>
269
270         * Makefile.am (install-libtool-import-lib): Current GNU tools do
271         understand the PRIVATE keyword.
272
273 2005-06-19  Matthias Clasen  <mclasen@redhat.com>
274
275         * gparam.h (GParamFlags): Avoid a warning.  (#308295,
276         Murray Cumming).
277
278 2005-06-13  Matthias Clasen  <mclasen@redhat.com>
279
280         * gparam.h (GParamFlags): Re-add G_PARAM_PRIVATE as a 
281         deprecated name for bit 5, since some language bindings
282         have it bound.
283
284 2005-06-10  Matthias Clasen  <mclasen@redhat.com>
285
286         * === Released 2.7.0 ===
287
288 2005-05-20  Matthias Clasen  <mclasen@redhat.com>
289
290         * gvaluetypes.c (g_value_set_string): dup the new value
291         before freeing the old, just in case.  (#172142, Morten
292         Welinder)
293
294 2005-05-13  Matthias Clasen  <mclasen@redhat.com>
295
296         * glib-genmarshal.1: Mention 64bit integer types.
297
298 2005-05-05  Owen Taylor  <otaylor@redhat.com>
299
300         * gobject.[ch] gobject.symbols: Add
301         g_object_add/remove_toggle_ref() functions to get notification
302         when a reference count is the last remaining reference; this
303         enables better memory management for language bindings.
304         (http://mail.gnome.org/archives/gtk-devel-list/2005-April/msg00095.html)
305
306 2005-04-29  Matthias Clasen  <mclasen@redhat.com>
307
308         * gobject.symbols: 
309         * gboxed.h (G_TYPE_DATE): 
310         * gboxed.c: Add a boxed type for GDate. (#301787, Tim-Philipp 
311         Müller)
312
313 2005-03-25  Matthias Clasen  <mclasen@redhat.com>
314
315         * gparam.c (param_spec_ht_lookup): Don't do the second
316         lookup if the name was already canonical.  (#171502, Morten
317         Welinder)
318
319 Tue Mar 22 14:15:23 2005  Manish Singh <yosh@gimp.org>
320
321         * gparam.c (g_param_spec_internal): cast away any constness on
322         assignment.
323
324 2005-03-21  Matthias Clasen  <mclasen@redhat.com>
325
326         * glib-mkenums.in: Avoid forcing extra newlines when using
327         template files.  (#171005)
328
329 2005-03-20  Matthias Clasen  <mclasen@redhat.com>
330
331         * gparam.c (g_param_spec_internal): Don't copy strings
332         which are marked as static. Don't allow non-canonical static 
333         names.
334
335         * gparam.h (GParamFlags): Add G_PARAM_STATIC_{NAME,NICK,BLURB}
336         flags.  (#160655, Ben Maurer)
337         
338 2005-03-18  Hans Breuer  <hans@breuer.org>
339
340         * makefile.msc.in : handle gobjectaliasdef.c
341
342 2005-03-14  Matthias Clasen  <mclasen@redhat.com>
343
344         Make PLT-reduction work with gcc4, and don't include
345         everything in gobjectalias.h:
346         
347         * gobject.symbols: Group symbols by header and source 
348         file.
349         * makegobjectalias.pl: Protect definitions by the same 
350         preprocessor symbols used to guard the headers. Move
351         the alias declarations to a separate file which is 
352         produced when calling makegalias.pl -def
353         * Makefile.am (gobjectaliasdef.c): Add a rule to 
354         build this file.
355         * *.c: Include gobjectalias.h after the other i
356         GLib headers, include gobjectaliasdef.c at the bottom.
357
358 2005-03-08  Matthias Clasen  <mclasen@redhat.com>
359
360         * gobject.symbols: Add the new attributes here, too.
361
362         * gobject.h: Use G_GNUC_NULL_TERMINATED where
363         appropriate.  (#164706, Marc Meissner)
364
365         * gvaluearray.h: Small cleanup (use G_BEGIN/END_DECLS).
366         (#168474, Fabricio Barros Cabral)
367
368 2005-02-24  Tor Lillqvist  <tml@novell.com>
369
370         * Makefile.am (EXTRA_DIST): Don't distribute
371         gobject.def. (#167496, J. Ali Harlow)
372
373 Sun Feb  6 22:00:46 2005  Manish Singh  <yosh@gimp.org>
374
375         * abicheck.sh: feed the contents of config.h and glibconfig.h
376         into the preprocessor, since glib.symbols could need #defines
377         from them.
378
379 2005-01-12  Matthias Clasen  <mclasen@redhat.com>
380
381         Cosmetic fixes (#163792, Benoît Carpentier):
382         
383         * gobject-query.c (main): Remove duplicate lines.
384
385         * gvaluetransform.c: Remove duplicate definitions of
386         value_transform_[u]int64_[u]int64.
387
388 2005-01-07  Matthias Clasen  <mclasen@redhat.com>
389
390         * === Released 2.6.1 ===
391
392 2004-12-27  Matthias Clasen  <mclasen@redhat.com>
393
394         * Makefile.am: Only check the ABI on linux, since
395         the shell script is not portable.  (#161734, Adrian Bunk)
396
397 2004-12-16  Matthias Clasen  <mclasen@redhat.com>
398
399         * === Released 2.6.0 ===
400         
401 2004-12-02  Matthias Clasen  <mclasen@redhat.com>
402
403         * === Released 2.5.7 ===
404         
405 2004-11-30  Tor Lillqvist  <tml@iki.fi>
406
407         * Makefile.am (gobject.def): gcc -E complains "linker input file
408         unused because linking not done" if told to preprocess the
409         gobject.symbols file. Use '-' and redirection to pass it as
410         standard input instead.
411
412 Sun Nov 28 13:21:12 2004  Manish Singh  <yosh@gimp.org>
413
414         * abicheck.sh: filter G_GNUC before PRIVATE so $ is still true.
415
416 Sun Nov 28 01:37:54 2004    <timj@birnet.org>
417
418         * gsignal.c: applied patch by sven@gimp.org (#153727) to reduce
419         signal connection complexity from O(n_handlers) to O(1).
420
421 Thu Nov 25 14:09:41 2004  Manish Singh  <yosh@gimp.org>
422
423         * abicheck.sh: filter out G_GNUC stuff when doing the compare.
424
425 2004-11-23  Matthias Clasen  <mclasen@redhat.com>
426
427         * gobject.symbols: Typo fix.
428
429         Fix a problem with the PLT reduction changes which caused the
430         internal aliases to lose all attributes.
431         
432         * gobject.symbols: Add attribute annotations.
433         * makegobjectalias.pl: Keep attribute annotations, but strip PRIVATE.
434         * Makefile.am (gobject.def): Strip attribute annotations, but keep 
435         PRIVATE.
436
437         * gtypemodule.h (g_type_module_get_type): Mark as const,
438         like all other get_type() functions.
439
440 2004-11-12  Matthias Clasen  <mclasen@redhat.com>
441
442         * === Released 2.5.6 ===
443         
444 Mon Nov  8 10:47:41 2004  Manish Singh  <yosh@gimp.org>
445
446         * gobject/gsourceclosure.c: removed wrap_g_io_channel_ref() hack,
447         since g_io_channel_ref() has a compatible API now.
448
449 2004-11-02  Matthias Clasen  <mclasen@redhat.com>
450
451         * === Released 2.5.5 ===
452
453 2004-10-27 Matthias Clasen  <mclasen@redhat.com>
454
455         * === Released 2.5.4 ===
456
457 2004-10-27  Matthias Clasen  <mclasen@redhat.com>
458
459         * abicheck.sh: Strip Win32 specific defs file syntax.
460
461         * Makefile.am (gobjectalias.h): Fix srcdir != builddir 
462         builds.  (#156447, Thomas Fitzsimmons)
463
464 2004-10-26  Matthias Clasen  <mclasen@redhat.com>
465
466         * abicheck.sh: Don't include symbols which are just in the 
467         symbols list for .defs file compatibility.
468
469 2004-10-23  Matthias Clasen  <mclasen@redhat.com>
470
471         * gtype.h (GTypeInterfaceCheckFunc): Rename first parameter to 
472         check_data, since apparently the system headers on AIX leak a
473         macro named func_data.  (#155178, Andrea Campi)
474
475 Wed Oct  6 02:12:44 2004    <timj@birnet.org>
476
477         * gtype.c (g_type_instance_get_private): applied patch from Jean-Yves 
478         Lefort <jylefort@brutele.be> to not access the instance_real_class_bsa
479         pointer without holding the instance_real_class lock.
480
481 2004-10-04  Matthias Clasen  <mclasen@redhat.com>
482
483         * gsignal.c (g_signal_add_emission_hook): Improve the warning 
484         if G_SIGNAL_NO_HOOKS is set.  (#154299, Nickolay V. Shmyrev)
485
486 2004-09-22  Tor Lillqvist  <tml@iki.fi>
487
488         * Makefile.am (install-libtool-import-lib): [Win32] Add code to
489         remove the bug-compatibility entries (see #134813, and related
490         comments below) from the import library. The PRIVATE keyword in
491         the .def file is supposed to mean that, but it isn't implemented
492         yet by GNU ld.
493
494         * makegobjectalias.pl: In case the symbol is followed by some
495         stuff ("PRIVATE") that's intended for the .def file, use just the
496         actual symbol.
497
498         * gobject.symbols: For binary bug compatibility on Win32, add the
499         g_slist_remove_all and g_unichar_validate symbols inside #ifdef
500         INCLUDE_INTERNAL_SYMBOLS. (See #134813 and log entries from March
501         below.)
502
503 2004-09-18 Matthias Clasen  <mclasen@redhat.com>
504
505         * === Released 2.5.3 ===
506
507 Thu Sep 16 18:42:46 2004  Manish Singh  <yosh@gimp.org>
508
509         * abicheck.sh: don't hardcode lengths for cut, instead split on
510         the third field.
511
512 2004-09-16  Matthias Clasen  <mclasen@redhat.com>
513
514         Implement the same PLT reduction technique used in GTK+:
515
516         * Makefile.am: Generate gobjectalias.h from gobject.symbols.
517         (BUILT_SOURCES): Add gobjectalias.h.
518
519         * makegobjectalias.pl: Script to generate gobjectalias.h.
520
521         * *.c: Include gobjectalias.h
522
523 2004-09-16  Matthias Clasen  <mclasen@redhat.com>
524
525         Add ABI control using the same technique that is used in GTK+.
526         
527         * gobject.symbols: Master list of symbols.
528
529         * gobject.def: Removed. It is now generated from gobject.symbols.
530
531         * Makefile.am: Generate gobject.def from gobject.symbols.
532         (TESTS): Add abicheck.sh
533         (EXTRA_DIST): Add abicheck.sh
534         (export_symbols): Don't export _-prefixed symbols.
535
536         * gtype.h: 
537         * gtype.c: Move the declarations of the various _init() functions
538         to the header, and mark them as G_GNUC_INTERNAL.
539
540 2004-08-25 Matthias Clasen  <mclasen@redhat.com>
541
542         * === Released 2.5.2 ===
543
544 2004-08-01 Matthias Clasen  <mclasen@redhat.com>
545
546         * === Released 2.5.1 ===
547
548 2004-07-28  Matthias Clasen  <mclasen@redhat.com>
549
550         * gtype.c (g_type_instance_get_private): Catch cases of 
551         forgotten g_type_add_private().  (#148368, Tommi Komulainen) 
552
553 2004-07-21  Matthias Clasen  <mclasen@redhat.com>
554
555         * glib-genmarshal.c (put_marshal_value_getters): Use the 
556         correct fields for enums and flags.  (#145015, Tommi Komulainen) 
557
558 Sun Jul 18 18:03:08 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
559
560         * === Released 2.5.0 ===
561
562 2004-07-12  Matthias Clasen  <mclasen@redhat.com>
563
564         * gsignal.c (g_signal_handler_is_connected): Don't
565         choke on a zero handler_id.
566
567 Tue Jul  6 00:46:43 2004  Matthias Clasen  <maclas@gmx.de>
568
569         * gtypemodule.h: 
570         * gtypemodule.c: Fix the declarations of the new 
571         functions to return GType, not void. 
572         Also add missing includes.  (#145508, Morten Welinder)
573
574 Tue Jul  6 00:46:43 2004  Matthias Clasen  <maclas@gmx.de>
575
576         * gtypemodule.h: 
577         * gtypemodule.c (g_type_module_register_flags): 
578         * gtypemodule.c (g_type_module_register_enum): New 
579         functions to register enum and flags types from a 
580         GTypeModule.  (#145396, Sven Neumann)
581
582 Wed Jun 23 12:55:34 2004  Matthias Clasen  <maclas@gmx.de>
583
584         * gtype.h (G_DEFINE_TYPE_EXTENDED): Add an initializer for
585         the g_define_type_info.value_table.  (#144678, Mariano 
586         Suárez-Alvarez) 
587
588 Tue Jun 22 21:50:47 2004  Matthias Clasen  <maclas@gmx.de>
589
590         * gsignal.c: Fix a couple of typos.
591
592 Fri Jun 18 22:53:13 2004  Matthias Clasen  <maclas@gmx.de>
593
594         * gsourceclosure.h (__G_SOURCECLOSURE_H__): Actually 
595         define the guard after checking for it.  (#108038, 
596         Morten Welinder)
597
598 2004-04-30  Matthias Clasen  <mclasen@redhat.com>
599
600         * === Released 2.4.1 ===
601
602 2004-04-22  Matthias Clasen  <mclasen@redhat.com>
603
604         * glib-mkenums.in: Actually convert escape chars in 
605         --vprod.   (#139058, Christophe Saout)
606
607 2004-04-15  Matthias Clasen  <mclasen@redhat.com>
608
609         * gparamspecs.c (param_float_init): Correct the initial 
610         minimal value to be -G_MAXFLOAT. The initial values were 
611         inconsistant before, with the initial default being smaller 
612         than the inital minimum.        
613         (param_double_init): Correct the initial minimal value 
614         to be -G_MAXDOUBLE.
615
616 Tue Mar  9 09:16:11 2004  Owen Taylor  <otaylor@redhat.com>
617
618         * === Released 2.4.0 ===
619
620 2004-03-10  Tor Lillqvist  <tml@iki.fi>
621
622         * gobject.def: Mark the two entries that shouldn't be in the
623         import library (see below) as PRIVATE.
624
625 Tue Mar  9 09:16:11 2004  Owen Taylor  <otaylor@redhat.com>
626
627         * === Released 2.3.6 ===
628
629 2004-03-04  Tor Lillqvist  <tml@iki.fi>
630
631         * gobject.def: Another of the glib DLL's functions was erronously
632         present in the stable branch's gobject.def: g_unichar_validate,
633         and nobody noticed until too late. Thus there are applications
634         deployed that expect it to be found in the gobject DLL, and to
635         keep ABI compatibility, we must keep it there forever. Argh.
636
637 Mon Mar  1 16:49:51 2004  Owen Taylor  <otaylor@redhat.com>
638
639         * === Released 2.3.5 ===
640
641 2004-03-01  Tor Lillqvist  <tml@iki.fi>
642
643         * gobject.def: Add g_slist_remove_all back for ABI
644         compatibility. That entry point actually is in the glib DLL, but
645         it was at some time many years ago by mistake added to
646         gobject.def. Thus there presumably are executables out there that
647         expect it to be exported from the gobject DLL. We don't want to
648         break those. (#134813, J. Ali Harlow)
649
650 Fri Feb 27 01:49:22 2004  Matthias Clasen  <maclas@gmx.de>
651
652         * glib-mkenums.in: Support parsing of intializers containing
653         macros with arguments.  (#129717)
654
655 2003-02-28  Hans Breuer  <hans@breuer.org>
656
657         * gobject.def : added g_strv_get_type
658
659 Tue Feb 24 14:09:21 2004  Owen Taylor  <otaylor@redhat.com>
660
661         * === Released 2.3.3 ===
662
663 Fri Feb 20 02:44:54 2004  Tim Janik  <timj@gtk.org>
664
665         * gtype.h (G_DEFINE_TYPE_EXTENDED): added (GTypeFlags) cast needed by C++.
666
667 Tue Feb  3 21:24:01 2004  Tim Janik  <timj@gtk.org>
668
669         * gtype.h (_G_TYPE_CVH): provide a short-cut version for
670         this macro in case value->g_type==checked_type for gcc, similar
671         to instance and class check short-cuts. this speeds up code that
672         makes frequent use of G_VALUE_HOLDS_*() (e.g. setters/getters).
673
674         * gtype.c (type_data_last_unref_Wm): don't call class-cache functions
675         for the uncached case, this rendered g_type_class_unref_uncached()
676         useless. pointed out by Stefan Westerfeld.
677
678 Sat Jan 24 18:20:13 2004  Tim Janik  <timj@gtk.org>
679
680         * gtype.h: prefixed the parent_class variable defined by G_DEFINE_TYPE()
681         with type_name. removed type_parent_class argument
682         from G_DEFINE_TYPE_EXTENDED().
683
684 2004-01-24  Tor Lillqvist  <tml@iki.fi>
685
686         * gobject.def: Add a missing entry.
687
688 Sun Jan 11 15:34:35 2004  Manish Singh  <yosh@gimp.org>
689
690         * gsourceclosure.c: wrap g_io_channel_ref in a function that returns
691         the passed in GIOChannel, so we aren't abusing GBoxedCopyFunc
692         semantics. Fixes bug #131076.
693
694 Sat Jan 10 23:55:42 2004  Matthias Clasen  <maclas@gmx.de>
695
696         * glib-mkenums.1: Document the lowercase_name trigraph option.
697
698 Sat Jan 10 02:43:20 2004  Tim Janik  <timj@gtk.org>
699
700         * gtype.h: made G_DEFINE_TYPE_INTERNAL() public by renaming it to
701         G_DEFINE_TYPE_EXTENDED() and moving it into the appropriate section.
702
703 Fri Jan  9 23:41:00 2004  Matthias Clasen  <maclas@gmx.de>
704
705         * gboxed.h:
706         * gboxed.c (g_strv_get_type): Add a boxed type for nul-terminated
707         string arrays.  (#110528)
708
709 Fri Jan  9 15:34:15 2004  Tim Janik  <timj@gtk.org>
710
711         * gtype.h: added convenience macros G_IMPLEMENT_INTERFACE() and
712         G_DEFINE_TYPE() plus variants.
713
714 Fri Dec 26 01:34:01 2003  Matthias Clasen  <maclas@gmx.de>
715
716         * gtype.c (g_type_class_peek_parent): Don't acquire a read lock 
717         here.  (#106433, Owen Taylor)
718
719 Wed Dec 17 23:29:17 2003  Matthias Clasen  <maclas@gmx.de>
720
721         * gvalue.c (g_value_peek_pointer): Use g_assert() instead of
722         g_return_val_if_fail(), suggested by Sheldon Simms.
723
724 2003-12-13  Hans Breuer  <hans@breuer.org>
725
726         gobject.def : update externals
727
728 Sat Nov 29 14:57:20 2003  Tim Janik  <timj@gtk.org>
729
730         * gobject.c: fix g_object_set() within _init() implementations
731         not working for construct-only properties.
732         (g_object_init): make the object enter a construct_objects list.
733         (g_object_newv): remove object from construct_objects after creation.
734         (g_object_set_valist):
735         (g_object_set_property): allow construct-only properties for
736         objects which are in construct_objects.
737
738 Thu Nov 27 17:53:52 2003  Tim Janik  <timj@gtk.org>
739
740         * gtype.[hc]:
741         (g_type_class_peek_static): variant of class_peek() which works for
742         static types only.
743
744         * gobject.c:
745         (g_object_do_class_init): make ::notify a run-action signal.
746         (g_object_newv): use g_type_class_peek_static() by default to
747         speed up common code path (trades two write-locks for one read-lock).
748         (g_object_disconnect):
749         (g_object_connect): allow signal specification words to be
750         seperated by '-'.
751         (g_object_set_valist):
752         (g_object_new_valist): don't leak values.
753         (g_object_get_property): check property for readability.
754         (g_object_set_property): check property for writability and to
755         not be construct-only.
756         (g_object_set_valist): check property to not be construct-only.
757
758 Sat Oct 25 01:09:17 2003  Matthias Clasen  <maclas@gmx.de>
759
760         * gparam.h (struct _GParamSpecClass): Add /*< private >*/ 
761         marker for documentation purposes.
762
763 Tue Oct 21 23:17:06 2003  Matthias Clasen  <maclas@gmx.de>
764
765         * genums.h (struct _GEnumClass): 
766         * genums.h (struct _GFlagsClass): 
767         * gtypemodule.h (struct _GTypeModuleClass):
768         * gtypemodule.h (struct _GTypeModule): Add /*< public >*/ 
769         and /*< private >*/ markers for documentation purposes.
770
771 Tue Oct 14 17:40:19 2003  Owen Taylor  <otaylor@redhat.com>
772
773         * gparamspecs.[ch]: Add a new GParamSpecOverride type
774         that is a pointer to a different paramspec in a parent
775         class or interface.
776
777         * gparam.[ch]: Add g_paramspec_get_redirect_target()
778         which follows GParamSpecOverride to the real property.
779         Make g_param_spec_pool_list() hand redirections, 
780         properties on interfaces.
781
782         * gobject.[ch] gobjectnotifyqueue.c: Add
783         g_object_interface_install_property,
784         g_object_interface_find_property,
785         g_object_interface_list_properties(). Redirect virtually all
786         publically exposed GParamSpec's to the redirect target if
787         any. (->constructor is the exception.)
788         (#105894)
789
790 Mon Oct 20 22:06:12 2003  Matthias Clasen  <maclas@gmx.de>
791
792         * gobject.h (struct  _GObjectClass): Add /*< public >*/
793         and /*< private >*/ markers for documentation purposes.
794
795 Sat Oct 18 01:24:14 2003  Matthias Clasen  <maclas@gmx.de>
796
797         * gtypeplugin.h (struct _GTypePluginClass): Add /*< public >*/
798         and /*< private >*/ markers for documentation purposes.
799
800 Thu Oct  2 07:37:12 2003  Tim Janik  <timj@gtk.org>
801
802         * gtype.c: fix post class_init interface initialization logic
803         for child types.
804
805 Thu Oct  2 01:16:50 2003  Owen Taylor  <otaylor@redhat.com>
806
807         * gtype.[ch]: Add g_type_add/remove_interface_check(),
808         which allows inserting a post-interface-initialization
809         check.
810
811         * testgobject.c: Fix a deprecated usage.
812
813 Mon Sep 29 10:51:01 2003  Owen Taylor  <otaylor@redhat.com>
814
815         * gtype.[ch]: Add g_type_default_interface_ref/peek/unref
816         for accessing the default vtable of an interface.
817
818 Fri Sep 26 17:24:53 2003  Owen Taylor  <otaylor@redhat.com>
819
820         * gtype.c (g_type_instance_get_private): You can
821         have instance_real_class_bsa be non-NULL, but still 
822         the class not be in the bsa. (Found by Kris Rietveld)
823
824 2003-09-15  Matthias Clasen  <maclas@gmx.de>
825
826         * glib-genmarshal.c (complete_out_arg): Don't generate code 
827         using deprecated APIs.  (#122292, Christian Persch)
828
829 Fri Sep 12 16:31:40 2003  Owen Taylor  <otaylor@redhat.com>
830
831         * gsignal.[ch]: Add g_signal_accumulator_true_handled(), to
832         do TRUE-stops-emit signals. (#80487, Ron Steinke)
833
834         * Makefile.am: Move testoverride.c and testifaceinit.c to
835         tests/gobject.
836
837 2003-09-12  Matthias Clasen  <maclas@gmx.de>
838
839         Make the g_value_set_x_take_ownership() functions "official"
840         part of the API (#100948):
841         
842         * gvaluetypes.[hc]: Add g_value_take_string() (synonym to the
843         now deprecated g_value_set_string_take_ownership()).  
844
845         * gparam.[hc]: Add g_value_take_param() (synonym to the
846         now deprecated g_value_set_param_take_ownership()).  
847
848         * gobject.[hc]: Add g_value_take_object() (synonym to the
849         now deprecated g_value_set_object_take_ownership()).  
850
851         * gboxed.[hc]: Add g_value_take_boxed() (synonym to the
852         now deprecated g_value_set_boxed_take_ownership()).  
853
854 Tue Sep  2 19:37:21 2003  Tim Janik  <timj@gtk.org>
855
856         * gtype.[hc]: added support for a "default vtable" per interface,
857         that interface vtables are initialized from.
858         the default vtable is initialized and finalized through class_init,
859         class_finalize and class_data from the interfaces GTypeInfo struct.
860         (type_data_last_unref_Wm): unload child plugin before unreffing
861         parent type.
862
863         testifaceinit.c: minor fixups. fixed up base_init() assertions, since
864         with a default vtable, base_init() may be called multiple times.
865         added default initializer to iface1.
866
867 Tue Sep  2 14:53:41 2003  Tim Janik  <timj@gtk.org>
868
869         * gobject-query.c (main): fix iterating over fundamental types.
870
871         * gtype.c: applied patch from owen which keeps internal
872         class initialization state to maintain class and interface
873         initialization happen in the order of:
874         1. class' base_init
875         2. interface' base_init
876         =  interfaces added after here are immediately base_init-ialized
877         3. class_init
878         4. Interface_init
879         =  interfaces added here are immediately Interface_init-ialized
880
881 Wed Aug 27 19:53:26 2003  Manish Singh  <yosh@gimp.org>
882
883         * gobject.c: removed stray change from previous commit.
884
885 Wed Aug 27 01:25:40 2003  Owen Taylor  <otaylor@redhat.com>
886
887         * Makefile.am testifaceinit.c: Add a detailed test case
888         for interface initialization, testing the ability to
889         add interfaces during class initialization and the ordering
890         of interface base_init, class init, and interface_init.
891         (Expected to fail at the moment.)
892
893 Mon Aug 25 14:51:46 2003  Manish Singh  <yosh@gimp.org>
894
895         * gtypemodule.c (g_type_module_register_type): fix typo in last
896         commit, cast to GTypeValueTable * to get rid of const warning.
897
898 Mon Aug 25 14:16:48 2003  Owen Taylor  <otaylor@redhat.com>
899  
900         * gtypemodule.c (g_type_module_register_type): Clarify
901         docs on the return. Fix a memory leak if a type with a
902         value table is reloaded. (#112439, Daniel Yacob)
903  
904 Tue Aug 19 05:21:04 2003  Tim Janik  <timj@gtk.org>
905
906         * testgobject.c (main): check private instance data after
907         initialization.
908
909         * gtype.c: for instances with private data, store the real class
910         pointer in a bsearch array during class initialization.
911         (g_type_instance_get_private): fetch the real class of
912         an instance from the bsearch array if necessary.
913
914 Tue Aug 19 04:08:14 2003  Tim Janik  <timj@gtk.org>
915
916         * gvalue.c: adapt to new gbsearcharray.h code.
917         (g_value_register_transform_func): turn transform function
918         replacement into a valid operation.
919
920         * gsignal.c: adapt to new gbsearcharray.h code.
921         
922         * gboxed.c: adapt to new gbsearcharray.h code.
923
924 Tue Aug 19 01:31:28 2003  Tim Janik  <timj@gtk.org>
925
926         * gsignal.c: added optimizations to skip NOP signal emissions.
927
928 2003-08-08  Matthias Clasen  <maclas@gmx.de>
929
930         * gobject.c (object_set_property): Improve the wording of the warning for invalid 
931         values.  (#117246, Mariano Suarez-Alvarez)
932         
933 Wed Aug  6 09:57:14 2003  Owen Taylor  <otaylor@redhat.com>
934
935         * testgobject.c (test_signal_accumulator): Add check
936         for instance private usage within in instance_init.
937         (Currently will fail.)
938
939 2003-07-20  Hans Breuer  <hans@breuer.org>
940
941         * gobject.def : updated externals
942
943 Tue Jul  8 22:29:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
944
945         * gtype.c (type_class_init_Wm): Only access node->data->instance
946         when the node is instantiable.
947
948 Tue Jul  8 14:55:27 2003  Owen Taylor  <otaylor@redhat.com>
949
950         * gtype.c (type_class_init_Wm): Initialize
951         node->data->instance.private_size here rather than
952         in type_data_make_W() since the class init for the parent
953         class may have changed pnode->data->instance.private_size.
954         (#116921, reported by Soeren Sandmann)
955
956 2003-06-18  Matthias Clasen  <maclas@gmx.de>
957
958         * Makefile.am (man_MANS): Removed, these are now installed from
959         docs/reference/gobject.
960
961 Fri May 30 14:42:24 2003  Owen Taylor  <otaylor@redhat.com>
962  
963         * gobject.c (g_value_set_object): Order refs/unrefs
964         so setting the same object back is safe. (#112861,
965         Morten Welinder)
966  
967 2003-03-24  Sven Neumann  <sven@gimp.org>
968
969         * gtype.c (type_data_finalize_class_ifaces_Wm): removed leftover
970         debugging message (bug #109093).
971
972 Thu Feb 27 17:33:19 2003  Owen Taylor  <otaylor@redhat.com>
973
974         * gtype.[ch] testgobject.c: Add support for instance-private data. 
975         g_type_class_add_private(), g_type_instance_get_private(),
976         G_TYPE_INSTANCE_GET_PRIVATE(). (#101959, patch partly by
977         Mark McLoughlin, extensive feedback from Tim Janik.)
978
979 2003-03-06  Matthias Clasen  <maclas@gmx.de>
980
981         * gsignal.c (g_signal_handlers_block_matched): 
982         (g_signal_handlers_unblock_matched): 
983         (g_signal_handlers_disconnect_matched): Fix 0/FALSE confusion.
984         (#107662, Morten Welinder)
985
986 Mon Feb 17 20:59:47 2003  Tim Janik  <timj@gtk.org>
987
988         * gvalue.c (g_value_register_transform_func): don't assert the types
989         passed in to have value tables. this prevents dynamic types from
990         registering transform functions.
991
992 Sun Feb  9 13:44:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
993
994         * gboxed.c (boxed_proxy_value_init): remove lookup of unused
995         BoxedNode.
996
997 2003-02-07  Matthias Clasen  <maclas@gmx.de>
998
999         * gtypemodule.c: 
1000         * gtype.c: 
1001         * gsourceclosure.c: 
1002         * gparamspecs.c: 
1003         * gparam.c: 
1004         * gobject.c: 
1005         * gsignal.c: Remove all docs from gobject at Tims
1006         request. Documentation is only for weenies anyway...    
1007
1008 2003-01-12  Tor Lillqvist  <tml@iki.fi>
1009
1010         * gobject.def: Add g_type_interface_prerequisites. Thanks to
1011         Kenichi SUTO.
1012
1013 2002-12-18  Matthias Clasen  <maclas@gmx.de>
1014
1015         * gobject.c: Add docs.
1016
1017 2002-12-18  Michael Natterer  <mitch@gimp.org>
1018
1019         * gobject/gtype.c (type_data_finalize_class_ifaces_Wm): applied
1020         patch I got from Tim Janik for testing which fixes bug #101521.
1021         (restart iterating the interface enties each time we finalized one
1022         because they might have been modified).
1023
1024 2002-12-17  Matthias Clasen  <maclas@gmx.de>
1025
1026         * gparam.c (g_param_spec_internal): Remove markup from doc
1027         comment, as GObject doesn't use --sgml-mode yet.
1028
1029 2002-12-15  Matthias Clasen  <maclas@gmx.de>
1030
1031         * gsignal.c (g_signal_new): Typo fix.
1032
1033         * gparamspecs.c:  
1034         * gparam.c (g_param_spec_internal): 
1035         * gobject.c (g_object_class_install_property): Add docs.
1036
1037 2002-12-13  Matthias Clasen  <maclas@gmx.de>
1038
1039         * glib-genmarshal.c, gobject-query.c: Use g_printf() instead of 
1040         system printf.  (#99319)
1041
1042 Thu Dec 12 15:00:10 2002  Manish Singh  <yosh@gimp.org>
1043
1044         * gvaluetransform.c: use G_G[U]INT64_FORMAT unconditionally,
1045         since we'll always have it now.
1046
1047 2002-12-07  Matthias Clasen  <maclas@gmx.de>
1048
1049         * gparam.c (canonalize_key): Rename to canonicalize_key. Adjust
1050         all callers.
1051
1052 2002-12-05  Matthias Clasen  <maclas@gmx.de>
1053
1054         * gsignal.c (g_signal_new): Explain allowed signal names in more
1055         detail.
1056
1057 2002-12-04  Matthias Clasen  <maclas@gmx.de>
1058
1059         * gsignal.h (g_signal_add_emission_hook): 
1060         * gtype.h (g_type_interface_get_plugin): Sync parameter names with
1061         docs and implementation.
1062
1063         * gtype.c (g_type_add_interface_dynamic): 
1064         (g_type_interface_get_plugin): 
1065         (g_type_interface_peek_parent): 
1066         (g_type_query): Add docs.
1067
1068 2002-12-03  Matthias Clasen  <maclas@gmx.de>
1069
1070         * gtype.c (g_type_get_qdata): 
1071         (g_type_set_qdata): 
1072         (g_type_interface_add_prerequisite): Add docs.
1073
1074 2002-12-02  Matthias Clasen  <maclas@gmx.de>
1075
1076         * gobject.c (g_signal_connect_object): Add docs.
1077
1078 2002-11-30  Matthias Clasen  <maclas@gmx.de>
1079
1080         * gsignal.c: More docs.
1081
1082 2002-11-28  Matthias Clasen  <maclas@gmx.de>
1083
1084         * gtype.c (g_type_interface_prerequisites): Document as 2.2 
1085         API addition.
1086
1087 Thu Nov 21 16:05:50 2002  Owen Taylor  <otaylor@redhat.com>
1088
1089         * gtype.c (g_type_check_instance_cast): Allow
1090         NULL to be cast to any type. (Frequently requested,
1091         most recently #99023, Lars Clausen.)
1092
1093 Mon Nov  4 14:42:36 2002  Owen Taylor  <otaylor@redhat.com>
1094  
1095         * gtype.c gsignal.c gvaluearray.c: Include config.h
1096         so DISABLE_MEMPOOLS actually has an effect.
1097         (#96437, Morten Welinder)
1098  
1099         * gsignal.c: Conditionalize definition of g_handler_ts
1100         on DISABLE_MEM_POOLS (#96437)
1101         
1102 2002-10-20  Matthias Clasen  <maclas@gmx.de>
1103
1104         * gtype.c (g_type_interface_prerequisites): Report only the most
1105         specific instantiatable prerequisite, filter out all supertypes of
1106         this one (the supertypes are added to the prerequisites array for
1107         technical reasons).
1108
1109 2002-10-16  Matthias Clasen  <maclas@gmx.de>
1110
1111         * glib-mkenums.in: Support for template files.
1112         
1113         * glib-mkenums.1: Document --template.
1114
1115 2002-10-15  Matthias Clasen  <maclas@gmx.de>
1116
1117         * gtype.c (g_type_interface_prerequisites): New function to obtain
1118         the prerequisites of an interface type.
1119
1120 Sat Oct 12 22:02:32 2002  Tim Janik  <timj@gtk.org>
1121
1122         * merged up from 2.0:
1123
1124         * testgobject.c: test creation of new fundamental types.
1125
1126         * gtype.c (g_type_fundamental_next), (type_node_fundamental_new_W):
1127         account for static_fundamental_next storing non-shifted fundamental
1128         IDs. this fixes g_type_fundamental_next() not returning a new usable
1129         fundamental ID.
1130
1131 Wed Sep 11 16:50:20 2002  Dom Lachowicz <cinamod@hotmail.com>
1132
1133         * gtype.h: Fix problems with excessive C++ warnings: "ISO C++ forbids nested groups within expressions"
1134         
1135 Fri Jul 26 15:46:36 2002  Owen Taylor  <otaylor@redhat.com>
1136
1137         * gvaluetransform.c: Fix problems with excess ';'
1138         by addition of strategic 'extern void glib_dummy_decl (void)'
1139         (#83272, David L. Cooper II)
1140
1141 Thu Jul 25 20:34:39 2002  Owen Taylor  <otaylor@redhat.com>
1142
1143         * gtype.c (g_type_interface_add_prerequisite): When
1144         adding ancestral prerequisites, add the grandparents,
1145         not the siblings. (Problem found by Jon Trowbridge, patch from 
1146         Dave Camp, #86879)
1147
1148 2002-07-05  Anders Carlsson  <andersca@gnu.org>
1149
1150         * gobject.c (g_object_base_class_finalize): Remove debugging
1151         message, approved by Tim Janik.
1152
1153 2002-06-11  Anders Carlsson  <andersca@gnu.org>
1154
1155         * gtypemodule.c: (g_type_module_complete_interface_info):
1156         * gtypeplugin.h:
1157         Fix argument order. Fixes #82806.
1158         
1159 Mon May 20 15:57:47 2002  Owen Taylor  <otaylor@redhat.com>
1160
1161         * gsignal.c: When printing errors, handle NULL
1162         returns from g_type_debug(). (#73559, Laszlo Peter)
1163
1164         * gtype.c (type_descriptive_name_I): De-inline,
1165         since it's only used for debugging.
1166
1167 Tue May  7 15:03:02 2002  Owen Taylor  <otaylor@redhat.com>
1168
1169         * glib-genmarshal.c: Fix include order for config.h (#71704,
1170         Morten Welinder)
1171
1172 2002-05-07  Michael Natterer  <mitch@gimp.org>
1173
1174         * Makefile.am: use the glib-genmarshal found at configure time
1175         if CROSS_COMPILING is set, use the one which was just built
1176         otherwise.
1177
1178 Mon May  6 16:06:23 2002  Owen Taylor  <otaylor@redhat.com>
1179
1180         [ merged from stable ]
1181
1182         * gobject.c: Remove PROPERTIES_CHANGED enumeration
1183         value that wasn't used any more. (#78833, 
1184         Matthias Clasen)
1185
1186         * gboxed.c (g_boxed_copy): Remove check on data[2]
1187         that no longer exists. (#80814, Daniel Elstner)
1188
1189 Tue Mar 26 15:21:47 2002  Owen Taylor  <otaylor@redhat.com>
1190
1191         * gsignal.h (g_signal_handlers_*_by_func): Add explicit
1192         cast of G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA to
1193         GSignalMatchType so that these macros work for C++.
1194         (#76454, Damien Sandras)
1195
1196 Mon Mar 25 17:51:05 2002  Owen Taylor  <otaylor@redhat.com>
1197
1198         * glib-mkenums.in (parse_entries): Fix various bugs and
1199         excessive stack usage that crept in the conversion from
1200         gtk-mkenums. (#74431)
1201
1202 Mon Mar 25 17:25:57 2002  Owen Taylor  <otaylor@redhat.com>
1203
1204         * gtype.c (g_type_free_instance): Wrap setting freed instance
1205         memory to 0xaa in #ifdef G_ENABLE_DEBUG
1206
1207 Thu Mar 21 01:28:14 2002  Tim Janik  <timj@gtk.org>
1208
1209         * gsignal.[hc]:
1210         * gobject.[hc]: fix extraneous include.
1211
1212 Tue Mar 19 18:57:12 2002  Tim Janik  <timj@gtk.org>
1213
1214         * gtype.c (check_add_interface_L): applied patch from Matthias Clasen
1215         <maclas@gmx.de> to check for prerequisite of interfaces, fixes #74427.
1216         fixed mutex recursion in his patch (we can't call g_type_is_a() while
1217         holding a read lock).
1218
1219         * gparam.c (canonalize_key): cleanup.
1220
1221 2002-03-13  Alexander Larsson  <alla@lysator.liu.se>
1222
1223         * gparam.c (canonalize_key):
1224         Function to canonicalize parameter names. Faster than
1225         using g_strcanon().
1226         (g_param_spec_internal, param_spec_ht_lookup):
1227         Use canonalize_key.
1228
1229 2002-03-13  Erwann Chenede  <erwann.chenede@sun.com>
1230         * gobject/gclosure.c  
1231         * gobject/gobject.c 
1232         * gobject/gsignal.c: fixed cast problems with function pointer
1233         to avoid warnings (with forte compiler) (#73898)
1234         
1235 2002-03-05  Sven Neumann  <sven@gimp.org>
1236
1237         * gvaluetransform.c (g_value_transforms_init): don't try to 
1238         register undeclared value transform functions if G_GINT64_FORMAT
1239         or G_GUINT64_FORMAT are undefined (#73586).
1240
1241 2002-03-03  Tor Lillqvist  <tml@iki.fi>
1242
1243         * makefile.msc.in
1244         * makefile.mingw.in: Rename testgruntime to testgobject here, too.
1245
1246 Sun Mar  3 04:11:58 2002  Tim Janik  <timj@gtk.org>
1247
1248         * gobject.c: placed a comment about not changing CArray until we have
1249         g_object_list_watched_closures().
1250
1251         * gparam.h (struct _GParamSpecClass): added padding.
1252
1253         * gobjectnotifyqueue.c (struct _GObjectNotifyQueue): abuse
1254         g_list_alloc() to allocate GObjectNotifyQueue to et rid
1255         of locking issues.
1256
1257 Tue Feb 26 10:51:00 2002  Owen Taylor  <otaylor@redhat.com>
1258
1259         * Makefile.am (testgobject_LDADD): Rename testgruntime
1260         to testgobject.
1261
1262 Sun Feb 24 22:08:29 2002  Owen Taylor  <otaylor@redhat.com>
1263
1264         * gtypemodule.[ch] (g_type_module_add_interface): Make
1265         GInterfaceInfo paramter const to correspond to the
1266         conventions for the g_type_add_interface() functions.
1267         (#72461, Miroslaw Dobrzanski-Neumann)
1268
1269 Sat Feb 23 13:28:56 2002  Owen Taylor  <otaylor@redhat.com>
1270
1271         * gtypeplugin.h (struct _GTypePluginClass): Add some
1272         padding to the class.
1273
1274         * gclosure.h (struct _GClosure): Fix typo in comment.
1275
1276 2002-02-20  Tor Lillqvist  <tml@iki.fi>
1277
1278         * gobject.def: Add g_value_set_object_take_ownership and
1279         g_value_set_param_take_ownership.
1280
1281 Wed Feb 20 22:55:15 2002  Owen Taylor  <otaylor@redhat.com>
1282
1283         * gobject.c: Fix implicit conversions between void * and 
1284         function pointer (Miroslaw Dobrzanski-Neumann, #71963)
1285
1286 Sun Feb 16 22:08:48 2002  Tim Janik  <timj@gtk.org>
1287
1288         * gobject.[hc]:
1289         * gparam.[hc]: provide marshaller specific value_set_*_take_ownership()
1290         variants.
1291
1292         * gvalue.h: shrink GValue's data contents to 2 unions.
1293
1294         * glib-genmarshal.c: fix release and realeas_check hackage by always
1295         using _take_ownership() variants. directly access value contents if
1296         G_ENABLE_DEBUG is not defined.
1297
1298         * gobject.h: add padding pointers to the class struct.
1299
1300 Wed Feb 13 17:22:37 2002  Tim Janik  <timj@gtk.org>
1301
1302         * gtype.c (g_type_value_table_peek): fixed a check for node not being NULL.
1303
1304 Wed Feb 13 06:53:50 2002  Tim Janik  <timj@gtk.org>
1305
1306         * gparam.c: remove extraneous redefinition of G_PARAM_SPEC_CLASS().
1307
1308 Wed Feb 13 06:29:51 2002  Tim Janik  <timj@gtk.org>
1309
1310         * gvaluetransform.c: cosmetic cleanups, fixed [u]int64->string
1311         conversions.
1312
1313         * ChangeLog: added entry from owen which went into the wrong
1314         file.
1315
1316 Fri Feb  8 23:52:27 2002  Owen Taylor  <otaylor@redhat.com>
1317
1318         * gobject/gvaluetransform.c: Register transformations for
1319         gint64, guint64. (#70780, patch from Andy Wingo)
1320
1321 2002-02-10  Hans Breuer  <hans@breuer.org>
1322
1323         * gvaluetransform.c : msvc 5.0 can't cast from uint64 to
1324         double. Disable respective transform_func than.
1325
1326         * makefile.msc.in : build test programs
1327
1328 Thu Jan 24 07:39:56 2002  Tim Janik  <timj@gtk.org>
1329
1330         * gobject.c (g_signal_connect_object): return gulong instead
1331         of guint.
1332
1333 Fri Jan 11 12:26:36 2002  Tim Janik  <timj@gtk.org>
1334
1335         * gparamspecs.c: fixed param_value_array_values_cmp(),
1336         param_value_array_validate() and
1337         param_value_array_set_default() to deal with NULL value
1338         arrays.
1339
1340 Wed Jan  9 05:23:27 2002  Tim Janik  <timj@gtk.org>
1341
1342         * gobject.h (G_OBJECT_WARN_INVALID_PROPERTY_ID): cosmetic fix.
1343
1344 2002-01-05  Hans Breuer  <hans@breuer.org>
1345
1346         * makefile.msc.in : use -FImsvc_recommended_pragmas.h
1347
1348 Fri Jan  4 04:36:46 2002  Tim Janik  <timj@gtk.org>
1349
1350         * gtype.h (G_TYPE_FLAG_RESERVED_ID_BIT): turn this into a GType,
1351         so negating it works on 64bit platforms.
1352
1353 2001-12-21  Tor Lillqvist  <tml@iki.fi>
1354
1355         * gobject.def: Add g_signal_get_invocation_hint.
1356
1357 Tue Dec 18 21:39:57 2001  Tim Janik  <timj@gtk.org>
1358
1359         * testoverride.c: added some assertions to test
1360         g_signal_get_invocation_hint().
1361
1362         * gsignal.[hc]: remove signal_id argument from
1363         g_signal_chain_from_overridden(), the parameters are assumed to match
1364         the innermost signal currently in emission for this instance.
1365         added g_signal_get_invocation_hint() to figure the invocation hint
1366         of the innermost signal emission of an instance.
1367
1368         * gsignal.c (g_signal_list_ids): fix G_BSEARCH_ARRAY_NODES() to
1369         access a bsearch array and not a pointer to it (discovered by
1370         Sven Neumann).
1371
1372 2001-12-17  Anders Carlsson  <andersca@gnu.org>
1373
1374         * gtype.h (G_TYPE_FLAG_RESERVED_ID_BIT): Set the reserved bit
1375         to (1 << 0) instead of (1 << 30). 
1376
1377 2001-12-14  James Henstridge  <james@daa.com.au>
1378
1379         * Makefile.am: add rules to build it.
1380
1381         * testoverride.c: test program for closure override/chaining.
1382
1383 Thu Dec 13 08:03:17 2001  Tim Janik  <timj@gtk.org>
1384
1385         * gsignal.c: implemented closure chaining.
1386
1387 2001-12-08  Christopher Blizzard  <blizzard@redhat.com>
1388
1389         * gsignal.h (g_signal_connect): Explicitly add a cast to the last
1390         argument so that the macro will work from C++.
1391
1392 2001-12-06  Tor Lillqvist  <tml@iki.fi>
1393
1394         * makefile.mingw.in (gobject_OBJECTS): Add gsourceclosure.o.
1395
1396 Mon Nov 26 09:55:12 2001  Tim Janik  <timj@gtk.org>
1397
1398         * gtype.h: typedef GType to gulong instead of gsize, if possible.
1399
1400         * gtype.c: fixups for GType being sizeof(long) wide (changed
1401         UINT casts).
1402         * gsignal.c:
1403         * gclosure.c:
1404         * gparam.c: likewise.
1405
1406 Sun Nov 25 22:33:32 2001  Tim Janik  <timj@gtk.org>
1407
1408         * gtype.h: removed enum GTypeFundamentals. use macros
1409         to provide the constant fundamental type IDs, so they
1410         all return numbers of type GType, and not int.
1411         sizeof(GTypeFundamentals) < sizeof(GType) problem reported
1412         and fix sugegsted by Havoc.
1413
1414 2001-11-23  Hans Breuer  <hans@breuer.org>
1415
1416         * gobject.def : updated externals
1417
1418 Mon Nov 19 14:35:56 2001  Owen Taylor  <otaylor@redhat.com>
1419  
1420         * *.h: Improve the detection of invalid includes by moving
1421         the test outside the duplicate include guards.
1422  
1423         * gsourceclosure.c (g_source_set_closure): Doc fix.
1424
1425 Thu Nov 22 03:30:57 2001  Tim Janik  <timj@gtk.org>
1426
1427         * gvalue.h (G_TYPE_IS_VALUE): use g_type_check_is_value_type()
1428         instead of g_type_value_table_peek().
1429
1430         * gtype.[hc] (type_check_is_value_type_U): speed up check
1431         LOCK-less by caching lookups in node->mutatable_has_value_table.
1432
1433         * gtype.[hc]: removed locks where possible. partly based on
1434         patches from owen and alex.
1435
1436 Thu Nov 22 00:26:26 2001  Tim Janik  <timj@gtk.org>
1437
1438         * gtype.[hc]: provide G_TYPE_FUNDAMENTAL_SHIFT and
1439         g_type_fundamental_next() to return next usable fundamental
1440         type. use TypeNode pointers as type IDs.
1441         
1442 2001-11-22  Tor Lillqvist  <tml@iki.fi>
1443
1444         * makefile.mingw.in (DEFINES): Set G_LOG_DOMAIN as in Makefile.am.
1445
1446         * gparamspecs.h (GOBJECT_VAR): Can't use GLIB_VAR here, as that
1447         makes sense only when building libglib. GOBJECT_VAR is similar for
1448         libgobject.
1449
1450         * gobject.def: Add g_param_spec_types, remove
1451         g_type_fundamental_branch_last.
1452
1453 Wed Nov 21 17:23:33 2001  Tim Janik  <timj@gtk.org>
1454
1455         * gparamspecs.[hc]: put newly created param spec types into a
1456         global array.
1457
1458         * gboxed.[hc]: moved boxed types with _get_type() function here,
1459         for: G_TYPE_CLOSURE, G_TYPE_VALUE, G_TYPE_VALUE_ARRAY,
1460         G_TYPE_GSTRING.
1461
1462         * gtype.h: removed fundamental branch APIs and derived enum
1463         values. define GType as gsize.
1464
1465 2001-11-19  jacob berkman  <jacob@ximian.com>
1466
1467         * gobjectnotifyqueue.c: include glib-object.h rather than
1468         gobject/gobject.h
1469
1470 2001-11-16  Mark McLoughlin  <mark@skynet.ie>
1471
1472         * glib-mkenums.in: allow the enums name to not be on the same
1473         line as the trailing '}'. (#64714)
1474
1475 2001-11-18  Hans Breuer  <hans@breuer.org>
1476
1477         * makefile.msc.in : remove g_log_domain_gruntime usage
1478
1479 Sat Nov 17 18:14:40 2001  Owen Taylor  <otaylor@redhat.com>
1480
1481         * glib-genmarshal.c: Exit with non-zero exit status if
1482         any errors were encountered.
1483
1484         * glib-genmarshal.c: Instead of generating gobject/gmarshal.h
1485         #include only for the header, generate glib-object.h 
1486         #include for both the header and body. (#63834)
1487
1488         * glib-genmarshal.c: Generate include guards around the 
1489         content unless --nostdinc is specified.
1490
1491 2001-11-17  Tor Lillqvist  <tml@iki.fi>
1492
1493         * gobject.def: Add g_pointer_type_register_static.
1494
1495 2001-11-15  Tor Lillqvist  <tml@iki.fi>
1496
1497         * gobject.def: Reflect recent changes.
1498
1499 Tue Nov 13 23:18:10 2001  Tim Janik  <timj@gtk.org>
1500
1501         * gsignal.[hc]: add API for chaining:
1502         g_signal_chain_from_overridden() and g_signal_override_class_closure(),
1503         implementation yet to come.
1504
1505         * gtype.[hc], Makefile.am: provide G_LOG_DOMAIN as compile flag.
1506         
1507         * gparam.[hc]: s/g_param_get/g_param_spec_get/ for get_nick,
1508         get_name and get_blurb, to be consistent with the rest of the
1509         g_param_spec_*() functions.
1510         
1511         * gparamspecs.[hc]: got rid of bogus GClosure paramspec.
1512         G_TYPE_CLOSURE is a boxed type already.
1513         
1514 Tue Nov 13 22:16:41 2001  Tim Janik  <timj@gtk.org>
1515
1516         * gtype.[hc]: API cleanups.
1517         remove g_type_check_flags(), provide g_type_test_flags() as
1518         a *private* function.
1519         s/g_type_check_is_a/g_type_check_class_is_a/, private function.
1520         s/g_type_instance_is_a/g_type_check_instance_is_a/, also private.
1521
1522 Tue Nov 13 20:02:47 2001  Tim Janik  <timj@gtk.org>
1523
1524         * gparam.h: fix standard type macros.
1525
1526 Wed Nov  7 00:56:00 2001  Tim Janik  <timj@gtk.org>
1527
1528         * gclosure.h: provide G_CLOSURE_N_NOTIFIERS() for people that need
1529         to walk the notifier list (puhh, black magic, stay-away-warning ;).
1530
1531 Mon Nov  5 18:59:08 2001  Tim Janik  <timj@gtk.org>
1532
1533         * gobject.h: 
1534         * gsignal.h: we need signal.h for G_BREAKPOINT().
1535
1536 Sun Nov  4 14:01:23 2001  Owen Taylor  <otaylor@redhat.com>
1537
1538         * gvaluetypes.[ch]: Add a function g_pointer_type_register_static()
1539         to register a type derived from G_TYPE_POINTER.
1540
1541 2001-11-03  Hans Breuer  <hans@breuer.org>
1542
1543         * makefile.msc.in : gobject-query needs gmarshal.[hc,stings]
1544         so build it after them. Add gsourceclosure.obj. 
1545
1546         * gobject.def : removed duplicates, added mising
1547
1548 Mon Oct 29 11:05:15 2001  Owen Taylor  <otaylor@redhat.com>
1549
1550         * glib-mkenums.in: Generate glib-mkenums from glib-mkenums.in, 
1551         substituting in path to perl.  (#63093, Dan Winship)
1552
1553         * Makefile.am (bin_SCRIPTS): Remove hack to copy glib-mkenums
1554         from srcdir.
1555
1556 2001-10-26  Tor Lillqvist  <tml@iki.fi>
1557
1558         * makefile.mingw.in: When running glib-genmarshal, set PATH to
1559         include ../glib.
1560
1561 2001-10-23  Tor Lillqvist  <tml@iki.fi>
1562
1563         * Makefile.am: (Win32): If we have built the MSVC import library,
1564         install it. Install the gcc import library. Also support
1565         uninstall.
1566
1567 2001-10-13  Matthias Clasen  <matthiasc@poet.de>
1568
1569         * glib-genmarshal.1, glib-mkenums.1: Typo fixes.
1570
1571 Fri Oct 12 18:40:18 2001  Tim Janik  <timj@gtk.org>
1572
1573         * cosmetic fixups.
1574
1575 Wed Oct 10 17:25:22 2001  Joshua N Pritikin  <vishnu@pobox.com>
1576
1577         * glib-genmarshal.c gparamspecs.[ch] gtype.[ch] gvalue.h
1578         gvaluecollector.h gvaluetypes.[ch]: Fill in missing support for
1579         gint64 & guint64 (#59254).
1580         
1581         * Unconditionalize same (compile with or without G_HAVE_INT64).
1582
1583 Wed Oct 10 15:38:58 2001  Joshua N Pritikin  <vishnu@pobox.com>
1584
1585         * gparamspecs.h (G_IS_PARAM_SPEC_FLAGS): Fix order of
1586         *_PARAM_SPEC_ULONG defines.
1587
1588 Thu Oct  4 01:10:52 2001  Owen Taylor  <otaylor@redhat.com>
1589
1590         * gparamspecs.h: Add missing G_HAVE_GINT64 conditionalization.
1591
1592 Wed Oct  3 16:02:24 2001  Owen Taylor  <otaylor@redhat.com>
1593
1594         * glib-genmarshal.c gparamspecs.[ch] gvalue.h 
1595         gobject/gvaluetypes.[ch]: Add support for G_TYPE_INT64
1596         and storing it in GValue (Patch from Mathieu Lacage, #59254.)
1597
1598 2001-10-03  jacob berkman  <jacob@ximian.com>
1599
1600         * gtype.c (type_iface_retrieve_holder_info_Wm): 
1601         (type_iface_vtable_init_Wm): 
1602         (type_iface_vtable_finalize_Wm): 
1603         (g_type_class_ref): 
1604
1605         * gobject.c (g_object_get_property): s/retrive/retrieve/
1606
1607 2001-09-25  Tor Lillqvist  <tml@iki.fi>
1608
1609         * Makefile.am: Use new macros for .def file, and check for
1610         MS_LIB_AVAILABLE, new rule to build MS import library.
1611
1612         * makefile.msc.in: Use same DLL and import library names as
1613         libtool.
1614         
1615 2001-09-21  Hans Breuer  <hans@breuer.org>
1616
1617         * gobject.def : updated externals
1618
1619 2001-09-19  Tor Lillqvist  <tml@iki.fi>
1620
1621         * gobject.rc.in: Correct InternalName and OriginalFilename to
1622         match what we actually produce.
1623
1624 Tue Sep 18 23:09:02 2001  Tim Janik  <timj@gtk.org>
1625
1626         * gparam.[hc]: rename *nick and *blurb fields to catch
1627         direct accesses in third party code.
1628         provide g_param_get_nick(), g_param_get_blurb() and
1629         g_param_get_name() accessors.
1630
1631 Mon Sep 10 20:31:37 2001  Tim Janik  <timj@gtk.org>
1632
1633         * gobject.[hc]: removed extraneous GObject* returns from a
1634         couple functions that are very unlikely to be used in nested.
1635         changed gpointer->GObject* for a couple return values/arguments.
1636         this fixes #50206.
1637
1638 Mon Sep 10 19:27:47 2001  Tim Janik  <timj@gtk.org>
1639
1640         * gtype.[hc]:
1641         g_type_add_interface*(): implement the ability to add an interface to
1642         a type whose parents already conform to this interface.
1643         such "overriding" interfaces, when initialized, are not just initialized
1644         with 0, but with a copy of the interface they override.
1645         g_type_interface_peek_parent(): new function, return the interface
1646         that this interface "overrides", if any.
1647
1648         * testgruntime.c: test new interface stuff.
1649
1650 2001-09-10  Alex Larsson  <alexl@redhat.com>
1651
1652         * gobject/gboxed.[ch]:
1653         * gobject/gsourceclosure.c:
1654         Removed is_refcounted and GBoxedInitFunc from
1655         g_boxed_type_register_static().
1656
1657 Sat Sep  8 14:13:57 2001  Owen Taylor  <otaylor@redhat.com>
1658
1659         * gobject/Makefile.am: Move gbsearcharray.[ch] to glib
1660         as a private ininstalled header.
1661
1662 Tue Sep  4 22:24:48 2001  Matthias Clasen  <matthiasc@poet.de>
1663
1664         * gobject.c (g_object_base_class_finalize): typo fix.
1665
1666 Tue Sep  4 01:49:18 2001  Tim Janik  <timj@gtk.org>
1667
1668         * gsourceclosure.c: make closure_callback_funcs static,
1669         added some g_return_if_fail() statements.
1670
1671 Mon Aug 27 14:55:27 2001  Owen Taylor  <otaylor@redhat.com>
1672
1673         * gsourceclosure.[ch] (g_source_set_closure): Implement.
1674
1675         * gsourceclosure.[ch]: Add GType's for GIOChannel, GIOCondition.
1676
1677 2001-08-17  James Henstridge  <james@daa.com.au>
1678
1679         * gobject.c (WeakRefStack): add an object member to the structure.
1680         (weak_refs_notify): pass wstack->object as extra argument to
1681         notify functions.
1682         (g_object_weak_ref): set wstack->object when initialising
1683         WeakRefStack.
1684
1685         * gobject.h (GWeakNotify): add second argument to prototype which
1686         gives the pointer to where the object that is being disposed of
1687         was.
1688
1689 Wed Jul 18 19:42:31 2001  Tim Janik  <timj@gtk.org>
1690
1691         * gtype.h: if __GNUC__ is defined, inline a test for an exact type
1692         match for instances and classes in G_TYPE_CHECK_INSTANCE_TYPE() and
1693         G_TYPE_CHECK_CLASS_TYPE() before calling g_type_instance_is_a().
1694
1695 Sun Aug 12 02:07:10 2001  Tim Janik  <timj@gtk.org>
1696
1697         * gvaluearray.[hc]: fix preallocation logic, support DISABLE_MEM_POOLS
1698         properly, group value allocations.
1699         (g_value_array_new): fix semantic of n_prealloced argument, so it's
1700         really just about preallocation space.
1701
1702 2001-07-23  Padraig O'Briain <Padraig.Obriain@Sun.COM>
1703         
1704         * gobject/gobjectnotifyqueue.c: fix unconditional check of
1705         first GParamSpec in g_object_notify_queue_thaw(); to prevent
1706         property notification being lost.
1707
1708 2001-08-06  Sven Neumann  <sven@gimp.org>
1709
1710         * gobject.[ch]: 
1711         added new functions g_object_[add|remove]_weak_pointer().
1712
1713 2001-08-01  Sven Neumann  <sven@gimp.org>
1714
1715         * gsignal.h: added convenience macro g_signal_connect_after().
1716
1717 2001-07-29  Hans Breuer  <hans@breuer.org>
1718
1719         * gobject.def : updated externals
1720
1721 2001-07-20  Hans Breuer  <hans@breuer.org>
1722
1723         * gobject.def : updated externals
1724
1725         * makefile.msc.in : reflect glib move
1726
1727 Tue Jul 10 18:50:16 2001  Tim Janik  <timj@gtk.org>
1728
1729         * gsignal.h (struct _GSignalQuery): fix misplaced comment.
1730
1731 Mon Jul  2 07:17:47 2001  Tim Janik  <timj@gtk.org>
1732
1733         * gobject.c (g_object_weak_ref): 
1734         (g_object_watch_closure): congrats tim, introducing of-by-one
1735         errors like on my very first day of C programming.
1736
1737 Sat Jun 30 11:07:00 2001  Tim Janik  <timj@gtk.org>
1738
1739         * gobject.[hc]: provide weak_ref/weak_unref functions,
1740         invoked from ->dispose. renamed ->shutdown() to ->dispose(),
1741         provide "public" API entry here: g_object_run_dispose(), this
1742         fucntion should _only_ be called from object system implementations
1743         (e.g. gtkobject.c) if at all.
1744
1745         * gtypemodule.c (g_type_module_dispose): s/shutdown/dispose/
1746
1747         * gsignal.h: removed compat aliases.
1748
1749         * gobject.c (g_object_connect): support data objects.
1750         
1751 Sat Jun 30 13:17:12 2001  Owen Taylor  <otaylor@redhat.com>
1752
1753         * testgruntime.c (test_object_class_init)
1754           gobject.c (g_object_do_class_init): 
1755           g_signal_newc() => g_signal_new().
1756
1757 Thu Jun 28 22:49:40 2001  Owen Taylor  <otaylor@redhat.com>
1758
1759         * gtype.[ch] gobject-query.c testgruntime.c: Remove
1760         debug flag argument to g_type_init() and add
1761         g_type_init_with_debug_flags().
1762
1763 Thu Jun 28 16:42:49 2001  Tim Janik  <timj@gtk.org>
1764
1765         * gsignal.c (g_signal_lookup): 
1766         (g_signal_list_ids): give elaborate warnings about invalid types,
1767         non-instantiatable types and unloaded types that we can't operate on.
1768
1769         * gparam.[hc]: g_param_spec_pool_belongings() ->
1770         g_param_spec_pool_list_owned().
1771
1772         * gsignal.[hc]: renamed:
1773         g_signal_newc -> g_signal_new
1774         g_signal_disconnect_by_func -> g_signal_handlers_disconnect_by_func
1775         g_signal_block_by_func -> g_signal_handlers_block_by_func
1776         g_signal_unblock_by_func -> g_signal_handlers_unblock_by_func
1777         added GConnectType to simplify (..gboolean swapped, gboolean after)
1778         args.
1779
1780         * gobject.[hc]: changed prototypes accordingly.
1781
1782 2001-06-22  Hans Breuer  <hans@breuer.org>
1783
1784         * gobject.def : updated externals
1785
1786         * gobjectnotifyqueue.c : include <string.h> for memset ()
1787
1788 Thu Jun 21 02:43:10 2001  Tim Janik  <timj@gtk.org>
1789
1790         * gparamspecs.h: s/long/int/ for default_value in enum and flags
1791         pspecs.
1792
1793 Wed Jun 20 03:59:42 2001  Tim Janik  <timj@gtk.org>
1794
1795         * gtype.[hc]: added debugging variants g_type_name_from_class(),
1796         g_type_name_from_instance().
1797
1798 Mon Jun 11 17:07:06 2001  Tim Janik  <timj@gtk.org>
1799
1800         * gboxed.[hc]: remove left-over usages of an anonymous GBoxed typedef.
1801
1802         * gobjectnotifyqueue.c: moved property notify queue implementation
1803         bits into this function.
1804
1805         * gparam.[hc]: added g_param_spec_pool_belongings(), completed
1806         g_param_spec_pool_list(). added GParameter for _setv() functions.
1807
1808         * gobject.[hc]: use gobjectnotifyqueue.h implementation now.
1809         got rid of properties_changed signal.
1810         new functions g_object_newv(), g_object_class_list_properties().
1811         removed "properties_changed" signal.
1812
1813         * gtype.[hc]: added g_type_depth() to figure number of parent
1814         types + 1 for a type.
1815
1816         * gsignal.h: add g_signal_connect() (as per owen's request) and
1817         g_signal_connect_swapped().
1818
1819 2001-06-13  Havoc Pennington  <hp@redhat.com>
1820
1821         * Makefile.am (progs_LDADD): link to ./libgobject-1.3.la
1822         since an installed libgobject was somehow being found; think 
1823         it's a libtool bug, but this workaround should do for now.
1824
1825 2001-06-12  Havoc Pennington  <hp@redhat.com>
1826
1827         * Makefile.am (glib-mkenums): don't put $(srcdir)/glib-mkenums in
1828         bin_SCRIPTS, that breaks make install. Instead put 'glib-mkenums'
1829         in bin_SCRIPTS and cp it into builddir
1830
1831 Thu May 31 17:56:47 2001  Owen Taylor  <otaylor@redhat.com>
1832
1833         * gobject-query.c: Fix mispelling in help output.
1834         (#53952, Skip Montanaro)
1835
1836 2001-05-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1837
1838         * Makefile.am (EXTRA_DIST): Really distribute glib-mkenums, now
1839         that bin_SCRIPTS doesn't seem to care about doing so anymore.
1840
1841 Mon May 28 06:51:24 2001  Tim Janik  <timj@gtk.org>
1842
1843         * gsignal.c (signal_emit_unlocked_R): fixed bad faux-pass, forgot
1844         to release signal lock when restarting emissions.
1845
1846 Sun May 27 04:52:28 2001  Tim Janik  <timj@gtk.org>
1847
1848         * gsignal.[hc] (g_signal_stop_emission_by_name): added variant
1849         to stop signal emissions through a detailed_signal string.
1850
1851         * gsignal.c (signal_emit_R) (g_signal_emit_valist): account for
1852         the fact that g_value_* functions may cause signal emissons by
1853         unlocking the global signal system lock around g_value_* functions.
1854         (signal_emit_unlocked_R): renamed this from signal_emit_R() to reflect
1855         that this functions acquires the lock on its own now.
1856
1857 2001-05-24  Hans Breuer  <hans@breuer.org>
1858
1859         * makefile.msc.in : changed depndencies to build glib-genmarshal
1860         first and statically linked with glib, which makes it independent
1861         from the installed glib version. Added new object files to build.
1862
1863         * gobject.def : updated
1864
1865 Thu May 24 08:52:02 2001  Owen Taylor  <otaylor@redhat.com>
1866
1867         * gobject.[ch] (g_value_set_object): gpointer, not
1868         gpointer *.
1869
1870 2001-05-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1871
1872         * Makefile.am (bin_SCRIPTS): made 'make distcheck' happy.
1873
1874         * gobject.def: Removed g_param_spec_stringc.
1875
1876 Tue May 22 02:46:13 2001  Tim Janik  <timj@gtk.org>
1877
1878         * gobject.c (g_value_set_object): make g_value_set_object()
1879         take a gpointer v_object so people don't need to G_OBJECT()
1880         cast NULL pointers (C code convenience).
1881
1882 Mon May 14 01:49:01 2001  Tim Janik  <timj@gtk.org>
1883
1884         * gsignal.[hc] (g_signal_handler_is_connected): new function
1885         to check whether a handler is still connected to an instance
1886         (by handler id).
1887
1888 Thu May 10 14:00:48 2001  Tim Janik  <timj@gtk.org>
1889
1890         * gparamspecs.[hc]: removed g_param_spec_stringc() in lack of
1891         evidence of public need.
1892
1893         * gsignal.h: added g_signal_disconnect_by_func(),
1894         g_signal_block_by_func() and g_signal_unblock_by_func() convenience
1895         macros as per owen's request.
1896
1897         * gtype.c (SIZEOF_FUNDAMENTAL_INFO): align sizeof (GTypeFundamentalInfo)
1898         to size of longs and pointers.
1899
1900 2001-05-05  James Henstridge  <james@daa.com.au>
1901
1902         * Makefile.am: glib-mkenums is not a compiled program, so shouldn't
1903         be in the bin_PROGRAMS primary.  Put it in bin_SCRIPTS instead, and
1904         removed the glib_mkenums_SOURCES var.
1905
1906 Thu May  3 06:10:23 2001  Owen Taylor  <otaylor@redhat.com>
1907
1908         * gobject.c (g_object_set_[q]data_full): Make types of ternary
1909         operator correspond. (Fixes compilation errors with Sun CC,
1910         #52230)
1911
1912 Mon Apr 30 20:03:56 2001  Tim Janik  <timj@gtk.org>
1913
1914         * glib-mkenums (usage): removed \v escaping, newer perl versions don't
1915         support this, and it'S probably useless anyways.
1916
1917 Sat Apr 28 23:39:42 2001  Tim Janik  <timj@gtk.org>
1918
1919         * gsignal.[hc]: made signal handler and emission hook ids gulongs.
1920         (signal_handlers_foreach_matched_R): only invoke callback for handlers
1921         that are not disconnected (id>0).
1922         (signal_emit_R): prevent invocation of signal handlers during the
1923         emission they were connected within.
1924         
1925         * glib-mkenums: publically installed perl-script to parse C code
1926         enums and generate descriptions thereof.
1927         * glib-mkenums.1: assorted man page.
1928         
1929 2001-04-19  Havoc Pennington  <hp@redhat.com>
1930
1931         * gobject.c (g_object_get_valist): We were returning junk memory
1932         here, because we didn't copy the value (G_VALUE_NOCOPY_CONTENTS
1933         passed to G_VALUE_LCOPY) and then we freed the GValue immediately
1934         after. Removed G_VALUE_NOCOPY_CONTENTS from here; need a
1935         G_VALUE_STEAL_CONTENTS or the like if we want this optimization.
1936
1937 Wed Apr 18 09:46:56 2001  Owen Taylor  <otaylor@redhat.com>
1938
1939         * gobject.c gsignal.c: Change C++ comments for FIXME's to
1940         C comments. (Patch from Andres Salomon)
1941
1942 2001-04-14  Hans Breuer  <hans@breuer.org>
1943
1944         * gobject.def : updated
1945
1946 Mon Apr  9 18:56:15 2001  Tim Janik  <timj@gtk.org>
1947
1948         * gclosure.c (g_closure_invoke): only require marshal/meta_marshal if
1949         we're valid (about to actually do marshalling).
1950
1951 Tue Apr  3 20:23:24 2001  Tim Janik  <timj@gtk.org>
1952
1953         * NEWS: updates.
1954
1955 Tue Apr  3 14:06:00 2001  Tim Janik  <timj@gtk.org>
1956
1957         * gparam.[hc]: added g_param_spec_pool_list() to list pspecs per
1958         owner_type. the pspecs are not referenced, so the caller is
1959         supposed to have some idea about owner_type not randomly
1960         nuking his pspec's. if this is going to provide problems in
1961         the future, we can either auto-ref the pspecs, or add a
1962         _foreach variant, though the latter would have to invoke
1963         the callback while pspec's mutex is acquired, so i just
1964         went for the _list variant for now.
1965
1966         * gclosure.h (G_CALLBACK): made GCallback a void (*) (void) fucntion.
1967
1968 Sat Mar 31 23:55:58 2001  Tim Janik  <timj@gtk.org>
1969
1970         * gtype.h:
1971         * gparamspecs.[hc]: applied patch from owen to implement
1972         GParamSpecUnichar.
1973
1974 Fri Mar 30 07:34:02 2001  Tim Janik  <timj@gtk.org>
1975
1976         * gtype.c (type_iface_retrive_holder_info_Wm): 
1977         * gtypeplugin.c (g_type_plugin_complete_interface_info): 
1978         * gtypemodule.c (g_type_module_complete_interface_info): 
1979         change order of instance_type and interface_type so they match
1980         the g_type_add_interface_*() API.
1981
1982         * gsignal.c (g_signal_emit_valist): always assign C return value
1983         location, people depending on unaltered return values after emissions
1984         that had no handlers to run need to use g_signal_emitv().
1985
1986         * gtype.[hc] (g_type_query): new function to allow querying of
1987         class and object size (semantics like g_signal_query()).
1988         currently the implementation is better held conservative so as to
1989         only support types that are classed and static.
1990
1991 2001-03-29  Tor Lillqvist  <tml@iki.fi>
1992
1993         * gobject.def: Updates.
1994
1995 Wed Mar 28 17:04:06 2001  Tim Janik  <timj@gtk.org>
1996
1997         * gobject.c (object_queue_property): only queue readable properties
1998         for notification changes.
1999
2000 Thu Mar 22 13:36:50 2001  Tim Janik  <timj@gtk.org>
2001
2002         * gsignal.c (g_signal_newv): catch G_SIGNAL_RUN_FIRST with a return value.
2003
2004 2001-03-21  Martin Baulig  <baulig@suse.de>
2005
2006         * gboxed.[ch] (g_value_dup_boxed): This takes a `const GValue *'
2007         argument.
2008
2009 2001-03-18  Tor Lillqvist  <tml@iki.fi>
2010
2011         * gobject.def: Correct some renamed functions.
2012
2013 Sat Mar 17 23:18:36 2001  Tim Janik  <timj@gtk.org>
2014
2015         * gobject.c (g_object_get_property): minor bug-fix.
2016
2017         * gbsearcharray.[hc]: provide a macro for static initialization and
2018         functions g_bsearch_array_new() and g_bsearch_array_destroy() for
2019         dynamic allocations.
2020         
2021         * gboxed.c: introduce G_TYPE_GSTRING, boxed type for GString.
2022         
2023         * gclosure.[hc]: naming corrections.
2024
2025 Fri Mar  9 16:42:08 2001  Tim Janik  <timj@gtk.org>
2026
2027         * gvaluetypes.[hc]: moved g_strdup_value_contents() into this file as
2028         a public function (was static in gobject.c before). it's a bit odd
2029         to have that function here, especially since it requires extra includes,
2030         but then it doesn't very well fit somewhere else either.
2031
2032         * gparamspecs.c: added default/max/min checks to param spec creation
2033         functions.
2034
2035 2001-03-10  Tor Lillqvist  <tml@iki.fi>
2036
2037         * gobject.def: Add a couple of missing entries.
2038
2039         * Makefile.am (libgobject_1_3_la_LIBADD): Use only on Win32.
2040
2041 Fri Mar  9 14:57:17 2001  Tim Janik  <timj@gtk.org>
2042
2043         * testgruntime.c: test program. covers run first/last/cleanup signal
2044         handlers, return value accumulator, signal string returns, and
2045         interface types in signal arguments.
2046
2047         * gtype.c (g_type_value_table_peek): for interface types without
2048         value table, try looking up a value table from an instantiatable
2049         prerequisite type (this is safe as an interface may only have
2050         one instantiatable prerequisiste).
2051         (type_check_is_value_type_U): same here.
2052
2053         * gsignal.c (g_signal_newv): assert that return types never have
2054         G_SIGNAL_TYPE_STATIC_SCOPE set.
2055         (g_signal_newc): only create class closure if the class_offset is not
2056         0.
2057
2058 Fri Mar  9 10:14:00 2001  Tim Janik  <timj@gtk.org>
2059
2060         * gparamspecs.c (g_param_spec_object): use g_type_is_a() to check
2061         for object_type being a G_TYPE_OBJECT, not G_TYPE_IS_OBJECT(), since
2062         that wouldn't allow interface types.
2063
2064         * gtype.c (g_type_interface_add_prerequisite): arg, fixed small cnp bug
2065         with bad implications and an off-by-one error.
2066
2067 Thu Mar  8 16:34:22 2001  Owen Taylor  <otaylor@redhat.com>
2068
2069         * gvaluetransform.c: Include <string.h> for memcpy.
2070
2071         * gvaluetransform.c (DEFINE_SPRINTF): Remove unnecessary
2072         and ANSI-illegal ## token pasting.
2073
2074 Thu Mar  8 18:11:52 2001  Tim Janik  <timj@gtk.org>
2075
2076         * gsignal.c: eek, fixed old hook detail storage code.
2077
2078 Thu Mar  8 16:35:48 2001  Tim Janik  <timj@gtk.org>
2079
2080         * gparamspecs.[hc]: s/g_param_spec_string_c/g_param_spec_stringc/.
2081
2082         * gsignal.[hc]: fixed accumulator invocation, implemented emission
2083         hooks. and no, neither of these callbacks are called via a closure,
2084         language bindings can wrap the accumulator and emission hook
2085         interface, they already get parameters marshalled into a GValue array.
2086         (g_signal_connect): removed this function as its C specific, doesn't
2087         cover the swapped argument, is too close to its broken original
2088         gtk_signal_connect() and creates demand for _swapped, _after and
2089         _swapped_after variants <brrr>.
2090         (g_signal_connectc): convenience macro to connect a C handler
2091         func with data, like the old g_signal_connect() plus swapped
2092         argument.
2093
2094         * gtype.h:
2095         * gboxed.c: added G_TYPE_VALUE boxed type.
2096
2097 Wed Mar  7 19:02:51 2001  Tim Janik  <timj@gtk.org>
2098
2099         * gtype.c (type_node_add_iface_entry_W): catch when adding an interface
2100         to an ancestor of a child that already conforms to this interface.
2101         currently we spew a warning here, should we be silent?
2102         (g_type_interface_add_prerequisite): new function to add a prerequisite
2103         type to an interface, that must succeed an instance is_a prerequisite
2104         type check before the interface can be added to an instance. the
2105         prerequisite types are also suuported in is_a checks of the interface.
2106         (g_type_instance_is_a):
2107         (g_type_check_instance_cast):
2108         (g_type_check_instance): cleanups and optimizations.
2109         (g_type_class_is_a):
2110         (g_type_check_class_cast): same, also prevented these from accepting
2111         interface types, as class structures don't nest interfaces.
2112
2113 2001-03-07  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2114
2115         * Makefile.am: Avoid rebuilding everything everytime.
2116
2117 Wed Mar  7 09:36:33 2001  Tim Janik  <timj@gtk.org>
2118
2119         * gboxed.[hc]: changed prototype of g_boxed_type_register_static()
2120         to contain an optional init function and a hint at whether the
2121         boxed structure uses ref counting internally.
2122         added g_value_set_boxed_take_ownership().
2123         made G_TYPE_BOXED an abstract value type.
2124
2125         * genums.[hc]: made G_TYPE_ENUM and G_TYPE_FLAGS abstract value
2126         types.
2127
2128         * glib-genmarshal.c: argument type changes, preparation for third-party
2129         arg specification.
2130
2131         * gobject.[hc]: cleaned up get/set property code.
2132         added g_strdup_value_contents() to improve warnings.
2133
2134         * gparam.[hc]: added g_param_value_convert(), taking over responsibility
2135         of the old g_value_convert(). added G_PARAM_LAX_VALIDATION flag so
2136         validation alterations may be valid a part of the property setting
2137         process.
2138
2139         * gparamspecs.[hc]: made value comparisons stable (for sort applications).
2140         added GParamSpecValueArray, a param spec for value arrays and
2141         GParamSpecClosure. nuked the value exchange functions and
2142         GParamSpecCCallback.
2143
2144         * gtype.[hc]: catch unintialized usages of the type system with
2145         g_return_val_if_uninitialized(). introduced G_TYPE_FLAG_VALUE_ABSTRACT
2146         to flag types that introduce a value table, but can't be used for
2147         g_value_init(). cleaned up reserved type ids.
2148
2149         * gvalue.[hc]: code cleanups and saner checking.
2150         nuked the value exchange API. implemented value transformations, we
2151         can't really "convert" values, rather transforms are an anylogy to
2152         C casts, real conversions need a param spec for validation, which is
2153         why g_param_value_convert() does real conversions now.
2154
2155         * gvaluearray.[hc]: new files that implement a GValueArray, a struct
2156         that can hold inhomogeneous arrays of value (to that extend that it
2157         also allowes undefined values, i.e. G_VALUE_TYPE(value)==0).
2158         this is exposed to the type system as a boxed type.
2159
2160         * gvaluetransform.c: new file implementing most of the former value
2161         exchange functions as single-sided transformations.
2162
2163         * gvaluetypes.[hc]: nuked G_TYPE_CCALLBACK, added
2164         g_value_set_string_take_ownership().
2165
2166         * *.h: s/G_IS_VALUE_/G_VALUE_HOLDS_/.
2167
2168         * *.[hc]: many fixes and cleanups.
2169
2170         * many warning improvements.
2171
2172 Tue Feb 27 18:35:15 2001  Tim Janik  <timj@gtk.org>
2173
2174         * gobject.c (g_object_get_valist): urg, pass G_VALUE_NOCOPY_CONTENTS
2175         into G_VALUE_LCOPY(), this needs proper documenting.
2176
2177         * gparam.c: fixed G_PARAM_USER_MASK.
2178
2179         * gtype.c (type_data_make_W): 
2180         (type_data_last_unref_Wm): fixed invalid memory freeing.
2181
2182         * gobject.c (g_object_last_unref): destroy signal handlers associated
2183         with object, right before finalization.
2184
2185         * gsignal.c (g_signal_parse_name): catch destroyed nodes or signals
2186         that don't actually support details.
2187
2188         * gobject.[hc]: got rid of property trailers. nuked GObject
2189         properties "data" and the "signal" variants.
2190         (g_object_connect): new convenience function to do multiple
2191         signal connections at once.
2192         (g_object_disconnect): likewise, for disconnections.
2193
2194         * gparam.[hc] (g_param_spec_pool_lookup): took out trailer support.
2195
2196         * gvalue.[hc]: marked g_value_fits_pointer() and g_value_peek_pointer()
2197         as private (the latter got renamed from g_value_get_as_pointer()).
2198
2199 2001-02-21  Tor Lillqvist  <tml@iki.fi>
2200
2201         * *.h: Use G_BEGIN_DECLS and G_END_DECLS.
2202
2203         * Makefile.am: Use libglib-1.3.la from top_builddir. Invoke
2204         libtool with -no-undefined for Win32 and Cygwin.
2205
2206 Wed Feb 21 18:31:46 2001  Jonathan Blandford  <jrb@redhat.com>
2207
2208         * gsignal.h (g_signal_connect): Add g_signal_connect define to
2209         make porting from gtk_signal_connect easy.
2210
2211         * gsignal.c (g_signal_emit_valist): Use G_TYPE_FROM_INSTANCE
2212         (instance) instead of node->itype when initting the value.
2213
2214 2001-02-17  Havoc Pennington  <hp@pobox.com>
2215
2216         Applied patch from Soeren Sandmann:
2217         
2218         * gvaluetypes.c (g_value_get_string): G_CONST_RETURN
2219
2220         * gtype.c (g_type_name): G_CONST_RETURN
2221
2222         * gsignal.c (g_signal_name): G_CONST_RETURN
2223
2224         * gobject-query.c (main): const fix
2225
2226 Sat Feb 17 07:58:46 2001  Tim Janik  <timj@gtk.org>
2227
2228         * genums.h (G_TYPE_IS_FLAGS): patch from sven to fixup
2229         G_ENUM_CLASS_TYPE() macro.
2230
2231 Sat Feb 17 04:55:35 2001  Tim Janik  <timj@gtk.org>
2232
2233         * gtype.[hc]: changed collect_format, collect_value() and lcopy_format,
2234         lcopy_value() in the GTypeValueTable. the collect functions are now
2235         called only once per value, collect_format/lcopy_format are strings
2236         that enlist all necessary GTypeCValues to be varargs-collected.
2237
2238         * gvalue.h: ranamed STATIC_TAG to G_VALUE_NOCOPY_CONTENTS to indicate that
2239         a value shouldn't copy its contents.
2240
2241         * gvaluecollector.h: changed G_VALUE_COLLECT() and G_VALUE_LCOPY()
2242         macros to carry an additional argument (flags) that can be used
2243         to pass G_VALUE_NOCOPY_CONTENTS along to the collection functions.
2244
2245         * *.c: adapted collect_value() and lcopy_value() functions to the new
2246         prototypes, support G_VALUE_NOCOPY_CONTENTS where apropriate.
2247
2248         * gsignal.[hc]: introduced a G_SIGNAL_TYPE_STATIC_SCOPE flag that can
2249         be passed along (ORed) with the parameter types, indicating that the
2250         emission arguments are to be considered static for the scope of the
2251         emission. should be used with care and only if the caller knows that
2252         a parameter cannot be destroyed/freed from signal handlers connected
2253         to an emission.
2254
2255 Fri Feb 16 07:10:44 2001  Tim Janik  <timj@gtk.org>
2256
2257         * gclosure.c:
2258         (g_closure_ref):
2259         (g_closure_sink): make closure sinking explicit.
2260
2261         * gsignal.c:
2262         (g_signal_connect_data): 
2263         (g_signal_connect_closure): 
2264         (g_signal_connect_closure_by_id): 
2265         (g_signal_newv): perform explicit closure sinking.
2266
2267 Thu Feb  8 00:31:45 2001  Tim Janik  <timj@gtk.org>
2268
2269         * gtype.h: added G_TYPE_DEBUG_NONE for/from Eric Lemings ;)
2270
2271 2001-02-04  Tor Lillqvist  <tml@iki.fi>
2272
2273         * gobject.def: Remove glib_debug_objects.
2274
2275 Sun Feb  4 07:30:53 2001  Tim Janik  <timj@gtk.org>
2276
2277         * gtype.[hc]: changed g_type_init() to take debugging flags
2278         initially, a combination of G_TYPE_DEBUG_OBJECTS and
2279         G_TYPE_DEBUG_SIGNALS. using the G_TYPE_ prefix is a bit odd
2280         here, but basically g_type_int() serves as initialization
2281         fucntion for all of GType, GObject, GSignal, so what the heck.
2282
2283         * gobject.c: special case debugging code properly.
2284         changed glib_trap_object_ref to g_trap_object_ref.
2285
2286         * gsignal.c: add signal emission debugging abilities, along with
2287         a new trap object g_trap_instance_signals.
2288
2289 2001-02-04  Tor Lillqvist  <tml@iki.fi>
2290
2291         * Makefile.am (progs_LDADD): Change order of libs to libgobject
2292         first, then libglib. Needed for cygwin, says jbdoll@kepri.re.kr.
2293
2294 Wed Jan 31 06:19:49 2001  Tim Janik  <timj@gtk.org>
2295
2296         * gparam.h: gtk-doc sucks for not dealing with #define inside enums.
2297
2298         * gtype.[hc]: added G_TYPE_FLAG_RESERVED_ID_BIT, a bit in the type
2299         number that's supposed to be left untouched (preserved mainly
2300         for the signal code).
2301
2302         * *.c: added thread safety code, based on an old patch from sebastian.
2303         the remaining thread safety issues are now datalists on pspecs (to be
2304         solved im gdataset.c) and gvalue.c where locking concerns value exchange
2305         functionality only, and that's soon to be revised.
2306
2307 2001-01-27  Tor Lillqvist  <tml@iki.fi>
2308
2309         * makefile.msc.in: Don't try to compile gmarshal.c on its own.
2310
2311 2001-01-24    <alexl@redhat.com>
2312
2313         * gclosure.c (g_closure_unref):
2314         Don't leak closure->notifiers.
2315
2316 2001-01-05  Havoc Pennington  <hp@redhat.com>
2317
2318         * gparamspecs.c (g_param_spec_enum): set the value_type in the
2319         param spec; closes bug 40210
2320         (g_param_spec_flags): ditto for flags
2321
2322 2001-01-03  Alexander Larsson  <alexl@redhat.com>
2323
2324         * gobject.c:
2325         Move glib_debug_objects out of the G_ENABLE_DEBUG #ifdef.
2326
2327 Thu Dec 28 11:36:44 2000  Tim Janik  <timj@gtk.org>
2328
2329         * gbsearcharray.c (upper_power2): disable G_BSEARCH_ALIGN_POWER2
2330         fucntionality if DISABLE_MEM_POOLS is defined.
2331
2332         * gtype.c: honour DISABLE_MEM_POOLS.
2333
2334         * gsignal.c (g_signal_init): flag signal key bsearch array with
2335         G_BSEARCH_ALIGN_POWER2 to avoid excessive growth time. honour
2336         DISABLE_MEM_POOLS.
2337
2338         * gparam.h: added G_PARAM_READWRITE alias for (G_PARAM_READABLE |
2339                                                        G_PARAM_WRITABLE).
2340
2341 2000-12-15  Tor Lillqvist  <tml@iki.fi>
2342
2343         * gobject.def: Update.
2344
2345 2000-12-15  Havoc Pennington  <hp@pobox.com>
2346
2347         * gobject.c (g_object_do_class_init): use g_signal_newc
2348
2349         * gsignal.c (g_signal_newc): convenience function for signals
2350         created from C
2351         (g_signal_new_valist): added
2352         (g_signal_new): removed
2353
2354 Fri Dec 15 04:40:23 2000  Tim Janik  <timj@gtk.org>
2355
2356         * gparam.[hc]: add an instance member value_type so the default
2357         value of the pspec class can be overridden.
2358
2359 2000-12-14  Tor Lillqvist  <tml@iki.fi>
2360
2361         * makefile.mingw.in: Update, include parts from Makefile.am to
2362         build gmarshal.[ch]. Some day, we won't need these separate
2363         makefiles for Win32 compilation. I hope.
2364
2365         * makefile.msc.in: Update. No use trying to build gmarshal.[ch]
2366         here, it would require Unixish tools. MSVC users building from CVS
2367         sources are out of luck.
2368         
2369         * gobject.def: Update.
2370
2371 Wed Dec 13 09:31:26 2000  Tim Janik  <timj@gtk.org>
2372
2373         * gparamspecs.[hc]: add G_TYPE_PARAM_BOXED implementation.
2374
2375         * gobject.[hc]: minor fixes.
2376
2377 Tue Dec 12 23:38:02 2000  Tim Janik  <timj@gtk.org>
2378
2379         * Makefile.am: _never_ touch oldest-source-stamp.
2380         
2381         * gobject.[hc]: construct property handling fixes/improvements.
2382         fixed trailer handling in get/set property.
2383         
2384         * gparam.[hc]: implement param spec pool, got rid of param spec
2385         hashtable. the most prominent change is that e deal with type
2386         prefixes here.
2387         
2388 2000-12-12  Elliot Lee  <sopwith@redhat.com>
2389
2390         * Makefile.am:
2391           . You have to 'touch oldest-source-stamp' if you want to avoid having
2392           the Makefile constantly rebuild itself.
2393           . Fix marshaller generation rules to work with srcdir != builddir
2394             (there were issues with trying to run "./glib-genmarshal", etc.)
2395
2396 Mon Dec 11 04:44:11 2000  Tim Janik  <timj@gtk.org>
2397
2398         * gboxed.c: fixed dealing with collection/lcopy of NULL values.
2399         
2400         * gclosure.h: removed insane ramblings, added G_CALLBACK() a casting
2401         convenience macro.
2402         
2403         * Makefile.am: cleanups, marshaller generation rules.
2404         
2405         * gmarshal.[hc]: new files with GRuntime standard marshallers.
2406         
2407         * glib-genmarshal.c: fix log domain, support gruntime standard 
2408         marshallers, suport G_TYPE_PARAM, come with extern "C" and
2409         #include gmarshal.h.
2410         
2411         * glib-genmarshal.1: reflect glib-genmarshal.c updates.
2412         
2413         * gobject.[hc]: implement object constructor. rework parameter
2414         changed notification queueing, we support queue freezes now and
2415         don't dispatch from an idle handler anymore.
2416         parameter->property rename hassle.
2417         implemented ::properties_changed and ::notify::* signals for
2418         property change notification (the later supports property names
2419         as details). added signal connection and named data properties.
2420         (g_signal_connect_object): new function to setup while_alive
2421         connections.
2422         (g_object_class_install_property): sink properties now, since they
2423         are initially floating.
2424         (g_object_steal_data):
2425         (g_object_set_data_full):
2426         (g_object_set_data):
2427         (g_object_get_data): set/get data by using g_datalist_*() functions
2428         directly.
2429         (g_object_queue_param_changed): nuked.
2430         (g_object_freeze_notify): start queueing of property changes (freeze/
2431         thaw calls stack).
2432         (g_object_notify): announce changes of a certain property directly.
2433         (g_object_thaw_notify): process queue of property changes, therefore
2434         emitting GObject::notify::detail with detail being the changed
2435         properties names.
2436         (G_OBJECT_WARN_INVALID_PROPERTY_ID): saner macro variant of former
2437         G_WARN_INVALID_PARAM_ID().
2438         
2439         * gparam.[hc]: param specs are now initially floating and need to be
2440         sunken with g_param_spec_sink(), support G_TYPE_PARAM values.
2441         added G_PARAM_CONSTRUCT and G_PARAM_CONSTRUCT_ONLY parameter flags,
2442         required by GObjectClass.constructor().
2443         
2444         * gparamspecs.[hc]: added GParamSpecParam, GParamSpecPointer and
2445         GParamSpecCCallback, param specs for G_TYPE_PARAM, G_TYPE_POINTER
2446         and G_TYPE_CCALLBACK respectively.
2447         
2448         * gsignal.[hc]: cleanups.
2449         (signal_id_lookup): after walking the anchestry, try interfaces as well.
2450         (g_signal_new): new function to create signals from varargs type list.
2451         (g_signal_connect_closure): closure connection variant that works from
2452         signal name+detail.
2453         (g_signal_connect_data): c handler connection variant that works from
2454         signal name+detail.
2455         (g_signal_emit_valist): emit signal for an instance with paraneters
2456         collected from a va_list.
2457         (g_signal_emit): emit signal, taking parameters from varargs list.
2458         (g_signal_emit_by_name): same as g_signal_emit, working from
2459         signal name+detail.
2460         (signal_emit_R): return whether return_value needs to be altered.
2461         
2462         * gtype.[hc]: set log-domain to GRuntime, i'm slowly getting to all
2463         the points that need to reflect the upcoming rename.
2464         melt g_type_conforms_to() functionality into g_type_is_a(), as that
2465         is what we really want (liskov substitution principle).
2466         assorted changes to other files due to conforms_to->is_a.
2467
2468         * gvalue.[hc]: implemented g_value_set_instance() that sets a value
2469         from an instantiatable type via the value_table's collect_value()
2470         function (based on an idea from James Henstridge <james@daa.com.au>).
2471         cleanups/fixes.
2472         
2473         * gvaluetypes.[hc]: implement G_TYPE_CCALLBACK and G_TYPE_PARAM.
2474
2475 Wed Nov 29 13:30:05 2000  Tim Janik  <timj@gtk.org>
2476
2477         * gsignal.c (handlers_find): fix elliots "logic fix" that dereferences
2478         NULL nodes if C handlers are searched for specific signals.
2479
2480 2000-11-28  Elliot Lee  <sopwith@redhat.com>
2481
2482         * gsignal.c: Fix warnings about possible use of uninitialized
2483         variables, and fix logic that would leave 'node' unset in cases
2484         that it might be used in.
2485
2486         * glib-genmarshal.c: Fix warning about printf format.
2487
2488 2000-11-28  Tor Lillqvist  <tml@iki.fi>
2489
2490         * gboxed.c: Include <string.h> for memset ().
2491
2492 2000-11-22  Tor Lillqvist  <tml@iki.fi>
2493
2494         * gobject.def: Update.
2495
2496 2000-11-20  Havoc Pennington  <hp@redhat.com>
2497
2498         * gobject.c (g_object_get_data)
2499         (g_object_set_data)
2500         (g_object_set_data_full)
2501         (g_object_steal_data): More convenient data-setting functions
2502
2503 Wed Nov 15 20:58:05 2000  Owen Taylor  <otaylor@redhat.com>
2504
2505         * gtypemodule.c (g_type_module_use): If loading the
2506         module fails, don't increment the use count.
2507
2508 Thu Nov  9 01:49:43 2000  Tim Janik  <timj@gtk.org>
2509
2510         * gobject.h (G_WARN_INVALID_PARAM_ID): doh,
2511         s/BSE_OBJECT_TYPE_NAME/G_OBJECT_TYPE_NAME/; reported by Maas-Maarten
2512         Zeeman <maas@wanadoo.nl>.
2513
2514 Mon Nov 13 00:48:39 2000  Owen Taylor  <otaylor@redhat.com>
2515
2516         * Makefile.am (EXTRA_DIST): Add glib-genmarshal.1
2517
2518 2000-11-11  Tor Lillqvist  <tml@iki.fi>
2519
2520         * gtypemodule.c: Include stdlib.h for exit().
2521
2522         * makefile.{mingw,msc}.in (gobject_OBJECTS): Add gtypemodule.
2523
2524         * gobject.def: Add missing functions.
2525
2526 Sun Nov  5 13:21:28 2000  Owen Taylor  <otaylor@redhat.com>
2527
2528         * Makefile.am gtypemodule.[ch]: New basic implementation of
2529         GTypePlugin interface as a GObject. Dynamically loaded modules can
2530         register any number of types and interface on the module.
2531
2532 Sun Nov  5 10:25:40 2000  Owen Taylor  <otaylor@redhat.com>
2533
2534         * gsignal.c (handlers_find): When appending handlers and
2535         not matching on signal_id, use hlist->signal_id instead of 
2536         signal_id. Having the correct signal_id when unreffing
2537         the handlers makes things work a lot better.
2538
2539 2000-11-05  Tor Lillqvist  <tml@iki.fi>
2540
2541         * makefile.{mingw,msc}.in (gobject_OBJECTS): Add gtypeplugin.
2542
2543         * gobject.def: Update.
2544
2545 Sun Nov  5 05:22:55 2000  Tim Janik  <timj@gtk.org>
2546
2547         * gsignal.c:
2548         fixed a bag full of subtle bugs of immensive screw-up potential in
2549         handlers_find(), luckily no one found out about them yet ;)
2550         fixed signal_handlers_foreach_matched_R() so it operates on an
2551         initial handler list snapshot provided by handlers_find() to work
2552         around general reentrancy problems and to avoid multiple callback()
2553         invocations on the same handlers.
2554         this code is now officially 80% bug free (10% remaining for interface
2555         types, and 10% remaining for destroyed signals ;)
2556         
2557 Sat Nov  4 02:01:33 2000  Tim Janik  <timj@gtk.org>
2558
2559         * gsignal.c (_g_signals_destroy): valid signal nodes start out at 1.
2560
2561         * gtypeplugin.[hc]: new files holding a GTypePlugin interface
2562         implementation that provides the API required by GType to deal with
2563         dynamically loadable types.
2564
2565         * gtype.[hc]: displace any GTypePlugin business to gtypeplugin.h.
2566
2567 Fri Nov  3 07:35:00 2000  Tim Janik  <timj@gtk.org>
2568
2569         * gsignal.[hc]: prefix internal functions with '_'. renamed
2570         g_signal_connect_closure() to g_signal_connect_closure_by_id().
2571         added g_signal_parse_name() to retrive signal_id and detail quark
2572         from a signal name (internal).
2573
2574 Wed Nov  1 03:36:54 2000  Tim Janik  <timj@gtk.org>
2575
2576         * gobject.c (g_object_base_class_finalize): destroy all signals that
2577         the finalized obejct type introduced.
2578
2579         * gsignal.c (g_signals_destroy): don't require itype to have
2580         signals.
2581
2582         * gobject.c (g_object_do_finalize): make sure all signal handlers
2583         are destroyed.
2584
2585         * gsignal.[hc]:
2586         (g_signal_handler_find): only match on non-0 masks.
2587         (g_signal_handlers_block_matched):
2588         (g_signal_handlers_unblock_matched):
2589         (g_signal_handlers_disconnect_matched): new functions to block/unblock
2590         or disconnect handlers in groups.
2591
2592 2000-10-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2593
2594         * gvalue.c (exchange_entries_equal), gparam.c (param_spec_equals):
2595         made both functions return gboolean just for the little extra
2596         standard conformance now that GEqualFunc is introduced.
2597
2598 Mon Oct 30 05:52:45 2000  Tim Janik  <timj@gtk.org>
2599
2600         * gsignal.c (g_signal_list_ids): get rid of inline documentation owen
2601         added, the doc system would ignore it anyways (for some reason not
2602         aparent to me).
2603
2604 Mon Oct 30 03:00:07 2000  Tim Janik  <timj@gtk.org>
2605
2606         * gsignal.[hc] (g_signal_list_ids): renamed owen's g_type_signals(),
2607         added required mutex locks.
2608
2609 Sun Oct 29 02:31:03 2000  Owen Taylor  <otaylor@redhat.com>
2610
2611         * gsignal.c (g_type_signals): Fix problem where signals
2612         with "_" in them appeared twice in the result array.
2613
2614 Sun Oct 29 01:58:44 2000  Owen Taylor  <otaylor@redhat.com>
2615
2616         * gsignal.h: Add g_type_signals() - a function to list
2617         all signals for a given type.
2618
2619 Sat Oct 28 00:28:09 2000  Tim Janik  <timj@gtk.org>
2620
2621         * gclosure.c (g_closure_add_marshal_guards): fixed notifier position
2622         for post_marshal guard which was off at 0.
2623
2624 Fri Oct 27 21:49:31 2000  Tim Janik  <timj@gtk.org>
2625
2626         * gobject.[hc]: doh, fix argument order in for
2627         g_cclosure_new_object_swap and g_cclosure_new_object.
2628
2629 2000-10-28  Tor Lillqvist  <tml@iki.fi>
2630
2631         * makefile.{mingw,msc}.in: Make glib-genmarshal.exe.
2632
2633         * glib-genmarshal.c: Conditionalise include of unistd.h.
2634         Include <io.h> on Win32.
2635
2636         * gobject.def: Add some missing entry points.
2637
2638 Fri Oct 27 16:33:41 2000  Tim Janik  <timj@gtk.org>
2639
2640         * gsignal.[hc]: publically define GSignalInvocationHint structure
2641         that gets passed in to closure invocations. added signal details.
2642         renamed GSignalType to GSignalFlags to comply with conventions.
2643         quite some cleanups and minor fixes. avoid uneccessary handler list
2644         walks upon invocation of after handlers. relookup handler list for
2645         restarted emissions. preliminary abort normal handler invocation if
2646         after handler is encountered.
2647
2648         * glib-genmarshal.c:
2649         * gclosure.[hc]: moved invocation_hint to the end of the
2650         g_closure_invoke() arguments as sugegsted by kenelson.
2651         also made it a gpointer to be more generic. the invocation_hint
2652         is a caller specific thing that can be used to pass additional
2653         data in to closure invocations as documented with the caller
2654         invoking the closure.
2655
2656 Fri Oct 27 05:35:14 2000  Tim Janik  <timj@gtk.org>
2657
2658         * gobject.c (g_object_watch_closure): fixed realloc bug, reported
2659         by havoc.
2660
2661         * gsignal.c (g_signal_newv): fixed deadlock scenarion where
2662         g_signal_lookup() would be called with the signal lock being
2663         held. reported by james henstridge.
2664
2665         * gclosure.c (g_closure_set_meta_marshal): fixed memcpy/overwrite bug
2666         reported by owen.
2667
2668 2000-10-26  Tor Lillqvist  <tml@iki.fi>
2669
2670         * gbsearcharray.c (bsearch_array_insert): Fix gccisms (pointer
2671         arithmetic on void pointer, label without statement following.
2672
2673         * gtype.c (type_node_fundamental_info): Don't apply unary minus to
2674         result of sizeof operator, it can be unsigned. Cast first to
2675         gssize.
2676
2677         * gobject.def: Add new functions.
2678
2679         * makefile.{mingw,msc}.in: Add new objects.
2680
2681 2000-10-26  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2682
2683         * Makefile.am: Remove empty SUBDIRS line _again_, as that _still_
2684         prevents 'make dist' from working.
2685
2686 Wed Oct 25 19:11:03 2000  Owen Taylor  <otaylor@redhat.com>
2687
2688         * gbsearcharray.h (g_bsearch_array_get_nth): Don't use implicit
2689         casts from void * since this will get included from C++ too
2690         at times.
2691         
2692 Thu Oct 26 00:30:27 2000  Tim Janik  <timj@gtk.org>
2693
2694         * gvaluetypes.[hc]: added g_value_set_static_string().
2695
2696         * gboxed.[hc]: const corrections. added g_value_set_static_boxed().
2697
2698 Wed Oct 25 20:27:02 2000  Tim Janik  <timj@gtk.org>
2699
2700         * gtype.c (g_type_free_instance): for the moment, freeing object
2701         structures will fill their memory portion with 0xAA. there's a
2702         FIXME there, remove this line at a later point.
2703
2704 Tue Oct 24 23:10:26 2000  Tim Janik  <timj@gtk.org>
2705
2706         * glib-genmarshal.1:
2707         * glib-genmarshal.c: added publically installed marshaller generator.
2708
2709         * gtype.h: added G_TYPE_INSTANCE_GET_INTERFACE() to retrive a certain
2710         interface VTable from instances.
2711
2712 Mon Oct 23 08:28:15 2000  Tim Janik  <timj@gtk.org>
2713
2714         * gobject.[hc]: new functions for closure maintenance:
2715         (g_object_watch_closure): maintain validity of the object and
2716         the closure for objects that are used as data part of a closure.
2717         (g_cclosure_new_object): convenience function to create C closures
2718         that have an object as data argument.
2719         (g_closure_new_object): convenience function to create closures
2720         that have an object as data argument.
2721
2722         * gclosure.[hc]: implementation of GClosure mechanism.
2723         a closure is basically an encapsulation of a callback function
2724         and its environment. ideally, most places supporting callback
2725         functions will simply take a GClosure* pointer and thus unify
2726         callback environments wrg destroy notification etc.
2727         GClosure provides destroy notifiers for arbitrary data pointers,
2728         reference counting, invalidation notification (it can be invalidated
2729         which is merely a deactivate state) and a marshallinbg abstraction.
2730         GCClosure is also provided in these files, they present a specialized
2731         GClosure implementation for C language callbacks.
2732
2733         * genum.c: macro cleanups.
2734         
2735         * gboxed.[hc]: new files, for boxed type abstraction.
2736         (g_boxed_copy): copy a boxed structure
2737         (g_boxed_free): free a boxed structure
2738         (g_value_set_boxed):
2739         (g_value_get_boxed): standard GValue functions for boxed types
2740         (g_boxed_type_register_static): convenience function for easy
2741         introduction of new G_TYPE_BOXED derivatives.
2742
2743         * gparam.[hc]: introduced g_param_type_register_static(), a short hand
2744         for creation of new GParamSpec derived types.
2745
2746         * gtype.[hc]: many fixes, introduced ability to flag individual
2747         type nodes as ABSTRACT upon registration, added value_peek_pointer()
2748         to the value table to peek at GValue contents as a pointer for types
2749         that support this. fixed up GValue checks.
2750
2751         * gvalue.[hc]: added g_value_fits_pointer() and g_value_get_as_pointer()
2752         to peek at the value contents as pointer.
2753
2754         * *.[hc]: adaptions to type macro fixes and changes in the type
2755         registration API.
2756
2757         * many const corrections over the place.
2758
2759 Sat Oct 21 02:49:56 2000  Tim Janik  <timj@gtk.org>
2760
2761         * gtype.c (g_type_conforms_to): this function basically behaves like
2762         and is_a check, except that it _additionally_ features interfaces
2763         for instantiatable types. enforce this in the second branch as well
2764         (`type' conforms_to `type') even if `type' is not an interface type.
2765
2766 Fri Oct 20 15:31:04 2000  Tim Janik  <timj@gtk.org>
2767
2768         * gvaluetypes.[hc]: added G_TYPE_POINTER implementation from jrb.
2769
2770         * gtype.[hc]:
2771         * gobject.c:
2772         * gvaluetypes.c: added GTypeValueTable.value_peek_pointer and
2773         suitable implementations of this for G_TYPE_STRING, G_TYPE_OBJECT
2774         and G_TYPE_POINTER.
2775
2776 Mon Aug 21 04:13:37 2000  Tim Janik  <timj@gtk.org>
2777
2778         * gbsearcharray.[hc]: long standing needed generic implementation
2779         of a binary searchable, sorted and dynamically sized array.
2780
2781 2000-10-15  Raja R Harinath  <harinath@cs.umn.edu>
2782
2783         * Makefile.am (BUILT_EXTRA_DIST): New variable.
2784         (dist-hook): Handle $(BUILT_EXTRA_DIST).
2785         (*): Remove traces of @STRIP_{BEGIN,END}@.
2786         
2787 2000-09-29  Martin Baulig  <baulig@suse.de>
2788         
2789         Several minor ANSI C fixes.
2790
2791         Added missing casts:
2792         * gtype.c (type_class_init): 
2793         `(gpointer) bnode->data->class.class_init_base'
2794         in call to g_slist_prepend() and
2795         'GBaseInitFunc class_init_base = (GBaseInitFunc) slist->data'.
2796
2797         * gobject.c: Put text following #endif into comments.
2798
2799 2000-09-25  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2800
2801         * Makefile.am: Remove empty SUBDIRS line, as that prevents make
2802         dist from working.
2803
2804 Sat Sep  9 20:04:13 2000  Owen Taylor  <otaylor@redhat.com>
2805
2806         * gobject.c (g_object_last_unref): Move call to
2807         g_type_free_instance() here from g_object_do_finalize,
2808         since g_type_free_instance() can unload the object's
2809         implementation.
2810
2811 2000-07-27  Tor Lillqvist  <tml@iki.fi>
2812
2813         * gobject.c: No, don't mark glib_debug_objects for export here,
2814         it's handled specially in gtktypeutils.c.
2815
2816         * gobject.def: Export g_type_fundamental_last (the function).
2817
2818 2000-07-26  Tor Lillqvist  <tml@iki.fi>
2819
2820         * gobject.def
2821         * gobject.c: Mark glib_debug_objects for export/import as it is
2822         used by GTK+.
2823
2824 Sun Jul 23 17:23:35 2000  Tim Janik  <timj@gtk.org>
2825
2826         * gtype.[hc]: make g_type_fundamental_last() a function, avoiding all
2827         that extern variable clutter and avoiding further problems with thread
2828         safety.
2829
2830 2000-07-19  Tor Lillqvist  <tml@iki.fi>
2831
2832         * gparam.h
2833         * gvalue.h
2834         * gparam.c
2835         * gtype.c: Shut up Sun's picky compiler.
2836
2837 2000-07-14  Tor Lillqvist  <tml@iki.fi>
2838
2839         * gobject.def: Add g_type_get_plugin.
2840
2841 Thu Jul 13 02:07:54 2000  Tim Janik  <timj@gtk.org>
2842
2843         * gparam.c (g_param_value_defaults): default initialize the temporary
2844         default value, instead of nuking the caller's value contents.
2845
2846 2000-07-11  Raja R Harinath  <harinath@cs.umn.edu>
2847
2848         * gtype.c (g_type_get_plugin): Don't return just 0 or 1.
2849
2850 Tue Jul 11 02:48:13 2000  Tim Janik  <timj@gtk.org>
2851
2852         * gtype.[hc]: removed g_type_is_dynamic() and added g_type_get_plugin().
2853
2854 2000-07-10  Tor Lillqvist  <tml@iki.fi>
2855
2856         * gobject-query.c: Include ../config.h for HAVE_UNISTD_H. Use it
2857         to guard inclusion of <unistd.h>.
2858
2859         * gtype.h: Fix copy-paste errors in the ifdefs on how to declare a
2860         variable for export. Call the macro GOBJECT_VAR.
2861
2862         * gtype.c: Declare _g_type_fundamental_last for export here, too.
2863         (type_node_any_new): Use only constant expressions for sizeof
2864         operator (for instance MSVC requires this).
2865
2866         * makefile.mingw.in: Define GOBJECT_COMPILATION.
2867
2868 Sun Jul  9 21:21:46 2000  Owen Taylor  <otaylor@redhat.com>
2869
2870         * genums.c: Move string.h include into the .c file
2871         instead of where it was in the .h file by mistake.
2872
2873 Thu Jul  6 15:30:27 2000  Owen Taylor  <otaylor@redhat.com>
2874
2875         * Makefile.am (EXTRA_DIST): dist fixes.
2876
2877         * gobject.c: Add a global variable glib_debug_objects
2878         (not in header file) to control object tracing.
2879
2880 2000-07-01  Tor Lillqvist  <tml@iki.fi>
2881
2882         * gobject.def: Update added and renamed entry points.
2883
2884         * makefile.mingw.in: Add gvaluetypes.o.
2885
2886 Thu Jun 29 16:02:07 2000  Owen Taylor  <otaylor@redhat.com>
2887
2888         * gobject.c:include string.h for memset
2889         * genums.h: include string.h for strcpy
2890         * gvalue.c: include string.h for memset, memcpy.
2891
2892 Sat Jun 24 23:03:04 2000  Tim Janik  <timj@gtk.org>
2893
2894         * gtype.[hc]: provide G_TYPE_CHAR, G_TYPE_UCHAR, G_TYPE_BOOLEAN,
2895         G_TYPE_INT, G_TYPE_UINT, G_TYPE_LONG, G_TYPE_ULONG, G_TYPE_FLOAT,
2896         G_TYPE_DOUBLE and G_TYPE_STRING fundamental types.
2897         added a GTypeValueTable* pointer to GTypeInfo structure for types
2898         to implement GValue handling functions.
2899         GTypeValueTable contains the following members:
2900           value_init(): initialize a GValue structure.
2901           value_free(): free GValue structure contents (optional).
2902           value_copy(): copy one GValue contents to another GValue structure of
2903           collect_type: varargs collection type for the first variable argument
2904           to be collected by collect_value().
2905           collect_value(): variable arguments collection function (optional).
2906           lcopy_type: varargs collection type for the first variable argument
2907           to be location copyied by lcopy_value().
2908           lcopy_value(): variable arguments location copy function (optional).
2909         g_type_value_table_peek(): new function to retrive the GTypeValueTable*
2910         for a type node. ValueTables get inherited from parent types, unless
2911         overridden through the GTypeInfo structure. internally, GTypeValueTable
2912         support means an added overhead of one pointer per static or used
2913         dynamic type node.
2914         g_type_add_class_cache_func(): provide a cache_func/data pair to be
2915         called  prior to a type nodes last_unref() function, this can be used
2916         to prevent premature class destruction. multiple installed cache_func()
2917         will be chained upon last_unref() untill one of them returns TRUE.
2918         the cache_func()s have to check the class id passed in to figure whether
2919         they actually want to cache the class of this type (since all classes
2920         are routed through the cache_func() chain).
2921         g_type_remove_class_cache_func(): remove a previously installed
2922         cache_func/data pair. the cache maintained by this function has to be
2923         clear when calling g_type_remove_class_cache_func() to avoid leaks.
2924         g_type_class_unref_uncached(): class unref function for cache_func()
2925         implementations, unreferences a class omitting the cache chain (and
2926         therefore unref->cache->unref->... loops).
2927
2928         * gvaluetypes.[hc]: provide the value setters/getters for the primitive
2929         fundamental types boolean, char, uchar, int, uint, long, ulong, float,
2930         double and string.
2931
2932         * gvalue.[hc]: provide G_TYPE_IS_VALUE() in terms of whether a
2933         GTypeValueTable is provided for this type.
2934         removed g_value_init_default(), g_value_validate(), g_value_defaults(),
2935         g_value_set_default() and g_values_cmp() as these are supplied by the
2936         GParamSpec API now.
2937         moved g_values_exchange() into the "implementation details" section,
2938         since it just provides the underlying functionality for
2939         g_value_convert().
2940
2941         * gvaluecollector.h: renamed the varargs value container from
2942         GParamCValue to GTypeCValue as the value collection methods are
2943         supplied by the type system now.
2944         G_PARAM_COLLECT_VALUE() and G_PARAM_LCOPY_VALUE() got renamed to
2945         G_VALUE_COLLECT() and G_VALUE_LCOPY() and operate without a
2946         GParamSpec structure now.
2947
2948         * genums.h: macros cleanups/fixes.
2949
2950         * genum.c: provide G_TYPE_ENUM and G_TYPE_FLAGS type
2951         and assorted g_value_{s|g}et_{enum|flags}() implementations.
2952
2953         * gobject.[hc]:
2954         provide G_IS_VALUE_OBJECT(), G_TYPE_OBJECT ValueTable methods
2955         and g_value_{s|g}et_object().
2956
2957         * gparam.[hc]: reduced class to value_set_default(),
2958         value_validate() and values_cmp(). also parameters now need to fill
2959         in a GType value_type; field to indicate the GValue type they
2960         are handling. provide g_param_value_set_default(),
2961         g_param_value_defaults(), g_param_value_validate() and
2962         g_param_values_cmp().
2963
2964         * gparamspecs.[hc]: got rid of the g_value_* functions and
2965         the G_IS_VALUE_* macros. adapted param spec implementations
2966         according to the GParamSpecClass changes.
2967
2968 Sat Jun 10 08:38:27 2000  Tim Janik  <timj@gtk.org>
2969
2970         * gtype.c (type_class_init): fetch the nth iface entry of the
2971         type node in the nth loop iteration, not alwys the first.
2972         bug discovered by Walt Pohl <cher@suitware.com>.
2973         (type_data_finalize_class_ifaces): same here, cut and paste
2974         rulez.
2975
2976 Wed Jun  7 09:21:05 2000  Owen Taylor  <otaylor@redhat.com>
2977
2978         * Makefile.am (INCLUDES): Add top_builddir so glibconfig.h
2979         is found properly when build srcdir != builddir. (Patch from
2980         Eric Lemings)
2981
2982 2000-05-13  Tor Lillqvist  <tml@iki.fi>
2983
2984         * makefile.mingw.in
2985         * gobject.def
2986         * gobject.rc.in: New files, for Win32 (mingw) build.
2987
2988         * Makefile.am: Add to EXTRA_DIST. Add rules to produce the
2989         corresponding non-*.in files.
2990
2991         * gtype.h: (Win32:) Mark _g_type_fundamental_last for
2992         export/import from DLL.
2993
2994 Fri May  5 01:15:48 2000  Tim Janik  <timj@gtk.org>
2995
2996         * gtype.h: add reserved fundamental ids for gtk types (for transition
2997         time). added G_TYPE_FUNDAMENTAL_MAX for gtk.
2998
2999 Mon Apr 17 20:45:50 2000  Tim Janik  <timj@gtk.org>
3000
3001         * glib-gobject.c (g_object_base_class_finalize): oops, don't unset
3002         n_params prior to destructing them.
3003
3004 Tue Apr 11 04:28:10 2000  Tim Janik  <timj@gtk.org>
3005
3006         * fixed a couple of bugs in the initial parameter/object
3007         implementations, after getting beast running on GObject and GValue.
3008
3009 Fri Apr  7 04:27:49 2000  Tim Janik  <timj@gtk.org>
3010
3011         * glib-gobject.[hc]: completed parameter set/get implementations,
3012         along with asyncronous parameter changed notification queue.
3013
3014 Sun Apr  2 04:54:36 2000  Tim Janik  <timj@gtk.org>
3015
3016         * glib-gobject.[hc]: GObject implementation, that is facilities
3017         for setting/getting quarked data and reference counting.
3018
3019         * glib-gparamspecs.[hc]: first actuall parameter implementations
3020         for GLib, so far we have: char, uchar, bool, int, uint, long,
3021         ulong, enum, flags, float, double, string and object. each of these
3022         GParamSpecs is a new instantiatable type in its own respect,
3023         so the .c file derives 13 new types from G_TYPE_PARAM and
3024         defines over 50 (*2) conversion facilities.
3025
3026         * glib-gvaluecollector.h: generic varargs handling stubs for
3027         GParamSpecs, private header file (does get installed for
3028         inclusion into user code though).
3029
3030         * glib-gvalue.[hc]: GValue functionality implementation.
3031
3032         * glib-gparam.[hc]: basis GParamSpec implementation for
3033         the virtual base type G_TYPE_PARAM.
3034
3035         * glib-genums.[hc]: enum/flags type implementation, based on
3036         bseenum.[hc].
3037
3038         * glib-gtype.[hc]: GLib Type System implementation, heavily
3039         based on BSE's dynamic type system.