source: trunk/third/glib2/gobject/ChangeLog @ 20721

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