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