1 2008-05-05 Michael Natterer <mitch@imendio.com>
3 * Makefile.am. build with G_DISABLE_SINGLE_INCLUDES to prevent
4 code from being checked in that breaks the build of applications
5 which use G_DISABLE_SINGLE_INCLUDES.
7 2008-03-16 Tor Lillqvist <tml@novell.com>
9 * Makefile.am: Define gobject_def locally here instead of using an
12 2008-03-10 Matthias Clasen <mclasen@redhat.com>
14 * === Released 2.16.1 ===
16 2008-03-10 Matthias Clasen <mclasen@redhat.com>
18 * === Released 2.16.0 ===
20 2008-02-25 Matthias Clasen <mclasen@redhat.com>
22 * === Released 2.15.6 ===
24 2008-02-11 Matthias Clasen <mclasen@redhat.com>
26 * === Released 2.15.5 ===
28 2008-02-06 Benjamin Otte <otte@gnome.org>
30 * gparamspecs.c: (param_gtype_set_default), (param_gtype_validate):
31 make GParamGType require the set type during construction instead of
32 using G_TYPE_NONE, which causes issues when setting.
33 Bug 513073 - g_param_spec_gtype breaks with G_PARAM_CONSTRUCT
35 2008-02-05 18:52:07 Tim Janik <timj@imendio.com>
37 * gtype.c: added recursive mutex to protect class initialization,
38 default interface initialization and per-class interface construction.
39 a lock to this recursive mutex is held during user callback invocations
40 such as initializers or finalizers, effectively allowing only one thread
41 to run class/interface initializers/finalizers at a time.
42 also made misc fixups. this fixes:
43 Bug 64764 - Class initialization isn't thread safe.
45 2008-02-05 18:41:22 Tim Janik <timj@imendio.com>
47 * Makefile.am: integrate tests/.
49 * tests/: new directory for libgobject tests.
51 * tests/Makefile.am: build and run threadtests.
53 * tests/threadtests.c: test multi-threaded initializers for
54 object classes and interfaces.
56 2008-01-28 Matthias Clasen <mclasen@redhat.com>
58 * === Released 2.15.4 ===
60 2008-01-21 Matthias Clasen <mclasen@redhat.com>
62 * === Released 2.15.3 ===
64 2008-01-14 Matthias Clasen <mclasen@redhat.com>
66 * === Released 2.15.2 ===
68 008-01-07 Matthias Clasen <mclasen@redhat.com>
70 * === Released 2.15.1 ===
72 2007-12-26 Behdad Esfahbod <behdad@gnome.org>
74 * gclosure.h (G_CCLOSURE_SWAP_DATA): Fix macro argument.
75 (#505674, Areg Beketovski)
77 2007-12-20 Matthias Clasen <mclasen@redhat.com>
79 * === Released 2.15.0 ===
81 2007-11-11 Mathias Hasselmann <mathias@openismus.com>
83 Always exit with non-zero error code when printing warnings.
85 * gobject/glib-genmarshal.c: Add global exit_status variable, and use
86 it in pad() and process_signature() to return with non-zero error code
87 when printing warnings. (#495294)
89 2007-11-08 Matthias Clasen <mclasen@redhat.com>
91 * glib-mkenums.in: Don't shift ARGV[0] to undefined.
92 (#466557, Aidan Delaney)
94 2007-11-07 Matthias Clasen <mclasen@redhat.com>
96 * === Released 2.14.3 ===
98 2007-10-16 Matthias Clasen <mclasen@redhat.com>
100 * === Released 2.14.2 ===
102 2007-09-20 Carlos Garnacho <carlos@imendio.com>
104 * gtypemodule.h: make sure we define GType g_define_type_id in
105 G_G_DEFINE_DYNAMIC_TYPE_EXTENDED so it works together with
106 G_IMPLEMENT_INTERFACE. (#478459)
108 2007-09-19 Matthias Clasen <mclasen@redhat.com>
110 * === Released 2.14.1 ===
112 2007-08-03 Matthias Clasen <mclasen@redhat.com>
114 * === Released 2.14.0 ===
116 2007-07-12 Matthias Clasen <mclasen@redhat.com>
118 * === Released 2.13.7 ===
120 Tue Jul 10 12:31:50 2007 Tim Janik <timj@imendio.com>
122 * gtype.h: use g_once_init_enter/g_once_init_leave to guard critical
123 initialization section of *_get_type implementations in G_DEFINE_TYPE,
126 Fri Jun 29 2007 Matthias Clasen <mclasen@redhat.com>
128 * === Released 2.13.6 ===
130 Fri Jun 22 11:31:27 2007 Tim Janik <timj@gtk.org>
132 * gtype.h: reintroduce typedef gulong GType; for C++, to avoid
133 C++ specific ABI breakage.
135 2007-06-18 Matthias Clasen <mclasen@redhat.com>
137 * === Released 2.13.5 ===
139 Thu Jun 14 23:32:00 2007 Tim Janik <timj@gtk.org>
141 * gtype.h: always define GType unconditionally in terms of gsize,
142 there's no need to jump through a glong hoop ever and this fixes
143 the printf modifier to %zu.
145 Thu Jun 14 22:33:11 2007 Tim Janik <timj@imendio.com>
147 * gparamspecs.c (g_param_spec_types_init): work around SGI IDO cc,
150 2007-06-05 Matthias Clasen <mclasen@redhat.com>
152 * === Released 2.13.4 ===
154 2007-06-04 Matthias Clasen <mclasen@redhat.com>
156 * === Released 2.13.3 ===
158 2007-05-22 Matthias Clasen <mclasen@redhat.com>
160 * === Released 2.13.2 ===
162 2007-05-17 Matthias Clasen <mclasen@redhat.com>
164 * gtype.h: Move G_GNUC_INTERNAL before function
165 declarations to fix compilation with sun studio. (#438873,
168 2007-05-03 Matthias Clasen <mclasen@redhat.com>
170 * === Released 2.13.1 ===
172 2007-04-25 Michael Natterer <mitch@imendio.com>
174 * gparamspecs.c (param_string_validate): also clear the
175 NOCOPY_CONTENTS flag when replacing NULL with the empty string.
177 2007-04-24 Michael Natterer <mitch@imendio.com>
179 * gparamspecs.c (param_string_validate): don't free or modify
180 static strings, dup them when needed and clear the
181 G_VALUE_NOCOPY_CONTENTS flag. Fixes bug #432895.
183 Tue Apr 3 12:34:14 2007 Tim Janik <timj@gtk.org>
185 * gobject.[hc]: invoke GObjectClass.constructed() only for newly
186 constructed objects, and invoke it while the notify queue is
187 still being frozen, after all CONSTRUCT* properties have been
188 set and before random other properties are being set.
190 * applied modified patch from Ryan Lortie to implement
191 GObjectClass.constructed() to fix #425324.
193 2007-04-02 Ryan Lortie <desrt@desrt.ca>
195 * gobject/gobject.h: Add 'constructed' vcall to GObjectClass.
196 * gobject/gobject.c (g_object_newv): call ->constructed() as last
197 step of object construction.
199 2007-03-16 Matthias Clasen <mclasen@redhat.com>
201 * === Released 2.13.0 ===
203 2007-03-15 Matthias Clasen <mclasen@redhat.com>
205 * gvaluearray.c: Use g_slice. (#404430, Chris Wilson)
207 2007-03-14 Stefan Kost <ensonic@users.sf.net>
210 Add G_PARAM_STATIC_STRINGS define (fixes #418021).
212 Mon Mar 12 13:30:20 2007 Tim Janik <timj@gtk.org>
214 * gtype.h: marked purely functional g_type accessors as PURE or CONST,
217 2007-01-02 Tor Lillqvist <tml@novell.com>
219 * glib-genmarshal.c (main): Handle "/dev/stdin" by dup()ing fd 0
220 so that it works on Win32 and other systems without
221 /dev/stdin. (#407431)
223 2006-12-29 Matthias Clasen <mclasen@redhat.com>
225 * gtypemodule.h: Define G_DEFINE_DYNAMIC_TYPE and
226 and _EXTENDED variant. (#334437)
228 Fri Dec 15 2006 Matthias Clasen <mclasen@redhat.com>
230 * gtype.c (instance_real_class_get): Dereference the pointer
231 before dropping the lock. (#378078, Jonathan Matthew)
233 Tue Oct 10 12:06:08 2006 Tim Janik <timj@gtk.org>
236 * glib-mkenums.1: applied patch from David Necas which introduces
237 an underscore_name option and fixes #358734.
239 Mon Oct 2 15:50:16 2006 Tim Janik <timj@gtk.org>
241 * gvalue.c (g_value_peek_pointer): reverted a change to have an
242 assert instead of a g_return_val_if_fail() here. libraries (and
243 programs) should only ever g_assert or g_error if there is no way
244 to carry on with the current program state. that's clearly not
247 * ChangeLog: added missing changelog entry for 2003-12-30.
249 Sat Sep 30 2006 Matthias Clasen <mclasen@redhat.com>
251 * pltcheck.sh: Script to check PLT entries.
253 * Makefile.am (TESTS): Run pltcheck.sh
258 * gvaluetypes.c: Move all includes before gobjectalias.h.
259 (#3545422, Behdad Esfahbod)
261 Fri Sep 22 13:41:02 2006 Tim Janik <timj@imendio.com>
263 * gtype.h: applied patch from Behdad with slight optimization,
266 * gobjectnotifyqueue.c: fixed include-guard macro name.
268 Mon Sep 11 12:12:45 2006 Tim Janik <timj@imendio.com>
270 * gparam.c (g_param_spec_sink): reimplemented floating flag handling by
271 atomically accessing a reserved GData bit, fixes #330556.
273 Tue Aug 29 13:27:33 2006 Tim Janik <timj@gtk.org>
275 * glib-mkenums.in: fixed to print usage and version info on STDOUT
278 * gobject.c (g_initially_unowned_init): restore ; after G_DEFINE_TYPE.
280 2006-08-26 Matthias Clasen <mclasen@redhat.com>
282 * gobject.c: Remove ; after G_DEFINE_TYPE. (#351741, Kjartan Maraas)
284 Wed Aug 23 10:35:32 2006 Tim Janik <timj@gtk.org>
286 * gobject.[hc]: changed return value of g_value_dup_object(), fixes #343292.
288 2006-08-23 Sven Neumann <sven@gimp.org>
290 * gobject/glib-genmarshal.[c1]: added new command-line option
291 "--internal" that can be used to let glib-genmarshal generate
292 internal functions using the G_GNUC_INTERNAL attribute (bug #346647).
294 Wed Aug 16 13:55:08 2006 Tim Janik <timj@imendio.com>
296 * gobject.c: conditionally thaw the notify queue after construction,
297 so we don't trigger warnings when trying to thaw an unfrozen singleton.
299 2006-08-15 Matthias Clasen <mclasen@redhat.com>
301 * === Released 2.12.2 ===
303 2006-08-05 Matthias Clasen <mclasen@redhat.com>
305 * gparamspecs.c (g_param_spec_types_init): Don't initialize
306 struct members with function calls. (#349952)
308 2006-07-22 Matthias Clasen <mclasen@redhat.com>
310 * === Released 2.12.1 ===
312 2006-07-21 Matthias Clasen <mclasen@redhat.com>
314 * gtypemodule.c (g_type_module_register_type): Copy the complete
315 value table, not just the first 4 bytes. (#348136, Coverity)
317 2006-07-02 Matthias Clasen <mclasen@redhat.com>
319 * === Released 2.12.0 ===
321 2006-06-20 Matthias Clasen <mclasen@redhat.com>
323 * === Released 2.11.4 ===
325 2006-06-15 Federico Mena Quintero <federico@novell.com>
327 * gtype.c (g_type_instance_get_private): Fix the error message so
328 that it mentions the right functions:
329 "g_type_instance_get_private() requires a prior call to
330 g_type_class_add_private()".
332 2006-06-12 Matthias Clasen <mclasen@redhat.com>
334 * === Released 2.11.3 ===
336 2006-06-05 Matthias Clasen <mclasen@redhat.com>
338 * === Released 2.11.2 ===
340 2006-06-02 Behdad Esfahbod <behdad@gnome.org>
342 * gobject/genum.h: Make value_name and value_nick const in structs
343 _GEnumValue and _GFlagValue. (#317793)
345 Tue May 16 14:01:43 2006 Tim Janik <timj@imendio.com>
347 * gtype.h (G_IMPLEMENT_INTERFACE): turn off compiler warnings, #337129.
349 2006-05-15 Matthias Clasen <mclasen@redhat.com>
351 * === Released 2.11.1 ===
353 2006-05-02 Matthias Clasen <mclasen@redhat.com>
355 * === Released 2.11.0 ===
357 Tue May 2 14:51:03 2006 Tim Janik <timj@gtk.org>
359 * gtype.h: split up G_DEFINE_*TYPE macro definitions so C CODE arguments
360 are not passed on to nested macro calls. patch mostly courtesy of Behdad
361 Esfahbod, fixes #337128.
363 2006-04-23 Matthias Clasen <mclasen@redhat.com>
365 * gobject.symbols: Fix a typo.
367 * gtype.c: (g_type_register_static_simple): Add a
370 * gtype.h: Silence warnings from G_DEFINE_TYPE.
372 2006-04-21 Matthias Clasen <mclasen@redhat.com>
375 * gtype.[hc]: Add a g_type_register_static_simple
376 variant of g_type_register_static that does not take
377 a relocation-causing GTypeInfo struct, and use it
380 2006-03-07 Matthias Clasen <mclasen@redhat.com>
382 * === Released 2.10.1 ===
384 Tue Mar 7 17:09:07 2006 Tim Janik <timj@gtk.org>
386 * gobject.c (g_object_compat_control): added case3 to hand out the
387 original floating flag handler. required by gtk+ >= 2.10.
389 2006-02-24 Matthias Clasen <mclasen@redhat.com>
391 * === Released 2.10.0 ===
393 2006-02-10 Matthias Clasen <mclasen@redhat.com>
395 * === Released 2.9.6 ===
397 2006-01-29 Matthias Clasen <mclasen@redhat.com>
399 * gclosure.c: Remove C++ comment.
401 2006-01-27 Matthias Clasen <mclasen@redhat.com>
403 * === Released 2.9.5 ===
405 2006-01-18 Matthias Clasen <mclasen@redhat.com>
407 * === Released 2.9.4 ===
409 2006-01-18 Matthias Clasen <mclasen@redhat.com>
411 * gobject.h: Make g_object_compat_control() visible
412 for GTK+ compilation, to avoid segfaults on 64bit
415 2006-01-16 Matthias Clasen <mclasen@redhat.com>
417 * === Released 2.9.3 ===
419 2006-01-05 Matthias Clasen <mclasen@redhat.com>
421 * === Released 2.9.2 ===
423 2006-01-04 Matthias Clasen <mclasen@redhat.com>
425 * gobject.symbols: Add g_initially_unowned_get_type.
427 2005-12-30 Matthias Clasen <mclasen@redhat.com>
429 * gsignal.c: Remove the handler trash stack, which
431 (g_signal_init): Remove the restriction that HandlerMatch
432 must be the same size as GList, and obsolete comments
433 referring to mem chunks.
435 2005-12-24 Matthias Clasen <mclasen@redhat.com>
437 * gobject.symbols: Add new functions.
439 Thu Dec 22 18:53:14 2005 Tim Janik <timj@gtk.org>
441 * gobject.[hc]: renamed GUnowned to GInitiallyUnowned.
443 Thu Dec 22 14:59:24 2005 Tim Janik <timj@imendio.com>
445 * gvaluetypes.[hc]: implemented G_TYPE_GTPYE. applied patch
446 from matthias which implements GType accessors for GValue.
448 * gparamspecs.[hc]: applied patch from matthias which
449 implements G_TYPE_PARAM_GTYPE.
452 GUnowned: introduced a new object type that has an initially
454 g_object_compat_control(): allow setting of a floating flag handler.
456 2005-12-09 Matthias Clasen <mclasen@redhat.com>
458 * === Released 2.9.1 ===
460 2005-12-05 Matthias Clasen <mclasen@redhat.com>
462 * genums.h (G_FLAGS_CLASS_TYPE_NAME): Use G_FLAGS_CLASS_TYPE.
463 (#323273, Kalle Vahlman)
465 Thu Dec 1 12:53:26 2005 Tim Janik <timj@imendio.com>
467 * gtype.c: use g_slic_* for all object allocations.
469 2005-11-28 Matthias Clasen <mclasen@redhat.com>
471 * gobjectnotifyqueue.c (g_object_notify_queue_thaw):
472 * gobject-query.c (main): Silence compiler warnings.
474 * glib-genmarshal.c (main): Use G_N_ELEMENTS.
476 2005-11-27 Matthias Clasen <mclasen@redhat.com>
478 * gboxed.h: Declare g_hash_table_get_type.
480 Wed Nov 23 18:01:46 2005 Tim Janik <timj@imendio.com>
482 * gobject.[hc]: added floating reference count.
483 g_object_is_floating():
484 g_object_ref_sink(): new functions to deal with floating references.
485 g_object_force_floating(): new funciton for object implementations
486 to set the floating flag.
488 * gobject.c (g_object_init): make objects initially floating.
490 Wed Nov 23 17:58:13 2005 Tim Janik <timj@gtk.org>
492 * gparam.[hc]: added g_param_spec_ref_sink().
494 Wed Nov 23 13:36:02 2005 Tim Janik <timj@gtk.org>
496 * gboxed.[hc]: minor cleanups, implemented G_TYPE_HASH_TABLE.
498 2005-11-17 Matthias Clasen <mclasen@redhat.com>
500 * === Released 2.9.0 ===
502 2005-11-17 Matthias Clasen <mclasen@redhat.com>
504 * glib-genmarshal.c: const correctness fixes, found
505 by Arjan van de Ven and gcc.
507 Tue Nov 1 17:07:43 2005 Tim Janik <timj@imendio.com>
509 * gsignal.c: allocate signal handlers and handler match structures
510 via the new g_slice_*() API (get's rid of GList allocation hack).
512 * gtype.c: got rid of per-type memchunks. if GTypeInfo.n_preallocs
513 is > 0, objects are allocated via g_slice_*() instead of g_malloc().
515 2005-10-03 Matthias Clasen <mclasen@redhat.com>
517 * glib-mkenums.in: Really fix #314890.
519 2005-09-28 Michael Natterer <mitch@gimp.org>
521 * gtype.h (G_IMPLEMENT_INTERFACE): revert last change, it breaks
522 all users of G_IMPLEMENT_INTERFACE() inside
523 G_DEFINE_TYPE_WITH_CODE(), since apparently GCC doesn't like
524 commas enclosed in {}, not (), in nested macro calls.
526 2005-09-26 DindinX <dindinx@gimp.org>
528 * gobject/gtype.h: initialize all the fields of GInterfaceInfo in the
529 G_IMPLEMENT_INTERFACE macro, to shut up a warning when compiling at -W
531 2005-09-26 Matthias Clasen <mclasen@redhat.com>
533 * glib-mkenums.in: Don't hang on '{' following a trigraph comment
534 in the same line. (#314890, Mathias Hasselmann)
536 Thu Sep 22 12:42:12 2005 Tim Janik <timj@gtk.org>
538 * gparam.c (g_param_spec_internal): fix pspec->name assignment which
539 needs to be strdup()ed for non G_PARAM_STATIC_NAME pspecs. this fixes
540 recently introduced crashes during plugin unloading.
541 also, ensure that static pspec names are canonicalized.
543 * gsignal.h: reverted last change from matthias, we don't guarantee
544 that type ids aren't mangled with G_SIGNAL_TYPE_STATIC_SCOPE anywhere.
546 2005-09-20 Matthias Clasen <mclasen@redhat.com>
548 * gsignal.h (struct _GSignalQuery): Remove the misleading comment
549 about G_SIGNAL_TYPE_STATIC_SCOPE, since we don't allow that
552 2005-09-08 Kjartan Maraas <kmaraas@gnome.org>
554 * gclosure.c: (g_closure_set_meta_marshal): Remove some unused
556 * gsignal.c: (g_signal_emitv): Same here
557 * gtype.c: (g_type_register_fundamental): And here
558 * testgobject.c: Mark some functions static.
560 2005-09-05 Matthias Clasen <mclasen@redhat.com>
562 * gsignal.c (struct _SignalNode): Make the name field const.
563 (g_signal_newv): Don't keep an unnecessary extra copy of the
564 signal name around, and don't forget to free the name if
565 an existing node is reused.
567 2005-08-31 Matthias Clasen <mclasen@redhat.com>
569 * gobject.c (g_object_do_class_init): Intern the signal name.
571 * gparam.c (g_param_spec_internal): Intern the name here,
572 since we need the quark anyway when sending change notification.
576 * gtype.c (g_type_init_with_debug_flags): Intern type name
577 before registering the types.
579 * gtype.h (G_DEFINE_TYPE_EXTENDED): Intern type name
580 before registering the type.
582 * gvaluetypes.c (g_value_types_init):
583 * gtypeplugin.c (g_type_plugin_get_type):
584 * gtypemodule.c (g_type_module_get_type):
585 * gparam.c (g_param_type_init):
586 * gobject.c (g_object_type_init):
587 * genums.c (g_enum_types_init):
588 * gboxed.c (g_boxed_type_init): Intern type names
589 before registering the type to avoid unnecessary
592 2005-08-23 Matthias Clasen <mclasen@redhat.com>
594 * === Released 2.8.1 ===
596 2005-08-12 Matthias Clasen <mclasen@redhat.com>
598 * === Released 2.8.0 ===
600 2005-08-09 Matthias Clasen <mclasen@redhat.com>
602 * gvaluetransform.c: Access enum and flags
603 values as v_long/v_ulong, not v_int/v_uint,
604 to make value transformation of such types
605 work on bigendian 64bit machines. (#312485,
608 2005-08-05 Matthias Clasen <mclasen@redhat.com>
610 * abicheck.sh: Also check exported variables
612 * === Released 2.7.7 ===
614 2005-08-03 Matthias Clasen <mclasen@redhat.com>
616 * === Released 2.7.6 ===
618 2005-08-02 Matthias Clasen <mclasen@redhat.com>
620 * gclosure.c (union ClosureInt): Mark the vint member as
621 volatile, which seems to be necessary to make atomic operations
624 * === Released 2.7.5 ===
626 Mon Aug 1 23:00:42 2005 Tim Janik <timj@imendio.com>
628 * gclosure.c: turned all modifications to the first 32 integer bits in a
629 closure into atomic accesses. wrapped write accesses into special macros
630 to keep the atomic modification logic in a single place. comment cleanups.
632 * gclosure.h: made all atomicly accessed closure fields volatile.
634 * gobject.h: made ref_count field volatile.
636 Sun Jul 31 02:04:23 2005 Tim Janik <timj@gtk.org>
638 * gobject.c: use g_datalist_set_flags() and g_datalist_unset_flags() to
639 allow proper locking around &qdata modifications.
641 Sat Jul 30 21:10:26 2005 Tim Janik <timj@gtk.org>
643 * gobject.c: reverted notify_mutex introduction, since this prevents
644 parallelized setting of object properties on different objects, and
645 serves no apparent purpose (to me at least).
646 g_object_real_dispose(): removed non-atomic reference count
648 g_object_unref(): make sure the closures array is destroyed when
649 destroying signal handlers.
651 * gparam.c: cosmetic changes.
653 * gsignal.c: comment fixup. allow 16bit blocking count.
655 * gsignal.c: reverted GClosure related changes.
657 * gclosure.c: reverted premature commit of atomic reference
660 2005-07-21 Matthias Clasen <mclasen@redhat.com>
662 * === Released 2.7.4 ===
664 2005-07-15 Matthias Clasen <mclasen@redhat.com>
666 * === Released 2.7.3 ===
668 2005-07-15 Matthias Clasen <mclasen@redhat.com>
670 Make refcounting threadsafe by using atomic
671 operations. (#166020, Wim Taymans)
673 * gobject.c: Use a recursive lock to protect the
675 (g_object_unref): Get rid of g_object_last_unref and
676 do the last unref handling in g_object_unref.
677 (g_object_ref, g_object_unref): Use atomic operations.
679 * gsignal.c (struct _HandlerMatch): Use a full integer
680 for the ref_count field.
681 (handler_ref, handler_unref_R): Use atomic operations.
683 * gparam.c (g_param_spec_ref, g_param_spec_unref):
684 Use atomic operations instead of a lock to make the
685 refcounting threadsafe.
687 * gclosure.c (g_closure_ref, g_closure_unref): Use atomic
688 operations. This is more complicated here, since the
689 refcount is stored in a bitfield, so we also have
690 to access all other bitfield members atomically.
692 * gsignal.c (handlers_find): Read the meta_marshal flag
693 of the closure atomically.
695 2005-07-11 Matthias Clasen <mclasen@redhat.com>
698 * gobject.symbols: Remove G_GNUC_NULL_TERMINATED from
699 g_object_new again, since that makes gcc warn on calls of
700 the form g_object_new (some_type, NULL)
702 2005-07-09 Tor Lillqvist <tml@novell.com>
704 * Makefile.am: Don't use the scripts in build/win32 to compile
705 gobject.rc into a resource object file. (This means we lose the
706 build number increment magic, but I doubt it was that useful
707 anyway.) Instead use windres directly. To pass the normal .o file
708 produced by windres through libtool, which wants .lo files, pass
709 it directly to the linker using a -Wl option.
711 * gobject.rc.in: Thus replace BUILDNUMBER with 0.
713 2005-07-08 Matthias Clasen <mclasen@redhat.com>
715 * === Released 2.7.2 ===
717 2005-06-30 Matthias Clasen <mclasen@redhat.com>
719 * === Released 2.7.1 ===
721 2005-06-26 Tor Lillqvist <tml@novell.com>
723 * Makefile.am: libtool installs/uninstalls the import library, no
724 need to do it ourselves. Do still install/uninstall the .def file,
727 2005-06-24 Tor Lillqvist <tml@novell.com>
729 * Makefile.am (install-libtool-import-lib): Current GNU tools do
730 understand the PRIVATE keyword.
732 2005-06-19 Matthias Clasen <mclasen@redhat.com>
734 * gparam.h (GParamFlags): Avoid a warning. (#308295,
737 2005-06-13 Matthias Clasen <mclasen@redhat.com>
739 * gparam.h (GParamFlags): Re-add G_PARAM_PRIVATE as a
740 deprecated name for bit 5, since some language bindings
743 2005-06-10 Matthias Clasen <mclasen@redhat.com>
745 * === Released 2.7.0 ===
747 2005-05-20 Matthias Clasen <mclasen@redhat.com>
749 * gvaluetypes.c (g_value_set_string): dup the new value
750 before freeing the old, just in case. (#172142, Morten
753 2005-05-13 Matthias Clasen <mclasen@redhat.com>
755 * glib-genmarshal.1: Mention 64bit integer types.
757 2005-05-05 Owen Taylor <otaylor@redhat.com>
759 * gobject.[ch] gobject.symbols: Add
760 g_object_add/remove_toggle_ref() functions to get notification
761 when a reference count is the last remaining reference; this
762 enables better memory management for language bindings.
763 (http://mail.gnome.org/archives/gtk-devel-list/2005-April/msg00095.html)
765 2005-04-29 Matthias Clasen <mclasen@redhat.com>
768 * gboxed.h (G_TYPE_DATE):
769 * gboxed.c: Add a boxed type for GDate. (#301787, Tim-Philipp
772 2005-03-25 Matthias Clasen <mclasen@redhat.com>
774 * gparam.c (param_spec_ht_lookup): Don't do the second
775 lookup if the name was already canonical. (#171502, Morten
778 Tue Mar 22 14:15:23 2005 Manish Singh <yosh@gimp.org>
780 * gparam.c (g_param_spec_internal): cast away any constness on
783 2005-03-21 Matthias Clasen <mclasen@redhat.com>
785 * glib-mkenums.in: Avoid forcing extra newlines when using
786 template files. (#171005)
788 2005-03-20 Matthias Clasen <mclasen@redhat.com>
790 * gparam.c (g_param_spec_internal): Don't copy strings
791 which are marked as static. Don't allow non-canonical static
794 * gparam.h (GParamFlags): Add G_PARAM_STATIC_{NAME,NICK,BLURB}
795 flags. (#160655, Ben Maurer)
797 2005-03-18 Hans Breuer <hans@breuer.org>
799 * makefile.msc.in : handle gobjectaliasdef.c
801 2005-03-14 Matthias Clasen <mclasen@redhat.com>
803 Make PLT-reduction work with gcc4, and don't include
804 everything in gobjectalias.h:
806 * gobject.symbols: Group symbols by header and source
808 * makegobjectalias.pl: Protect definitions by the same
809 preprocessor symbols used to guard the headers. Move
810 the alias declarations to a separate file which is
811 produced when calling makegalias.pl -def
812 * Makefile.am (gobjectaliasdef.c): Add a rule to
814 * *.c: Include gobjectalias.h after the other i
815 GLib headers, include gobjectaliasdef.c at the bottom.
817 2005-03-08 Matthias Clasen <mclasen@redhat.com>
819 * gobject.symbols: Add the new attributes here, too.
821 * gobject.h: Use G_GNUC_NULL_TERMINATED where
822 appropriate. (#164706, Marc Meissner)
824 * gvaluearray.h: Small cleanup (use G_BEGIN/END_DECLS).
825 (#168474, Fabricio Barros Cabral)
827 2005-02-24 Tor Lillqvist <tml@novell.com>
829 * Makefile.am (EXTRA_DIST): Don't distribute
830 gobject.def. (#167496, J. Ali Harlow)
832 Sun Feb 6 22:00:46 2005 Manish Singh <yosh@gimp.org>
834 * abicheck.sh: feed the contents of config.h and glibconfig.h
835 into the preprocessor, since glib.symbols could need #defines
838 2005-01-12 Matthias Clasen <mclasen@redhat.com>
840 Cosmetic fixes (#163792, Benoît Carpentier):
842 * gobject-query.c (main): Remove duplicate lines.
844 * gvaluetransform.c: Remove duplicate definitions of
845 value_transform_[u]int64_[u]int64.
847 2005-01-07 Matthias Clasen <mclasen@redhat.com>
849 * === Released 2.6.1 ===
851 2004-12-27 Matthias Clasen <mclasen@redhat.com>
853 * Makefile.am: Only check the ABI on linux, since
854 the shell script is not portable. (#161734, Adrian Bunk)
856 2004-12-16 Matthias Clasen <mclasen@redhat.com>
858 * === Released 2.6.0 ===
860 2004-12-02 Matthias Clasen <mclasen@redhat.com>
862 * === Released 2.5.7 ===
864 2004-11-30 Tor Lillqvist <tml@iki.fi>
866 * Makefile.am (gobject.def): gcc -E complains "linker input file
867 unused because linking not done" if told to preprocess the
868 gobject.symbols file. Use '-' and redirection to pass it as
869 standard input instead.
871 Sun Nov 28 13:21:12 2004 Manish Singh <yosh@gimp.org>
873 * abicheck.sh: filter G_GNUC before PRIVATE so $ is still true.
875 Sun Nov 28 01:37:54 2004 <timj@birnet.org>
877 * gsignal.c: applied patch by sven@gimp.org (#153727) to reduce
878 signal connection complexity from O(n_handlers) to O(1).
880 Thu Nov 25 14:09:41 2004 Manish Singh <yosh@gimp.org>
882 * abicheck.sh: filter out G_GNUC stuff when doing the compare.
884 2004-11-23 Matthias Clasen <mclasen@redhat.com>
886 * gobject.symbols: Typo fix.
888 Fix a problem with the PLT reduction changes which caused the
889 internal aliases to lose all attributes.
891 * gobject.symbols: Add attribute annotations.
892 * makegobjectalias.pl: Keep attribute annotations, but strip PRIVATE.
893 * Makefile.am (gobject.def): Strip attribute annotations, but keep
896 * gtypemodule.h (g_type_module_get_type): Mark as const,
897 like all other get_type() functions.
899 2004-11-12 Matthias Clasen <mclasen@redhat.com>
901 * === Released 2.5.6 ===
903 Mon Nov 8 10:47:41 2004 Manish Singh <yosh@gimp.org>
905 * gobject/gsourceclosure.c: removed wrap_g_io_channel_ref() hack,
906 since g_io_channel_ref() has a compatible API now.
908 2004-11-02 Matthias Clasen <mclasen@redhat.com>
910 * === Released 2.5.5 ===
912 2004-10-27 Matthias Clasen <mclasen@redhat.com>
914 * === Released 2.5.4 ===
916 2004-10-27 Matthias Clasen <mclasen@redhat.com>
918 * abicheck.sh: Strip Win32 specific defs file syntax.
920 * Makefile.am (gobjectalias.h): Fix srcdir != builddir
921 builds. (#156447, Thomas Fitzsimmons)
923 2004-10-26 Matthias Clasen <mclasen@redhat.com>
925 * abicheck.sh: Don't include symbols which are just in the
926 symbols list for .defs file compatibility.
928 2004-10-23 Matthias Clasen <mclasen@redhat.com>
930 * gtype.h (GTypeInterfaceCheckFunc): Rename first parameter to
931 check_data, since apparently the system headers on AIX leak a
932 macro named func_data. (#155178, Andrea Campi)
934 Wed Oct 6 02:12:44 2004 <timj@birnet.org>
936 * gtype.c (g_type_instance_get_private): applied patch from Jean-Yves
937 Lefort <jylefort@brutele.be> to not access the instance_real_class_bsa
938 pointer without holding the instance_real_class lock.
940 2004-10-04 Matthias Clasen <mclasen@redhat.com>
942 * gsignal.c (g_signal_add_emission_hook): Improve the warning
943 if G_SIGNAL_NO_HOOKS is set. (#154299, Nickolay V. Shmyrev)
945 2004-09-22 Tor Lillqvist <tml@iki.fi>
947 * Makefile.am (install-libtool-import-lib): [Win32] Add code to
948 remove the bug-compatibility entries (see #134813, and related
949 comments below) from the import library. The PRIVATE keyword in
950 the .def file is supposed to mean that, but it isn't implemented
953 * makegobjectalias.pl: In case the symbol is followed by some
954 stuff ("PRIVATE") that's intended for the .def file, use just the
957 * gobject.symbols: For binary bug compatibility on Win32, add the
958 g_slist_remove_all and g_unichar_validate symbols inside #ifdef
959 INCLUDE_INTERNAL_SYMBOLS. (See #134813 and log entries from March
962 2004-09-18 Matthias Clasen <mclasen@redhat.com>
964 * === Released 2.5.3 ===
966 Thu Sep 16 18:42:46 2004 Manish Singh <yosh@gimp.org>
968 * abicheck.sh: don't hardcode lengths for cut, instead split on
971 2004-09-16 Matthias Clasen <mclasen@redhat.com>
973 Implement the same PLT reduction technique used in GTK+:
975 * Makefile.am: Generate gobjectalias.h from gobject.symbols.
976 (BUILT_SOURCES): Add gobjectalias.h.
978 * makegobjectalias.pl: Script to generate gobjectalias.h.
980 * *.c: Include gobjectalias.h
982 2004-09-16 Matthias Clasen <mclasen@redhat.com>
984 Add ABI control using the same technique that is used in GTK+.
986 * gobject.symbols: Master list of symbols.
988 * gobject.def: Removed. It is now generated from gobject.symbols.
990 * Makefile.am: Generate gobject.def from gobject.symbols.
991 (TESTS): Add abicheck.sh
992 (EXTRA_DIST): Add abicheck.sh
993 (export_symbols): Don't export _-prefixed symbols.
996 * gtype.c: Move the declarations of the various _init() functions
997 to the header, and mark them as G_GNUC_INTERNAL.
999 2004-08-25 Matthias Clasen <mclasen@redhat.com>
1001 * === Released 2.5.2 ===
1003 2004-08-01 Matthias Clasen <mclasen@redhat.com>
1005 * === Released 2.5.1 ===
1007 2004-07-28 Matthias Clasen <mclasen@redhat.com>
1009 * gtype.c (g_type_instance_get_private): Catch cases of
1010 forgotten g_type_add_private(). (#148368, Tommi Komulainen)
1012 2004-07-21 Matthias Clasen <mclasen@redhat.com>
1014 * glib-genmarshal.c (put_marshal_value_getters): Use the
1015 correct fields for enums and flags. (#145015, Tommi Komulainen)
1017 Sun Jul 18 18:03:08 2004 Soeren Sandmann <sandmann@daimi.au.dk>
1019 * === Released 2.5.0 ===
1021 2004-07-12 Matthias Clasen <mclasen@redhat.com>
1023 * gsignal.c (g_signal_handler_is_connected): Don't
1024 choke on a zero handler_id.
1026 Tue Jul 6 00:46:43 2004 Matthias Clasen <maclas@gmx.de>
1029 * gtypemodule.c: Fix the declarations of the new
1030 functions to return GType, not void.
1031 Also add missing includes. (#145508, Morten Welinder)
1033 Tue Jul 6 00:46:43 2004 Matthias Clasen <maclas@gmx.de>
1036 * gtypemodule.c (g_type_module_register_flags):
1037 * gtypemodule.c (g_type_module_register_enum): New
1038 functions to register enum and flags types from a
1039 GTypeModule. (#145396, Sven Neumann)
1041 Wed Jun 23 12:55:34 2004 Matthias Clasen <maclas@gmx.de>
1043 * gtype.h (G_DEFINE_TYPE_EXTENDED): Add an initializer for
1044 the g_define_type_info.value_table. (#144678, Mariano
1047 Tue Jun 22 21:50:47 2004 Matthias Clasen <maclas@gmx.de>
1049 * gsignal.c: Fix a couple of typos.
1051 Fri Jun 18 22:53:13 2004 Matthias Clasen <maclas@gmx.de>
1053 * gsourceclosure.h (__G_SOURCECLOSURE_H__): Actually
1054 define the guard after checking for it. (#108038,
1057 2004-04-30 Matthias Clasen <mclasen@redhat.com>
1059 * === Released 2.4.1 ===
1061 2004-04-22 Matthias Clasen <mclasen@redhat.com>
1063 * glib-mkenums.in: Actually convert escape chars in
1064 --vprod. (#139058, Christophe Saout)
1066 2004-04-15 Matthias Clasen <mclasen@redhat.com>
1068 * gparamspecs.c (param_float_init): Correct the initial
1069 minimal value to be -G_MAXFLOAT. The initial values were
1070 inconsistant before, with the initial default being smaller
1071 than the inital minimum.
1072 (param_double_init): Correct the initial minimal value
1075 Tue Mar 9 09:16:11 2004 Owen Taylor <otaylor@redhat.com>
1077 * === Released 2.4.0 ===
1079 2004-03-10 Tor Lillqvist <tml@iki.fi>
1081 * gobject.def: Mark the two entries that shouldn't be in the
1082 import library (see below) as PRIVATE.
1084 Tue Mar 9 09:16:11 2004 Owen Taylor <otaylor@redhat.com>
1086 * === Released 2.3.6 ===
1088 2004-03-04 Tor Lillqvist <tml@iki.fi>
1090 * gobject.def: Another of the glib DLL's functions was erronously
1091 present in the stable branch's gobject.def: g_unichar_validate,
1092 and nobody noticed until too late. Thus there are applications
1093 deployed that expect it to be found in the gobject DLL, and to
1094 keep ABI compatibility, we must keep it there forever. Argh.
1096 Mon Mar 1 16:49:51 2004 Owen Taylor <otaylor@redhat.com>
1098 * === Released 2.3.5 ===
1100 2004-03-01 Tor Lillqvist <tml@iki.fi>
1102 * gobject.def: Add g_slist_remove_all back for ABI
1103 compatibility. That entry point actually is in the glib DLL, but
1104 it was at some time many years ago by mistake added to
1105 gobject.def. Thus there presumably are executables out there that
1106 expect it to be exported from the gobject DLL. We don't want to
1107 break those. (#134813, J. Ali Harlow)
1109 Fri Feb 27 01:49:22 2004 Matthias Clasen <maclas@gmx.de>
1111 * glib-mkenums.in: Support parsing of intializers containing
1112 macros with arguments. (#129717)
1114 2003-02-28 Hans Breuer <hans@breuer.org>
1116 * gobject.def : added g_strv_get_type
1118 Tue Feb 24 14:09:21 2004 Owen Taylor <otaylor@redhat.com>
1120 * === Released 2.3.3 ===
1122 Fri Feb 20 02:44:54 2004 Tim Janik <timj@gtk.org>
1124 * gtype.h (G_DEFINE_TYPE_EXTENDED): added (GTypeFlags) cast needed by C++.
1126 Tue Feb 3 21:24:01 2004 Tim Janik <timj@gtk.org>
1128 * gtype.h (_G_TYPE_CVH): provide a short-cut version for
1129 this macro in case value->g_type==checked_type for gcc, similar
1130 to instance and class check short-cuts. this speeds up code that
1131 makes frequent use of G_VALUE_HOLDS_*() (e.g. setters/getters).
1133 * gtype.c (type_data_last_unref_Wm): don't call class-cache functions
1134 for the uncached case, this rendered g_type_class_unref_uncached()
1135 useless. pointed out by Stefan Westerfeld.
1137 Sat Jan 24 18:20:13 2004 Tim Janik <timj@gtk.org>
1139 * gtype.h: prefixed the parent_class variable defined by G_DEFINE_TYPE()
1140 with type_name. removed type_parent_class argument
1141 from G_DEFINE_TYPE_EXTENDED().
1143 2004-01-24 Tor Lillqvist <tml@iki.fi>
1145 * gobject.def: Add a missing entry.
1147 Sun Jan 11 15:34:35 2004 Manish Singh <yosh@gimp.org>
1149 * gsourceclosure.c: wrap g_io_channel_ref in a function that returns
1150 the passed in GIOChannel, so we aren't abusing GBoxedCopyFunc
1151 semantics. Fixes bug #131076.
1153 Sat Jan 10 23:55:42 2004 Matthias Clasen <maclas@gmx.de>
1155 * glib-mkenums.1: Document the lowercase_name trigraph option.
1157 Sat Jan 10 02:43:20 2004 Tim Janik <timj@gtk.org>
1159 * gtype.h: made G_DEFINE_TYPE_INTERNAL() public by renaming it to
1160 G_DEFINE_TYPE_EXTENDED() and moving it into the appropriate section.
1162 Fri Jan 9 23:41:00 2004 Matthias Clasen <maclas@gmx.de>
1165 * gboxed.c (g_strv_get_type): Add a boxed type for nul-terminated
1166 string arrays. (#110528)
1168 Fri Jan 9 15:34:15 2004 Tim Janik <timj@gtk.org>
1170 * gtype.h: added convenience macros G_IMPLEMENT_INTERFACE() and
1171 G_DEFINE_TYPE() plus variants.
1173 2003-12-30 Murray Cumming <murrayc@usa.net>
1175 * gobject/glib-mkenums.in: Added a lowercase_name option, to be used
1176 next to the enum declaration, where the flag option is already used,
1177 when it is not possible to guess where to put the underscores in the
1178 _get_type() function name, for instance for GNOMEVFSURIHide.
1180 Fri Dec 26 01:34:01 2003 Matthias Clasen <maclas@gmx.de>
1182 * gtype.c (g_type_class_peek_parent): Don't acquire a read lock
1183 here. (#106433, Owen Taylor)
1185 Wed Dec 17 23:29:17 2003 Matthias Clasen <maclas@gmx.de>
1187 * gvalue.c (g_value_peek_pointer): Use g_assert() instead of
1188 g_return_val_if_fail(), suggested by Sheldon Simms.
1190 2003-12-13 Hans Breuer <hans@breuer.org>
1192 gobject.def : update externals
1194 Sat Nov 29 14:57:20 2003 Tim Janik <timj@gtk.org>
1196 * gobject.c: fix g_object_set() within _init() implementations
1197 not working for construct-only properties.
1198 (g_object_init): make the object enter a construct_objects list.
1199 (g_object_newv): remove object from construct_objects after creation.
1200 (g_object_set_valist):
1201 (g_object_set_property): allow construct-only properties for
1202 objects which are in construct_objects.
1204 Thu Nov 27 17:53:52 2003 Tim Janik <timj@gtk.org>
1207 (g_type_class_peek_static): variant of class_peek() which works for
1211 (g_object_do_class_init): make ::notify a run-action signal.
1212 (g_object_newv): use g_type_class_peek_static() by default to
1213 speed up common code path (trades two write-locks for one read-lock).
1214 (g_object_disconnect):
1215 (g_object_connect): allow signal specification words to be
1217 (g_object_set_valist):
1218 (g_object_new_valist): don't leak values.
1219 (g_object_get_property): check property for readability.
1220 (g_object_set_property): check property for writability and to
1221 not be construct-only.
1222 (g_object_set_valist): check property to not be construct-only.
1224 Sat Oct 25 01:09:17 2003 Matthias Clasen <maclas@gmx.de>
1226 * gparam.h (struct _GParamSpecClass): Add /*< private >*/
1227 marker for documentation purposes.
1229 Tue Oct 21 23:17:06 2003 Matthias Clasen <maclas@gmx.de>
1231 * genums.h (struct _GEnumClass):
1232 * genums.h (struct _GFlagsClass):
1233 * gtypemodule.h (struct _GTypeModuleClass):
1234 * gtypemodule.h (struct _GTypeModule): Add /*< public >*/
1235 and /*< private >*/ markers for documentation purposes.
1237 Tue Oct 14 17:40:19 2003 Owen Taylor <otaylor@redhat.com>
1239 * gparamspecs.[ch]: Add a new GParamSpecOverride type
1240 that is a pointer to a different paramspec in a parent
1243 * gparam.[ch]: Add g_paramspec_get_redirect_target()
1244 which follows GParamSpecOverride to the real property.
1245 Make g_param_spec_pool_list() hand redirections,
1246 properties on interfaces.
1248 * gobject.[ch] gobjectnotifyqueue.c: Add
1249 g_object_interface_install_property,
1250 g_object_interface_find_property,
1251 g_object_interface_list_properties(). Redirect virtually all
1252 publically exposed GParamSpec's to the redirect target if
1253 any. (->constructor is the exception.)
1256 Mon Oct 20 22:06:12 2003 Matthias Clasen <maclas@gmx.de>
1258 * gobject.h (struct _GObjectClass): Add /*< public >*/
1259 and /*< private >*/ markers for documentation purposes.
1261 Sat Oct 18 01:24:14 2003 Matthias Clasen <maclas@gmx.de>
1263 * gtypeplugin.h (struct _GTypePluginClass): Add /*< public >*/
1264 and /*< private >*/ markers for documentation purposes.
1266 Thu Oct 2 07:37:12 2003 Tim Janik <timj@gtk.org>
1268 * gtype.c: fix post class_init interface initialization logic
1271 Thu Oct 2 01:16:50 2003 Owen Taylor <otaylor@redhat.com>
1273 * gtype.[ch]: Add g_type_add/remove_interface_check(),
1274 which allows inserting a post-interface-initialization
1277 * testgobject.c: Fix a deprecated usage.
1279 Mon Sep 29 10:51:01 2003 Owen Taylor <otaylor@redhat.com>
1281 * gtype.[ch]: Add g_type_default_interface_ref/peek/unref
1282 for accessing the default vtable of an interface.
1284 Fri Sep 26 17:24:53 2003 Owen Taylor <otaylor@redhat.com>
1286 * gtype.c (g_type_instance_get_private): You can
1287 have instance_real_class_bsa be non-NULL, but still
1288 the class not be in the bsa. (Found by Kris Rietveld)
1290 2003-09-15 Matthias Clasen <maclas@gmx.de>
1292 * glib-genmarshal.c (complete_out_arg): Don't generate code
1293 using deprecated APIs. (#122292, Christian Persch)
1295 Fri Sep 12 16:31:40 2003 Owen Taylor <otaylor@redhat.com>
1297 * gsignal.[ch]: Add g_signal_accumulator_true_handled(), to
1298 do TRUE-stops-emit signals. (#80487, Ron Steinke)
1300 * Makefile.am: Move testoverride.c and testifaceinit.c to
1303 2003-09-12 Matthias Clasen <maclas@gmx.de>
1305 Make the g_value_set_x_take_ownership() functions "official"
1306 part of the API (#100948):
1308 * gvaluetypes.[hc]: Add g_value_take_string() (synonym to the
1309 now deprecated g_value_set_string_take_ownership()).
1311 * gparam.[hc]: Add g_value_take_param() (synonym to the
1312 now deprecated g_value_set_param_take_ownership()).
1314 * gobject.[hc]: Add g_value_take_object() (synonym to the
1315 now deprecated g_value_set_object_take_ownership()).
1317 * gboxed.[hc]: Add g_value_take_boxed() (synonym to the
1318 now deprecated g_value_set_boxed_take_ownership()).
1320 Tue Sep 2 19:37:21 2003 Tim Janik <timj@gtk.org>
1322 * gtype.[hc]: added support for a "default vtable" per interface,
1323 that interface vtables are initialized from.
1324 the default vtable is initialized and finalized through class_init,
1325 class_finalize and class_data from the interfaces GTypeInfo struct.
1326 (type_data_last_unref_Wm): unload child plugin before unreffing
1329 testifaceinit.c: minor fixups. fixed up base_init() assertions, since
1330 with a default vtable, base_init() may be called multiple times.
1331 added default initializer to iface1.
1333 Tue Sep 2 14:53:41 2003 Tim Janik <timj@gtk.org>
1335 * gobject-query.c (main): fix iterating over fundamental types.
1337 * gtype.c: applied patch from owen which keeps internal
1338 class initialization state to maintain class and interface
1339 initialization happen in the order of:
1341 2. interface' base_init
1342 = interfaces added after here are immediately base_init-ialized
1345 = interfaces added here are immediately Interface_init-ialized
1347 Wed Aug 27 19:53:26 2003 Manish Singh <yosh@gimp.org>
1349 * gobject.c: removed stray change from previous commit.
1351 Wed Aug 27 01:25:40 2003 Owen Taylor <otaylor@redhat.com>
1353 * Makefile.am testifaceinit.c: Add a detailed test case
1354 for interface initialization, testing the ability to
1355 add interfaces during class initialization and the ordering
1356 of interface base_init, class init, and interface_init.
1357 (Expected to fail at the moment.)
1359 Mon Aug 25 14:51:46 2003 Manish Singh <yosh@gimp.org>
1361 * gtypemodule.c (g_type_module_register_type): fix typo in last
1362 commit, cast to GTypeValueTable * to get rid of const warning.
1364 Mon Aug 25 14:16:48 2003 Owen Taylor <otaylor@redhat.com>
1366 * gtypemodule.c (g_type_module_register_type): Clarify
1367 docs on the return. Fix a memory leak if a type with a
1368 value table is reloaded. (#112439, Daniel Yacob)
1370 Tue Aug 19 05:21:04 2003 Tim Janik <timj@gtk.org>
1372 * testgobject.c (main): check private instance data after
1375 * gtype.c: for instances with private data, store the real class
1376 pointer in a bsearch array during class initialization.
1377 (g_type_instance_get_private): fetch the real class of
1378 an instance from the bsearch array if necessary.
1380 Tue Aug 19 04:08:14 2003 Tim Janik <timj@gtk.org>
1382 * gvalue.c: adapt to new gbsearcharray.h code.
1383 (g_value_register_transform_func): turn transform function
1384 replacement into a valid operation.
1386 * gsignal.c: adapt to new gbsearcharray.h code.
1388 * gboxed.c: adapt to new gbsearcharray.h code.
1390 Tue Aug 19 01:31:28 2003 Tim Janik <timj@gtk.org>
1392 * gsignal.c: added optimizations to skip NOP signal emissions.
1394 2003-08-08 Matthias Clasen <maclas@gmx.de>
1396 * gobject.c (object_set_property): Improve the wording of the warning for invalid
1397 values. (#117246, Mariano Suarez-Alvarez)
1399 Wed Aug 6 09:57:14 2003 Owen Taylor <otaylor@redhat.com>
1401 * testgobject.c (test_signal_accumulator): Add check
1402 for instance private usage within in instance_init.
1403 (Currently will fail.)
1405 2003-07-20 Hans Breuer <hans@breuer.org>
1407 * gobject.def : updated externals
1409 Tue Jul 8 22:29:31 2003 Soeren Sandmann <sandmann@daimi.au.dk>
1411 * gtype.c (type_class_init_Wm): Only access node->data->instance
1412 when the node is instantiable.
1414 Tue Jul 8 14:55:27 2003 Owen Taylor <otaylor@redhat.com>
1416 * gtype.c (type_class_init_Wm): Initialize
1417 node->data->instance.private_size here rather than
1418 in type_data_make_W() since the class init for the parent
1419 class may have changed pnode->data->instance.private_size.
1420 (#116921, reported by Soeren Sandmann)
1422 2003-06-18 Matthias Clasen <maclas@gmx.de>
1424 * Makefile.am (man_MANS): Removed, these are now installed from
1425 docs/reference/gobject.
1427 Fri May 30 14:42:24 2003 Owen Taylor <otaylor@redhat.com>
1429 * gobject.c (g_value_set_object): Order refs/unrefs
1430 so setting the same object back is safe. (#112861,
1433 2003-03-24 Sven Neumann <sven@gimp.org>
1435 * gtype.c (type_data_finalize_class_ifaces_Wm): removed leftover
1436 debugging message (bug #109093).
1438 Thu Feb 27 17:33:19 2003 Owen Taylor <otaylor@redhat.com>
1440 * gtype.[ch] testgobject.c: Add support for instance-private data.
1441 g_type_class_add_private(), g_type_instance_get_private(),
1442 G_TYPE_INSTANCE_GET_PRIVATE(). (#101959, patch partly by
1443 Mark McLoughlin, extensive feedback from Tim Janik.)
1445 2003-03-06 Matthias Clasen <maclas@gmx.de>
1447 * gsignal.c (g_signal_handlers_block_matched):
1448 (g_signal_handlers_unblock_matched):
1449 (g_signal_handlers_disconnect_matched): Fix 0/FALSE confusion.
1450 (#107662, Morten Welinder)
1452 Mon Feb 17 20:59:47 2003 Tim Janik <timj@gtk.org>
1454 * gvalue.c (g_value_register_transform_func): don't assert the types
1455 passed in to have value tables. this prevents dynamic types from
1456 registering transform functions.
1458 Sun Feb 9 13:44:01 2003 Soeren Sandmann <sandmann@daimi.au.dk>
1460 * gboxed.c (boxed_proxy_value_init): remove lookup of unused
1463 2003-02-07 Matthias Clasen <maclas@gmx.de>
1471 * gsignal.c: Remove all docs from gobject at Tims
1472 request. Documentation is only for weenies anyway...
1474 2003-01-12 Tor Lillqvist <tml@iki.fi>
1476 * gobject.def: Add g_type_interface_prerequisites. Thanks to
1479 2002-12-18 Matthias Clasen <maclas@gmx.de>
1481 * gobject.c: Add docs.
1483 2002-12-18 Michael Natterer <mitch@gimp.org>
1485 * gobject/gtype.c (type_data_finalize_class_ifaces_Wm): applied
1486 patch I got from Tim Janik for testing which fixes bug #101521.
1487 (restart iterating the interface enties each time we finalized one
1488 because they might have been modified).
1490 2002-12-17 Matthias Clasen <maclas@gmx.de>
1492 * gparam.c (g_param_spec_internal): Remove markup from doc
1493 comment, as GObject doesn't use --sgml-mode yet.
1495 2002-12-15 Matthias Clasen <maclas@gmx.de>
1497 * gsignal.c (g_signal_new): Typo fix.
1500 * gparam.c (g_param_spec_internal):
1501 * gobject.c (g_object_class_install_property): Add docs.
1503 2002-12-13 Matthias Clasen <maclas@gmx.de>
1505 * glib-genmarshal.c, gobject-query.c: Use g_printf() instead of
1506 system printf. (#99319)
1508 Thu Dec 12 15:00:10 2002 Manish Singh <yosh@gimp.org>
1510 * gvaluetransform.c: use G_G[U]INT64_FORMAT unconditionally,
1511 since we'll always have it now.
1513 2002-12-07 Matthias Clasen <maclas@gmx.de>
1515 * gparam.c (canonalize_key): Rename to canonicalize_key. Adjust
1518 2002-12-05 Matthias Clasen <maclas@gmx.de>
1520 * gsignal.c (g_signal_new): Explain allowed signal names in more
1523 2002-12-04 Matthias Clasen <maclas@gmx.de>
1525 * gsignal.h (g_signal_add_emission_hook):
1526 * gtype.h (g_type_interface_get_plugin): Sync parameter names with
1527 docs and implementation.
1529 * gtype.c (g_type_add_interface_dynamic):
1530 (g_type_interface_get_plugin):
1531 (g_type_interface_peek_parent):
1532 (g_type_query): Add docs.
1534 2002-12-03 Matthias Clasen <maclas@gmx.de>
1536 * gtype.c (g_type_get_qdata):
1538 (g_type_interface_add_prerequisite): Add docs.
1540 2002-12-02 Matthias Clasen <maclas@gmx.de>
1542 * gobject.c (g_signal_connect_object): Add docs.
1544 2002-11-30 Matthias Clasen <maclas@gmx.de>
1546 * gsignal.c: More docs.
1548 2002-11-28 Matthias Clasen <maclas@gmx.de>
1550 * gtype.c (g_type_interface_prerequisites): Document as 2.2
1553 Thu Nov 21 16:05:50 2002 Owen Taylor <otaylor@redhat.com>
1555 * gtype.c (g_type_check_instance_cast): Allow
1556 NULL to be cast to any type. (Frequently requested,
1557 most recently #99023, Lars Clausen.)
1559 Mon Nov 4 14:42:36 2002 Owen Taylor <otaylor@redhat.com>
1561 * gtype.c gsignal.c gvaluearray.c: Include config.h
1562 so DISABLE_MEMPOOLS actually has an effect.
1563 (#96437, Morten Welinder)
1565 * gsignal.c: Conditionalize definition of g_handler_ts
1566 on DISABLE_MEM_POOLS (#96437)
1568 2002-10-20 Matthias Clasen <maclas@gmx.de>
1570 * gtype.c (g_type_interface_prerequisites): Report only the most
1571 specific instantiatable prerequisite, filter out all supertypes of
1572 this one (the supertypes are added to the prerequisites array for
1575 2002-10-16 Matthias Clasen <maclas@gmx.de>
1577 * glib-mkenums.in: Support for template files.
1579 * glib-mkenums.1: Document --template.
1581 2002-10-15 Matthias Clasen <maclas@gmx.de>
1583 * gtype.c (g_type_interface_prerequisites): New function to obtain
1584 the prerequisites of an interface type.
1586 Sat Oct 12 22:02:32 2002 Tim Janik <timj@gtk.org>
1588 * merged up from 2.0:
1590 * testgobject.c: test creation of new fundamental types.
1592 * gtype.c (g_type_fundamental_next), (type_node_fundamental_new_W):
1593 account for static_fundamental_next storing non-shifted fundamental
1594 IDs. this fixes g_type_fundamental_next() not returning a new usable
1597 Wed Sep 11 16:50:20 2002 Dom Lachowicz <cinamod@hotmail.com>
1599 * gtype.h: Fix problems with excessive C++ warnings: "ISO C++ forbids nested groups within expressions"
1601 Fri Jul 26 15:46:36 2002 Owen Taylor <otaylor@redhat.com>
1603 * gvaluetransform.c: Fix problems with excess ';'
1604 by addition of strategic 'extern void glib_dummy_decl (void)'
1605 (#83272, David L. Cooper II)
1607 Thu Jul 25 20:34:39 2002 Owen Taylor <otaylor@redhat.com>
1609 * gtype.c (g_type_interface_add_prerequisite): When
1610 adding ancestral prerequisites, add the grandparents,
1611 not the siblings. (Problem found by Jon Trowbridge, patch from
1614 2002-07-05 Anders Carlsson <andersca@gnu.org>
1616 * gobject.c (g_object_base_class_finalize): Remove debugging
1617 message, approved by Tim Janik.
1619 2002-06-11 Anders Carlsson <andersca@gnu.org>
1621 * gtypemodule.c: (g_type_module_complete_interface_info):
1623 Fix argument order. Fixes #82806.
1625 Mon May 20 15:57:47 2002 Owen Taylor <otaylor@redhat.com>
1627 * gsignal.c: When printing errors, handle NULL
1628 returns from g_type_debug(). (#73559, Laszlo Peter)
1630 * gtype.c (type_descriptive_name_I): De-inline,
1631 since it's only used for debugging.
1633 Tue May 7 15:03:02 2002 Owen Taylor <otaylor@redhat.com>
1635 * glib-genmarshal.c: Fix include order for config.h (#71704,
1638 2002-05-07 Michael Natterer <mitch@gimp.org>
1640 * Makefile.am: use the glib-genmarshal found at configure time
1641 if CROSS_COMPILING is set, use the one which was just built
1644 Mon May 6 16:06:23 2002 Owen Taylor <otaylor@redhat.com>
1646 [ merged from stable ]
1648 * gobject.c: Remove PROPERTIES_CHANGED enumeration
1649 value that wasn't used any more. (#78833,
1652 * gboxed.c (g_boxed_copy): Remove check on data[2]
1653 that no longer exists. (#80814, Daniel Elstner)
1655 Tue Mar 26 15:21:47 2002 Owen Taylor <otaylor@redhat.com>
1657 * gsignal.h (g_signal_handlers_*_by_func): Add explicit
1658 cast of G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA to
1659 GSignalMatchType so that these macros work for C++.
1660 (#76454, Damien Sandras)
1662 Mon Mar 25 17:51:05 2002 Owen Taylor <otaylor@redhat.com>
1664 * glib-mkenums.in (parse_entries): Fix various bugs and
1665 excessive stack usage that crept in the conversion from
1666 gtk-mkenums. (#74431)
1668 Mon Mar 25 17:25:57 2002 Owen Taylor <otaylor@redhat.com>
1670 * gtype.c (g_type_free_instance): Wrap setting freed instance
1671 memory to 0xaa in #ifdef G_ENABLE_DEBUG
1673 Thu Mar 21 01:28:14 2002 Tim Janik <timj@gtk.org>
1676 * gobject.[hc]: fix extraneous include.
1678 Tue Mar 19 18:57:12 2002 Tim Janik <timj@gtk.org>
1680 * gtype.c (check_add_interface_L): applied patch from Matthias Clasen
1681 <maclas@gmx.de> to check for prerequisite of interfaces, fixes #74427.
1682 fixed mutex recursion in his patch (we can't call g_type_is_a() while
1683 holding a read lock).
1685 * gparam.c (canonalize_key): cleanup.
1687 2002-03-13 Alexander Larsson <alla@lysator.liu.se>
1689 * gparam.c (canonalize_key):
1690 Function to canonicalize parameter names. Faster than
1692 (g_param_spec_internal, param_spec_ht_lookup):
1695 2002-03-13 Erwann Chenede <erwann.chenede@sun.com>
1696 * gobject/gclosure.c
1698 * gobject/gsignal.c: fixed cast problems with function pointer
1699 to avoid warnings (with forte compiler) (#73898)
1701 2002-03-05 Sven Neumann <sven@gimp.org>
1703 * gvaluetransform.c (g_value_transforms_init): don't try to
1704 register undeclared value transform functions if G_GINT64_FORMAT
1705 or G_GUINT64_FORMAT are undefined (#73586).
1707 2002-03-03 Tor Lillqvist <tml@iki.fi>
1710 * makefile.mingw.in: Rename testgruntime to testgobject here, too.
1712 Sun Mar 3 04:11:58 2002 Tim Janik <timj@gtk.org>
1714 * gobject.c: placed a comment about not changing CArray until we have
1715 g_object_list_watched_closures().
1717 * gparam.h (struct _GParamSpecClass): added padding.
1719 * gobjectnotifyqueue.c (struct _GObjectNotifyQueue): abuse
1720 g_list_alloc() to allocate GObjectNotifyQueue to et rid
1723 Tue Feb 26 10:51:00 2002 Owen Taylor <otaylor@redhat.com>
1725 * Makefile.am (testgobject_LDADD): Rename testgruntime
1728 Sun Feb 24 22:08:29 2002 Owen Taylor <otaylor@redhat.com>
1730 * gtypemodule.[ch] (g_type_module_add_interface): Make
1731 GInterfaceInfo paramter const to correspond to the
1732 conventions for the g_type_add_interface() functions.
1733 (#72461, Miroslaw Dobrzanski-Neumann)
1735 Sat Feb 23 13:28:56 2002 Owen Taylor <otaylor@redhat.com>
1737 * gtypeplugin.h (struct _GTypePluginClass): Add some
1738 padding to the class.
1740 * gclosure.h (struct _GClosure): Fix typo in comment.
1742 2002-02-20 Tor Lillqvist <tml@iki.fi>
1744 * gobject.def: Add g_value_set_object_take_ownership and
1745 g_value_set_param_take_ownership.
1747 Wed Feb 20 22:55:15 2002 Owen Taylor <otaylor@redhat.com>
1749 * gobject.c: Fix implicit conversions between void * and
1750 function pointer (Miroslaw Dobrzanski-Neumann, #71963)
1752 Sun Feb 16 22:08:48 2002 Tim Janik <timj@gtk.org>
1755 * gparam.[hc]: provide marshaller specific value_set_*_take_ownership()
1758 * gvalue.h: shrink GValue's data contents to 2 unions.
1760 * glib-genmarshal.c: fix release and realeas_check hackage by always
1761 using _take_ownership() variants. directly access value contents if
1762 G_ENABLE_DEBUG is not defined.
1764 * gobject.h: add padding pointers to the class struct.
1766 Wed Feb 13 17:22:37 2002 Tim Janik <timj@gtk.org>
1768 * gtype.c (g_type_value_table_peek): fixed a check for node not being NULL.
1770 Wed Feb 13 06:53:50 2002 Tim Janik <timj@gtk.org>
1772 * gparam.c: remove extraneous redefinition of G_PARAM_SPEC_CLASS().
1774 Wed Feb 13 06:29:51 2002 Tim Janik <timj@gtk.org>
1776 * gvaluetransform.c: cosmetic cleanups, fixed [u]int64->string
1779 * ChangeLog: added entry from owen which went into the wrong
1782 Fri Feb 8 23:52:27 2002 Owen Taylor <otaylor@redhat.com>
1784 * gobject/gvaluetransform.c: Register transformations for
1785 gint64, guint64. (#70780, patch from Andy Wingo)
1787 2002-02-10 Hans Breuer <hans@breuer.org>
1789 * gvaluetransform.c : msvc 5.0 can't cast from uint64 to
1790 double. Disable respective transform_func than.
1792 * makefile.msc.in : build test programs
1794 Thu Jan 24 07:39:56 2002 Tim Janik <timj@gtk.org>
1796 * gobject.c (g_signal_connect_object): return gulong instead
1799 Fri Jan 11 12:26:36 2002 Tim Janik <timj@gtk.org>
1801 * gparamspecs.c: fixed param_value_array_values_cmp(),
1802 param_value_array_validate() and
1803 param_value_array_set_default() to deal with NULL value
1806 Wed Jan 9 05:23:27 2002 Tim Janik <timj@gtk.org>
1808 * gobject.h (G_OBJECT_WARN_INVALID_PROPERTY_ID): cosmetic fix.
1810 2002-01-05 Hans Breuer <hans@breuer.org>
1812 * makefile.msc.in : use -FImsvc_recommended_pragmas.h
1814 Fri Jan 4 04:36:46 2002 Tim Janik <timj@gtk.org>
1816 * gtype.h (G_TYPE_FLAG_RESERVED_ID_BIT): turn this into a GType,
1817 so negating it works on 64bit platforms.
1819 2001-12-21 Tor Lillqvist <tml@iki.fi>
1821 * gobject.def: Add g_signal_get_invocation_hint.
1823 Tue Dec 18 21:39:57 2001 Tim Janik <timj@gtk.org>
1825 * testoverride.c: added some assertions to test
1826 g_signal_get_invocation_hint().
1828 * gsignal.[hc]: remove signal_id argument from
1829 g_signal_chain_from_overridden(), the parameters are assumed to match
1830 the innermost signal currently in emission for this instance.
1831 added g_signal_get_invocation_hint() to figure the invocation hint
1832 of the innermost signal emission of an instance.
1834 * gsignal.c (g_signal_list_ids): fix G_BSEARCH_ARRAY_NODES() to
1835 access a bsearch array and not a pointer to it (discovered by
1838 2001-12-17 Anders Carlsson <andersca@gnu.org>
1840 * gtype.h (G_TYPE_FLAG_RESERVED_ID_BIT): Set the reserved bit
1841 to (1 << 0) instead of (1 << 30).
1843 2001-12-14 James Henstridge <james@daa.com.au>
1845 * Makefile.am: add rules to build it.
1847 * testoverride.c: test program for closure override/chaining.
1849 Thu Dec 13 08:03:17 2001 Tim Janik <timj@gtk.org>
1851 * gsignal.c: implemented closure chaining.
1853 2001-12-08 Christopher Blizzard <blizzard@redhat.com>
1855 * gsignal.h (g_signal_connect): Explicitly add a cast to the last
1856 argument so that the macro will work from C++.
1858 2001-12-06 Tor Lillqvist <tml@iki.fi>
1860 * makefile.mingw.in (gobject_OBJECTS): Add gsourceclosure.o.
1862 Mon Nov 26 09:55:12 2001 Tim Janik <timj@gtk.org>
1864 * gtype.h: typedef GType to gulong instead of gsize, if possible.
1866 * gtype.c: fixups for GType being sizeof(long) wide (changed
1870 * gparam.c: likewise.
1872 Sun Nov 25 22:33:32 2001 Tim Janik <timj@gtk.org>
1874 * gtype.h: removed enum GTypeFundamentals. use macros
1875 to provide the constant fundamental type IDs, so they
1876 all return numbers of type GType, and not int.
1877 sizeof(GTypeFundamentals) < sizeof(GType) problem reported
1878 and fix sugegsted by Havoc.
1880 2001-11-23 Hans Breuer <hans@breuer.org>
1882 * gobject.def : updated externals
1884 Mon Nov 19 14:35:56 2001 Owen Taylor <otaylor@redhat.com>
1886 * *.h: Improve the detection of invalid includes by moving
1887 the test outside the duplicate include guards.
1889 * gsourceclosure.c (g_source_set_closure): Doc fix.
1891 Thu Nov 22 03:30:57 2001 Tim Janik <timj@gtk.org>
1893 * gvalue.h (G_TYPE_IS_VALUE): use g_type_check_is_value_type()
1894 instead of g_type_value_table_peek().
1896 * gtype.[hc] (type_check_is_value_type_U): speed up check
1897 LOCK-less by caching lookups in node->mutatable_has_value_table.
1899 * gtype.[hc]: removed locks where possible. partly based on
1900 patches from owen and alex.
1902 Thu Nov 22 00:26:26 2001 Tim Janik <timj@gtk.org>
1904 * gtype.[hc]: provide G_TYPE_FUNDAMENTAL_SHIFT and
1905 g_type_fundamental_next() to return next usable fundamental
1906 type. use TypeNode pointers as type IDs.
1908 2001-11-22 Tor Lillqvist <tml@iki.fi>
1910 * makefile.mingw.in (DEFINES): Set G_LOG_DOMAIN as in Makefile.am.
1912 * gparamspecs.h (GOBJECT_VAR): Can't use GLIB_VAR here, as that
1913 makes sense only when building libglib. GOBJECT_VAR is similar for
1916 * gobject.def: Add g_param_spec_types, remove
1917 g_type_fundamental_branch_last.
1919 Wed Nov 21 17:23:33 2001 Tim Janik <timj@gtk.org>
1921 * gparamspecs.[hc]: put newly created param spec types into a
1924 * gboxed.[hc]: moved boxed types with _get_type() function here,
1925 for: G_TYPE_CLOSURE, G_TYPE_VALUE, G_TYPE_VALUE_ARRAY,
1928 * gtype.h: removed fundamental branch APIs and derived enum
1929 values. define GType as gsize.
1931 2001-11-19 jacob berkman <jacob@ximian.com>
1933 * gobjectnotifyqueue.c: include glib-object.h rather than
1936 2001-11-16 Mark McLoughlin <mark@skynet.ie>
1938 * glib-mkenums.in: allow the enums name to not be on the same
1939 line as the trailing '}'. (#64714)
1941 2001-11-18 Hans Breuer <hans@breuer.org>
1943 * makefile.msc.in : remove g_log_domain_gruntime usage
1945 Sat Nov 17 18:14:40 2001 Owen Taylor <otaylor@redhat.com>
1947 * glib-genmarshal.c: Exit with non-zero exit status if
1948 any errors were encountered.
1950 * glib-genmarshal.c: Instead of generating gobject/gmarshal.h
1951 #include only for the header, generate glib-object.h
1952 #include for both the header and body. (#63834)
1954 * glib-genmarshal.c: Generate include guards around the
1955 content unless --nostdinc is specified.
1957 2001-11-17 Tor Lillqvist <tml@iki.fi>
1959 * gobject.def: Add g_pointer_type_register_static.
1961 2001-11-15 Tor Lillqvist <tml@iki.fi>
1963 * gobject.def: Reflect recent changes.
1965 Tue Nov 13 23:18:10 2001 Tim Janik <timj@gtk.org>
1967 * gsignal.[hc]: add API for chaining:
1968 g_signal_chain_from_overridden() and g_signal_override_class_closure(),
1969 implementation yet to come.
1971 * gtype.[hc], Makefile.am: provide G_LOG_DOMAIN as compile flag.
1973 * gparam.[hc]: s/g_param_get/g_param_spec_get/ for get_nick,
1974 get_name and get_blurb, to be consistent with the rest of the
1975 g_param_spec_*() functions.
1977 * gparamspecs.[hc]: got rid of bogus GClosure paramspec.
1978 G_TYPE_CLOSURE is a boxed type already.
1980 Tue Nov 13 22:16:41 2001 Tim Janik <timj@gtk.org>
1982 * gtype.[hc]: API cleanups.
1983 remove g_type_check_flags(), provide g_type_test_flags() as
1984 a *private* function.
1985 s/g_type_check_is_a/g_type_check_class_is_a/, private function.
1986 s/g_type_instance_is_a/g_type_check_instance_is_a/, also private.
1988 Tue Nov 13 20:02:47 2001 Tim Janik <timj@gtk.org>
1990 * gparam.h: fix standard type macros.
1992 Wed Nov 7 00:56:00 2001 Tim Janik <timj@gtk.org>
1994 * gclosure.h: provide G_CLOSURE_N_NOTIFIERS() for people that need
1995 to walk the notifier list (puhh, black magic, stay-away-warning ;).
1997 Mon Nov 5 18:59:08 2001 Tim Janik <timj@gtk.org>
2000 * gsignal.h: we need signal.h for G_BREAKPOINT().
2002 Sun Nov 4 14:01:23 2001 Owen Taylor <otaylor@redhat.com>
2004 * gvaluetypes.[ch]: Add a function g_pointer_type_register_static()
2005 to register a type derived from G_TYPE_POINTER.
2007 2001-11-03 Hans Breuer <hans@breuer.org>
2009 * makefile.msc.in : gobject-query needs gmarshal.[hc,stings]
2010 so build it after them. Add gsourceclosure.obj.
2012 * gobject.def : removed duplicates, added mising
2014 Mon Oct 29 11:05:15 2001 Owen Taylor <otaylor@redhat.com>
2016 * glib-mkenums.in: Generate glib-mkenums from glib-mkenums.in,
2017 substituting in path to perl. (#63093, Dan Winship)
2019 * Makefile.am (bin_SCRIPTS): Remove hack to copy glib-mkenums
2022 2001-10-26 Tor Lillqvist <tml@iki.fi>
2024 * makefile.mingw.in: When running glib-genmarshal, set PATH to
2027 2001-10-23 Tor Lillqvist <tml@iki.fi>
2029 * Makefile.am: (Win32): If we have built the MSVC import library,
2030 install it. Install the gcc import library. Also support
2033 2001-10-13 Matthias Clasen <matthiasc@poet.de>
2035 * glib-genmarshal.1, glib-mkenums.1: Typo fixes.
2037 Fri Oct 12 18:40:18 2001 Tim Janik <timj@gtk.org>
2041 Wed Oct 10 17:25:22 2001 Joshua N Pritikin <vishnu@pobox.com>
2043 * glib-genmarshal.c gparamspecs.[ch] gtype.[ch] gvalue.h
2044 gvaluecollector.h gvaluetypes.[ch]: Fill in missing support for
2045 gint64 & guint64 (#59254).
2047 * Unconditionalize same (compile with or without G_HAVE_INT64).
2049 Wed Oct 10 15:38:58 2001 Joshua N Pritikin <vishnu@pobox.com>
2051 * gparamspecs.h (G_IS_PARAM_SPEC_FLAGS): Fix order of
2052 *_PARAM_SPEC_ULONG defines.
2054 Thu Oct 4 01:10:52 2001 Owen Taylor <otaylor@redhat.com>
2056 * gparamspecs.h: Add missing G_HAVE_GINT64 conditionalization.
2058 Wed Oct 3 16:02:24 2001 Owen Taylor <otaylor@redhat.com>
2060 * glib-genmarshal.c gparamspecs.[ch] gvalue.h
2061 gobject/gvaluetypes.[ch]: Add support for G_TYPE_INT64
2062 and storing it in GValue (Patch from Mathieu Lacage, #59254.)
2064 2001-10-03 jacob berkman <jacob@ximian.com>
2066 * gtype.c (type_iface_retrieve_holder_info_Wm):
2067 (type_iface_vtable_init_Wm):
2068 (type_iface_vtable_finalize_Wm):
2071 * gobject.c (g_object_get_property): s/retrive/retrieve/
2073 2001-09-25 Tor Lillqvist <tml@iki.fi>
2075 * Makefile.am: Use new macros for .def file, and check for
2076 MS_LIB_AVAILABLE, new rule to build MS import library.
2078 * makefile.msc.in: Use same DLL and import library names as
2081 2001-09-21 Hans Breuer <hans@breuer.org>
2083 * gobject.def : updated externals
2085 2001-09-19 Tor Lillqvist <tml@iki.fi>
2087 * gobject.rc.in: Correct InternalName and OriginalFilename to
2088 match what we actually produce.
2090 Tue Sep 18 23:09:02 2001 Tim Janik <timj@gtk.org>
2092 * gparam.[hc]: rename *nick and *blurb fields to catch
2093 direct accesses in third party code.
2094 provide g_param_get_nick(), g_param_get_blurb() and
2095 g_param_get_name() accessors.
2097 Mon Sep 10 20:31:37 2001 Tim Janik <timj@gtk.org>
2099 * gobject.[hc]: removed extraneous GObject* returns from a
2100 couple functions that are very unlikely to be used in nested.
2101 changed gpointer->GObject* for a couple return values/arguments.
2104 Mon Sep 10 19:27:47 2001 Tim Janik <timj@gtk.org>
2107 g_type_add_interface*(): implement the ability to add an interface to
2108 a type whose parents already conform to this interface.
2109 such "overriding" interfaces, when initialized, are not just initialized
2110 with 0, but with a copy of the interface they override.
2111 g_type_interface_peek_parent(): new function, return the interface
2112 that this interface "overrides", if any.
2114 * testgruntime.c: test new interface stuff.
2116 2001-09-10 Alex Larsson <alexl@redhat.com>
2118 * gobject/gboxed.[ch]:
2119 * gobject/gsourceclosure.c:
2120 Removed is_refcounted and GBoxedInitFunc from
2121 g_boxed_type_register_static().
2123 Sat Sep 8 14:13:57 2001 Owen Taylor <otaylor@redhat.com>
2125 * gobject/Makefile.am: Move gbsearcharray.[ch] to glib
2126 as a private ininstalled header.
2128 Tue Sep 4 22:24:48 2001 Matthias Clasen <matthiasc@poet.de>
2130 * gobject.c (g_object_base_class_finalize): typo fix.
2132 Tue Sep 4 01:49:18 2001 Tim Janik <timj@gtk.org>
2134 * gsourceclosure.c: make closure_callback_funcs static,
2135 added some g_return_if_fail() statements.
2137 Mon Aug 27 14:55:27 2001 Owen Taylor <otaylor@redhat.com>
2139 * gsourceclosure.[ch] (g_source_set_closure): Implement.
2141 * gsourceclosure.[ch]: Add GType's for GIOChannel, GIOCondition.
2143 2001-08-17 James Henstridge <james@daa.com.au>
2145 * gobject.c (WeakRefStack): add an object member to the structure.
2146 (weak_refs_notify): pass wstack->object as extra argument to
2148 (g_object_weak_ref): set wstack->object when initialising
2151 * gobject.h (GWeakNotify): add second argument to prototype which
2152 gives the pointer to where the object that is being disposed of
2155 Wed Jul 18 19:42:31 2001 Tim Janik <timj@gtk.org>
2157 * gtype.h: if __GNUC__ is defined, inline a test for an exact type
2158 match for instances and classes in G_TYPE_CHECK_INSTANCE_TYPE() and
2159 G_TYPE_CHECK_CLASS_TYPE() before calling g_type_instance_is_a().
2161 Sun Aug 12 02:07:10 2001 Tim Janik <timj@gtk.org>
2163 * gvaluearray.[hc]: fix preallocation logic, support DISABLE_MEM_POOLS
2164 properly, group value allocations.
2165 (g_value_array_new): fix semantic of n_prealloced argument, so it's
2166 really just about preallocation space.
2168 2001-07-23 Padraig O'Briain <Padraig.Obriain@Sun.COM>
2170 * gobject/gobjectnotifyqueue.c: fix unconditional check of
2171 first GParamSpec in g_object_notify_queue_thaw(); to prevent
2172 property notification being lost.
2174 2001-08-06 Sven Neumann <sven@gimp.org>
2177 added new functions g_object_[add|remove]_weak_pointer().
2179 2001-08-01 Sven Neumann <sven@gimp.org>
2181 * gsignal.h: added convenience macro g_signal_connect_after().
2183 2001-07-29 Hans Breuer <hans@breuer.org>
2185 * gobject.def : updated externals
2187 2001-07-20 Hans Breuer <hans@breuer.org>
2189 * gobject.def : updated externals
2191 * makefile.msc.in : reflect glib move
2193 Tue Jul 10 18:50:16 2001 Tim Janik <timj@gtk.org>
2195 * gsignal.h (struct _GSignalQuery): fix misplaced comment.
2197 Mon Jul 2 07:17:47 2001 Tim Janik <timj@gtk.org>
2199 * gobject.c (g_object_weak_ref):
2200 (g_object_watch_closure): congrats tim, introducing of-by-one
2201 errors like on my very first day of C programming.
2203 Sat Jun 30 11:07:00 2001 Tim Janik <timj@gtk.org>
2205 * gobject.[hc]: provide weak_ref/weak_unref functions,
2206 invoked from ->dispose. renamed ->shutdown() to ->dispose(),
2207 provide "public" API entry here: g_object_run_dispose(), this
2208 fucntion should _only_ be called from object system implementations
2209 (e.g. gtkobject.c) if at all.
2211 * gtypemodule.c (g_type_module_dispose): s/shutdown/dispose/
2213 * gsignal.h: removed compat aliases.
2215 * gobject.c (g_object_connect): support data objects.
2217 Sat Jun 30 13:17:12 2001 Owen Taylor <otaylor@redhat.com>
2219 * testgruntime.c (test_object_class_init)
2220 gobject.c (g_object_do_class_init):
2221 g_signal_newc() => g_signal_new().
2223 Thu Jun 28 22:49:40 2001 Owen Taylor <otaylor@redhat.com>
2225 * gtype.[ch] gobject-query.c testgruntime.c: Remove
2226 debug flag argument to g_type_init() and add
2227 g_type_init_with_debug_flags().
2229 Thu Jun 28 16:42:49 2001 Tim Janik <timj@gtk.org>
2231 * gsignal.c (g_signal_lookup):
2232 (g_signal_list_ids): give elaborate warnings about invalid types,
2233 non-instantiatable types and unloaded types that we can't operate on.
2235 * gparam.[hc]: g_param_spec_pool_belongings() ->
2236 g_param_spec_pool_list_owned().
2238 * gsignal.[hc]: renamed:
2239 g_signal_newc -> g_signal_new
2240 g_signal_disconnect_by_func -> g_signal_handlers_disconnect_by_func
2241 g_signal_block_by_func -> g_signal_handlers_block_by_func
2242 g_signal_unblock_by_func -> g_signal_handlers_unblock_by_func
2243 added GConnectType to simplify (..gboolean swapped, gboolean after)
2246 * gobject.[hc]: changed prototypes accordingly.
2248 2001-06-22 Hans Breuer <hans@breuer.org>
2250 * gobject.def : updated externals
2252 * gobjectnotifyqueue.c : include <string.h> for memset ()
2254 Thu Jun 21 02:43:10 2001 Tim Janik <timj@gtk.org>
2256 * gparamspecs.h: s/long/int/ for default_value in enum and flags
2259 Wed Jun 20 03:59:42 2001 Tim Janik <timj@gtk.org>
2261 * gtype.[hc]: added debugging variants g_type_name_from_class(),
2262 g_type_name_from_instance().
2264 Mon Jun 11 17:07:06 2001 Tim Janik <timj@gtk.org>
2266 * gboxed.[hc]: remove left-over usages of an anonymous GBoxed typedef.
2268 * gobjectnotifyqueue.c: moved property notify queue implementation
2269 bits into this function.
2271 * gparam.[hc]: added g_param_spec_pool_belongings(), completed
2272 g_param_spec_pool_list(). added GParameter for _setv() functions.
2274 * gobject.[hc]: use gobjectnotifyqueue.h implementation now.
2275 got rid of properties_changed signal.
2276 new functions g_object_newv(), g_object_class_list_properties().
2277 removed "properties_changed" signal.
2279 * gtype.[hc]: added g_type_depth() to figure number of parent
2280 types + 1 for a type.
2282 * gsignal.h: add g_signal_connect() (as per owen's request) and
2283 g_signal_connect_swapped().
2285 2001-06-13 Havoc Pennington <hp@redhat.com>
2287 * Makefile.am (progs_LDADD): link to ./libgobject-1.3.la
2288 since an installed libgobject was somehow being found; think
2289 it's a libtool bug, but this workaround should do for now.
2291 2001-06-12 Havoc Pennington <hp@redhat.com>
2293 * Makefile.am (glib-mkenums): don't put $(srcdir)/glib-mkenums in
2294 bin_SCRIPTS, that breaks make install. Instead put 'glib-mkenums'
2295 in bin_SCRIPTS and cp it into builddir
2297 Thu May 31 17:56:47 2001 Owen Taylor <otaylor@redhat.com>
2299 * gobject-query.c: Fix mispelling in help output.
2300 (#53952, Skip Montanaro)
2302 2001-05-28 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
2304 * Makefile.am (EXTRA_DIST): Really distribute glib-mkenums, now
2305 that bin_SCRIPTS doesn't seem to care about doing so anymore.
2307 Mon May 28 06:51:24 2001 Tim Janik <timj@gtk.org>
2309 * gsignal.c (signal_emit_unlocked_R): fixed bad faux-pass, forgot
2310 to release signal lock when restarting emissions.
2312 Sun May 27 04:52:28 2001 Tim Janik <timj@gtk.org>
2314 * gsignal.[hc] (g_signal_stop_emission_by_name): added variant
2315 to stop signal emissions through a detailed_signal string.
2317 * gsignal.c (signal_emit_R) (g_signal_emit_valist): account for
2318 the fact that g_value_* functions may cause signal emissons by
2319 unlocking the global signal system lock around g_value_* functions.
2320 (signal_emit_unlocked_R): renamed this from signal_emit_R() to reflect
2321 that this functions acquires the lock on its own now.
2323 2001-05-24 Hans Breuer <hans@breuer.org>
2325 * makefile.msc.in : changed depndencies to build glib-genmarshal
2326 first and statically linked with glib, which makes it independent
2327 from the installed glib version. Added new object files to build.
2329 * gobject.def : updated
2331 Thu May 24 08:52:02 2001 Owen Taylor <otaylor@redhat.com>
2333 * gobject.[ch] (g_value_set_object): gpointer, not
2336 2001-05-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
2338 * Makefile.am (bin_SCRIPTS): made 'make distcheck' happy.
2340 * gobject.def: Removed g_param_spec_stringc.
2342 Tue May 22 02:46:13 2001 Tim Janik <timj@gtk.org>
2344 * gobject.c (g_value_set_object): make g_value_set_object()
2345 take a gpointer v_object so people don't need to G_OBJECT()
2346 cast NULL pointers (C code convenience).
2348 Mon May 14 01:49:01 2001 Tim Janik <timj@gtk.org>
2350 * gsignal.[hc] (g_signal_handler_is_connected): new function
2351 to check whether a handler is still connected to an instance
2354 Thu May 10 14:00:48 2001 Tim Janik <timj@gtk.org>
2356 * gparamspecs.[hc]: removed g_param_spec_stringc() in lack of
2357 evidence of public need.
2359 * gsignal.h: added g_signal_disconnect_by_func(),
2360 g_signal_block_by_func() and g_signal_unblock_by_func() convenience
2361 macros as per owen's request.
2363 * gtype.c (SIZEOF_FUNDAMENTAL_INFO): align sizeof (GTypeFundamentalInfo)
2364 to size of longs and pointers.
2366 2001-05-05 James Henstridge <james@daa.com.au>
2368 * Makefile.am: glib-mkenums is not a compiled program, so shouldn't
2369 be in the bin_PROGRAMS primary. Put it in bin_SCRIPTS instead, and
2370 removed the glib_mkenums_SOURCES var.
2372 Thu May 3 06:10:23 2001 Owen Taylor <otaylor@redhat.com>
2374 * gobject.c (g_object_set_[q]data_full): Make types of ternary
2375 operator correspond. (Fixes compilation errors with Sun CC,
2378 Mon Apr 30 20:03:56 2001 Tim Janik <timj@gtk.org>
2380 * glib-mkenums (usage): removed \v escaping, newer perl versions don't
2381 support this, and it'S probably useless anyways.
2383 Sat Apr 28 23:39:42 2001 Tim Janik <timj@gtk.org>
2385 * gsignal.[hc]: made signal handler and emission hook ids gulongs.
2386 (signal_handlers_foreach_matched_R): only invoke callback for handlers
2387 that are not disconnected (id>0).
2388 (signal_emit_R): prevent invocation of signal handlers during the
2389 emission they were connected within.
2391 * glib-mkenums: publically installed perl-script to parse C code
2392 enums and generate descriptions thereof.
2393 * glib-mkenums.1: assorted man page.
2395 2001-04-19 Havoc Pennington <hp@redhat.com>
2397 * gobject.c (g_object_get_valist): We were returning junk memory
2398 here, because we didn't copy the value (G_VALUE_NOCOPY_CONTENTS
2399 passed to G_VALUE_LCOPY) and then we freed the GValue immediately
2400 after. Removed G_VALUE_NOCOPY_CONTENTS from here; need a
2401 G_VALUE_STEAL_CONTENTS or the like if we want this optimization.
2403 Wed Apr 18 09:46:56 2001 Owen Taylor <otaylor@redhat.com>
2405 * gobject.c gsignal.c: Change C++ comments for FIXME's to
2406 C comments. (Patch from Andres Salomon)
2408 2001-04-14 Hans Breuer <hans@breuer.org>
2410 * gobject.def : updated
2412 Mon Apr 9 18:56:15 2001 Tim Janik <timj@gtk.org>
2414 * gclosure.c (g_closure_invoke): only require marshal/meta_marshal if
2415 we're valid (about to actually do marshalling).
2417 Tue Apr 3 20:23:24 2001 Tim Janik <timj@gtk.org>
2421 Tue Apr 3 14:06:00 2001 Tim Janik <timj@gtk.org>
2423 * gparam.[hc]: added g_param_spec_pool_list() to list pspecs per
2424 owner_type. the pspecs are not referenced, so the caller is
2425 supposed to have some idea about owner_type not randomly
2426 nuking his pspec's. if this is going to provide problems in
2427 the future, we can either auto-ref the pspecs, or add a
2428 _foreach variant, though the latter would have to invoke
2429 the callback while pspec's mutex is acquired, so i just
2430 went for the _list variant for now.
2432 * gclosure.h (G_CALLBACK): made GCallback a void (*) (void) fucntion.
2434 Sat Mar 31 23:55:58 2001 Tim Janik <timj@gtk.org>
2437 * gparamspecs.[hc]: applied patch from owen to implement
2440 Fri Mar 30 07:34:02 2001 Tim Janik <timj@gtk.org>
2442 * gtype.c (type_iface_retrive_holder_info_Wm):
2443 * gtypeplugin.c (g_type_plugin_complete_interface_info):
2444 * gtypemodule.c (g_type_module_complete_interface_info):
2445 change order of instance_type and interface_type so they match
2446 the g_type_add_interface_*() API.
2448 * gsignal.c (g_signal_emit_valist): always assign C return value
2449 location, people depending on unaltered return values after emissions
2450 that had no handlers to run need to use g_signal_emitv().
2452 * gtype.[hc] (g_type_query): new function to allow querying of
2453 class and object size (semantics like g_signal_query()).
2454 currently the implementation is better held conservative so as to
2455 only support types that are classed and static.
2457 2001-03-29 Tor Lillqvist <tml@iki.fi>
2459 * gobject.def: Updates.
2461 Wed Mar 28 17:04:06 2001 Tim Janik <timj@gtk.org>
2463 * gobject.c (object_queue_property): only queue readable properties
2464 for notification changes.
2466 Thu Mar 22 13:36:50 2001 Tim Janik <timj@gtk.org>
2468 * gsignal.c (g_signal_newv): catch G_SIGNAL_RUN_FIRST with a return value.
2470 2001-03-21 Martin Baulig <baulig@suse.de>
2472 * gboxed.[ch] (g_value_dup_boxed): This takes a `const GValue *'
2475 2001-03-18 Tor Lillqvist <tml@iki.fi>
2477 * gobject.def: Correct some renamed functions.
2479 Sat Mar 17 23:18:36 2001 Tim Janik <timj@gtk.org>
2481 * gobject.c (g_object_get_property): minor bug-fix.
2483 * gbsearcharray.[hc]: provide a macro for static initialization and
2484 functions g_bsearch_array_new() and g_bsearch_array_destroy() for
2485 dynamic allocations.
2487 * gboxed.c: introduce G_TYPE_GSTRING, boxed type for GString.
2489 * gclosure.[hc]: naming corrections.
2491 Fri Mar 9 16:42:08 2001 Tim Janik <timj@gtk.org>
2493 * gvaluetypes.[hc]: moved g_strdup_value_contents() into this file as
2494 a public function (was static in gobject.c before). it's a bit odd
2495 to have that function here, especially since it requires extra includes,
2496 but then it doesn't very well fit somewhere else either.
2498 * gparamspecs.c: added default/max/min checks to param spec creation
2501 2001-03-10 Tor Lillqvist <tml@iki.fi>
2503 * gobject.def: Add a couple of missing entries.
2505 * Makefile.am (libgobject_1_3_la_LIBADD): Use only on Win32.
2507 Fri Mar 9 14:57:17 2001 Tim Janik <timj@gtk.org>
2509 * testgruntime.c: test program. covers run first/last/cleanup signal
2510 handlers, return value accumulator, signal string returns, and
2511 interface types in signal arguments.
2513 * gtype.c (g_type_value_table_peek): for interface types without
2514 value table, try looking up a value table from an instantiatable
2515 prerequisite type (this is safe as an interface may only have
2516 one instantiatable prerequisiste).
2517 (type_check_is_value_type_U): same here.
2519 * gsignal.c (g_signal_newv): assert that return types never have
2520 G_SIGNAL_TYPE_STATIC_SCOPE set.
2521 (g_signal_newc): only create class closure if the class_offset is not
2524 Fri Mar 9 10:14:00 2001 Tim Janik <timj@gtk.org>
2526 * gparamspecs.c (g_param_spec_object): use g_type_is_a() to check
2527 for object_type being a G_TYPE_OBJECT, not G_TYPE_IS_OBJECT(), since
2528 that wouldn't allow interface types.
2530 * gtype.c (g_type_interface_add_prerequisite): arg, fixed small cnp bug
2531 with bad implications and an off-by-one error.
2533 Thu Mar 8 16:34:22 2001 Owen Taylor <otaylor@redhat.com>
2535 * gvaluetransform.c: Include <string.h> for memcpy.
2537 * gvaluetransform.c (DEFINE_SPRINTF): Remove unnecessary
2538 and ANSI-illegal ## token pasting.
2540 Thu Mar 8 18:11:52 2001 Tim Janik <timj@gtk.org>
2542 * gsignal.c: eek, fixed old hook detail storage code.
2544 Thu Mar 8 16:35:48 2001 Tim Janik <timj@gtk.org>
2546 * gparamspecs.[hc]: s/g_param_spec_string_c/g_param_spec_stringc/.
2548 * gsignal.[hc]: fixed accumulator invocation, implemented emission
2549 hooks. and no, neither of these callbacks are called via a closure,
2550 language bindings can wrap the accumulator and emission hook
2551 interface, they already get parameters marshalled into a GValue array.
2552 (g_signal_connect): removed this function as its C specific, doesn't
2553 cover the swapped argument, is too close to its broken original
2554 gtk_signal_connect() and creates demand for _swapped, _after and
2555 _swapped_after variants <brrr>.
2556 (g_signal_connectc): convenience macro to connect a C handler
2557 func with data, like the old g_signal_connect() plus swapped
2561 * gboxed.c: added G_TYPE_VALUE boxed type.
2563 Wed Mar 7 19:02:51 2001 Tim Janik <timj@gtk.org>
2565 * gtype.c (type_node_add_iface_entry_W): catch when adding an interface
2566 to an ancestor of a child that already conforms to this interface.
2567 currently we spew a warning here, should we be silent?
2568 (g_type_interface_add_prerequisite): new function to add a prerequisite
2569 type to an interface, that must succeed an instance is_a prerequisite
2570 type check before the interface can be added to an instance. the
2571 prerequisite types are also suuported in is_a checks of the interface.
2572 (g_type_instance_is_a):
2573 (g_type_check_instance_cast):
2574 (g_type_check_instance): cleanups and optimizations.
2575 (g_type_class_is_a):
2576 (g_type_check_class_cast): same, also prevented these from accepting
2577 interface types, as class structures don't nest interfaces.
2579 2001-03-07 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
2581 * Makefile.am: Avoid rebuilding everything everytime.
2583 Wed Mar 7 09:36:33 2001 Tim Janik <timj@gtk.org>
2585 * gboxed.[hc]: changed prototype of g_boxed_type_register_static()
2586 to contain an optional init function and a hint at whether the
2587 boxed structure uses ref counting internally.
2588 added g_value_set_boxed_take_ownership().
2589 made G_TYPE_BOXED an abstract value type.
2591 * genums.[hc]: made G_TYPE_ENUM and G_TYPE_FLAGS abstract value
2594 * glib-genmarshal.c: argument type changes, preparation for third-party
2597 * gobject.[hc]: cleaned up get/set property code.
2598 added g_strdup_value_contents() to improve warnings.
2600 * gparam.[hc]: added g_param_value_convert(), taking over responsibility
2601 of the old g_value_convert(). added G_PARAM_LAX_VALIDATION flag so
2602 validation alterations may be valid a part of the property setting
2605 * gparamspecs.[hc]: made value comparisons stable (for sort applications).
2606 added GParamSpecValueArray, a param spec for value arrays and
2607 GParamSpecClosure. nuked the value exchange functions and
2608 GParamSpecCCallback.
2610 * gtype.[hc]: catch unintialized usages of the type system with
2611 g_return_val_if_uninitialized(). introduced G_TYPE_FLAG_VALUE_ABSTRACT
2612 to flag types that introduce a value table, but can't be used for
2613 g_value_init(). cleaned up reserved type ids.
2615 * gvalue.[hc]: code cleanups and saner checking.
2616 nuked the value exchange API. implemented value transformations, we
2617 can't really "convert" values, rather transforms are an anylogy to
2618 C casts, real conversions need a param spec for validation, which is
2619 why g_param_value_convert() does real conversions now.
2621 * gvaluearray.[hc]: new files that implement a GValueArray, a struct
2622 that can hold inhomogeneous arrays of value (to that extend that it
2623 also allowes undefined values, i.e. G_VALUE_TYPE(value)==0).
2624 this is exposed to the type system as a boxed type.
2626 * gvaluetransform.c: new file implementing most of the former value
2627 exchange functions as single-sided transformations.
2629 * gvaluetypes.[hc]: nuked G_TYPE_CCALLBACK, added
2630 g_value_set_string_take_ownership().
2632 * *.h: s/G_IS_VALUE_/G_VALUE_HOLDS_/.
2634 * *.[hc]: many fixes and cleanups.
2636 * many warning improvements.
2638 Tue Feb 27 18:35:15 2001 Tim Janik <timj@gtk.org>
2640 * gobject.c (g_object_get_valist): urg, pass G_VALUE_NOCOPY_CONTENTS
2641 into G_VALUE_LCOPY(), this needs proper documenting.
2643 * gparam.c: fixed G_PARAM_USER_MASK.
2645 * gtype.c (type_data_make_W):
2646 (type_data_last_unref_Wm): fixed invalid memory freeing.
2648 * gobject.c (g_object_last_unref): destroy signal handlers associated
2649 with object, right before finalization.
2651 * gsignal.c (g_signal_parse_name): catch destroyed nodes or signals
2652 that don't actually support details.
2654 * gobject.[hc]: got rid of property trailers. nuked GObject
2655 properties "data" and the "signal" variants.
2656 (g_object_connect): new convenience function to do multiple
2657 signal connections at once.
2658 (g_object_disconnect): likewise, for disconnections.
2660 * gparam.[hc] (g_param_spec_pool_lookup): took out trailer support.
2662 * gvalue.[hc]: marked g_value_fits_pointer() and g_value_peek_pointer()
2663 as private (the latter got renamed from g_value_get_as_pointer()).
2665 2001-02-21 Tor Lillqvist <tml@iki.fi>
2667 * *.h: Use G_BEGIN_DECLS and G_END_DECLS.
2669 * Makefile.am: Use libglib-1.3.la from top_builddir. Invoke
2670 libtool with -no-undefined for Win32 and Cygwin.
2672 Wed Feb 21 18:31:46 2001 Jonathan Blandford <jrb@redhat.com>
2674 * gsignal.h (g_signal_connect): Add g_signal_connect define to
2675 make porting from gtk_signal_connect easy.
2677 * gsignal.c (g_signal_emit_valist): Use G_TYPE_FROM_INSTANCE
2678 (instance) instead of node->itype when initting the value.
2680 2001-02-17 Havoc Pennington <hp@pobox.com>
2682 Applied patch from Soeren Sandmann:
2684 * gvaluetypes.c (g_value_get_string): G_CONST_RETURN
2686 * gtype.c (g_type_name): G_CONST_RETURN
2688 * gsignal.c (g_signal_name): G_CONST_RETURN
2690 * gobject-query.c (main): const fix
2692 Sat Feb 17 07:58:46 2001 Tim Janik <timj@gtk.org>
2694 * genums.h (G_TYPE_IS_FLAGS): patch from sven to fixup
2695 G_ENUM_CLASS_TYPE() macro.
2697 Sat Feb 17 04:55:35 2001 Tim Janik <timj@gtk.org>
2699 * gtype.[hc]: changed collect_format, collect_value() and lcopy_format,
2700 lcopy_value() in the GTypeValueTable. the collect functions are now
2701 called only once per value, collect_format/lcopy_format are strings
2702 that enlist all necessary GTypeCValues to be varargs-collected.
2704 * gvalue.h: ranamed STATIC_TAG to G_VALUE_NOCOPY_CONTENTS to indicate that
2705 a value shouldn't copy its contents.
2707 * gvaluecollector.h: changed G_VALUE_COLLECT() and G_VALUE_LCOPY()
2708 macros to carry an additional argument (flags) that can be used
2709 to pass G_VALUE_NOCOPY_CONTENTS along to the collection functions.
2711 * *.c: adapted collect_value() and lcopy_value() functions to the new
2712 prototypes, support G_VALUE_NOCOPY_CONTENTS where apropriate.
2714 * gsignal.[hc]: introduced a G_SIGNAL_TYPE_STATIC_SCOPE flag that can
2715 be passed along (ORed) with the parameter types, indicating that the
2716 emission arguments are to be considered static for the scope of the
2717 emission. should be used with care and only if the caller knows that
2718 a parameter cannot be destroyed/freed from signal handlers connected
2721 Fri Feb 16 07:10:44 2001 Tim Janik <timj@gtk.org>
2725 (g_closure_sink): make closure sinking explicit.
2728 (g_signal_connect_data):
2729 (g_signal_connect_closure):
2730 (g_signal_connect_closure_by_id):
2731 (g_signal_newv): perform explicit closure sinking.
2733 Thu Feb 8 00:31:45 2001 Tim Janik <timj@gtk.org>
2735 * gtype.h: added G_TYPE_DEBUG_NONE for/from Eric Lemings ;)
2737 2001-02-04 Tor Lillqvist <tml@iki.fi>
2739 * gobject.def: Remove glib_debug_objects.
2741 Sun Feb 4 07:30:53 2001 Tim Janik <timj@gtk.org>
2743 * gtype.[hc]: changed g_type_init() to take debugging flags
2744 initially, a combination of G_TYPE_DEBUG_OBJECTS and
2745 G_TYPE_DEBUG_SIGNALS. using the G_TYPE_ prefix is a bit odd
2746 here, but basically g_type_int() serves as initialization
2747 fucntion for all of GType, GObject, GSignal, so what the heck.
2749 * gobject.c: special case debugging code properly.
2750 changed glib_trap_object_ref to g_trap_object_ref.
2752 * gsignal.c: add signal emission debugging abilities, along with
2753 a new trap object g_trap_instance_signals.
2755 2001-02-04 Tor Lillqvist <tml@iki.fi>
2757 * Makefile.am (progs_LDADD): Change order of libs to libgobject
2758 first, then libglib. Needed for cygwin, says jbdoll@kepri.re.kr.
2760 Wed Jan 31 06:19:49 2001 Tim Janik <timj@gtk.org>
2762 * gparam.h: gtk-doc sucks for not dealing with #define inside enums.
2764 * gtype.[hc]: added G_TYPE_FLAG_RESERVED_ID_BIT, a bit in the type
2765 number that's supposed to be left untouched (preserved mainly
2766 for the signal code).
2768 * *.c: added thread safety code, based on an old patch from sebastian.
2769 the remaining thread safety issues are now datalists on pspecs (to be
2770 solved im gdataset.c) and gvalue.c where locking concerns value exchange
2771 functionality only, and that's soon to be revised.
2773 2001-01-27 Tor Lillqvist <tml@iki.fi>
2775 * makefile.msc.in: Don't try to compile gmarshal.c on its own.
2777 2001-01-24 <alexl@redhat.com>
2779 * gclosure.c (g_closure_unref):
2780 Don't leak closure->notifiers.
2782 2001-01-05 Havoc Pennington <hp@redhat.com>
2784 * gparamspecs.c (g_param_spec_enum): set the value_type in the
2785 param spec; closes bug 40210
2786 (g_param_spec_flags): ditto for flags
2788 2001-01-03 Alexander Larsson <alexl@redhat.com>
2791 Move glib_debug_objects out of the G_ENABLE_DEBUG #ifdef.
2793 Thu Dec 28 11:36:44 2000 Tim Janik <timj@gtk.org>
2795 * gbsearcharray.c (upper_power2): disable G_BSEARCH_ALIGN_POWER2
2796 fucntionality if DISABLE_MEM_POOLS is defined.
2798 * gtype.c: honour DISABLE_MEM_POOLS.
2800 * gsignal.c (g_signal_init): flag signal key bsearch array with
2801 G_BSEARCH_ALIGN_POWER2 to avoid excessive growth time. honour
2804 * gparam.h: added G_PARAM_READWRITE alias for (G_PARAM_READABLE |
2807 2000-12-15 Tor Lillqvist <tml@iki.fi>
2809 * gobject.def: Update.
2811 2000-12-15 Havoc Pennington <hp@pobox.com>
2813 * gobject.c (g_object_do_class_init): use g_signal_newc
2815 * gsignal.c (g_signal_newc): convenience function for signals
2817 (g_signal_new_valist): added
2818 (g_signal_new): removed
2820 Fri Dec 15 04:40:23 2000 Tim Janik <timj@gtk.org>
2822 * gparam.[hc]: add an instance member value_type so the default
2823 value of the pspec class can be overridden.
2825 2000-12-14 Tor Lillqvist <tml@iki.fi>
2827 * makefile.mingw.in: Update, include parts from Makefile.am to
2828 build gmarshal.[ch]. Some day, we won't need these separate
2829 makefiles for Win32 compilation. I hope.
2831 * makefile.msc.in: Update. No use trying to build gmarshal.[ch]
2832 here, it would require Unixish tools. MSVC users building from CVS
2833 sources are out of luck.
2835 * gobject.def: Update.
2837 Wed Dec 13 09:31:26 2000 Tim Janik <timj@gtk.org>
2839 * gparamspecs.[hc]: add G_TYPE_PARAM_BOXED implementation.
2841 * gobject.[hc]: minor fixes.
2843 Tue Dec 12 23:38:02 2000 Tim Janik <timj@gtk.org>
2845 * Makefile.am: _never_ touch oldest-source-stamp.
2847 * gobject.[hc]: construct property handling fixes/improvements.
2848 fixed trailer handling in get/set property.
2850 * gparam.[hc]: implement param spec pool, got rid of param spec
2851 hashtable. the most prominent change is that e deal with type
2854 2000-12-12 Elliot Lee <sopwith@redhat.com>
2857 . You have to 'touch oldest-source-stamp' if you want to avoid having
2858 the Makefile constantly rebuild itself.
2859 . Fix marshaller generation rules to work with srcdir != builddir
2860 (there were issues with trying to run "./glib-genmarshal", etc.)
2862 Mon Dec 11 04:44:11 2000 Tim Janik <timj@gtk.org>
2864 * gboxed.c: fixed dealing with collection/lcopy of NULL values.
2866 * gclosure.h: removed insane ramblings, added G_CALLBACK() a casting
2869 * Makefile.am: cleanups, marshaller generation rules.
2871 * gmarshal.[hc]: new files with GRuntime standard marshallers.
2873 * glib-genmarshal.c: fix log domain, support gruntime standard
2874 marshallers, suport G_TYPE_PARAM, come with extern "C" and
2875 #include gmarshal.h.
2877 * glib-genmarshal.1: reflect glib-genmarshal.c updates.
2879 * gobject.[hc]: implement object constructor. rework parameter
2880 changed notification queueing, we support queue freezes now and
2881 don't dispatch from an idle handler anymore.
2882 parameter->property rename hassle.
2883 implemented ::properties_changed and ::notify::* signals for
2884 property change notification (the later supports property names
2885 as details). added signal connection and named data properties.
2886 (g_signal_connect_object): new function to setup while_alive
2888 (g_object_class_install_property): sink properties now, since they
2889 are initially floating.
2890 (g_object_steal_data):
2891 (g_object_set_data_full):
2892 (g_object_set_data):
2893 (g_object_get_data): set/get data by using g_datalist_*() functions
2895 (g_object_queue_param_changed): nuked.
2896 (g_object_freeze_notify): start queueing of property changes (freeze/
2898 (g_object_notify): announce changes of a certain property directly.
2899 (g_object_thaw_notify): process queue of property changes, therefore
2900 emitting GObject::notify::detail with detail being the changed
2902 (G_OBJECT_WARN_INVALID_PROPERTY_ID): saner macro variant of former
2903 G_WARN_INVALID_PARAM_ID().
2905 * gparam.[hc]: param specs are now initially floating and need to be
2906 sunken with g_param_spec_sink(), support G_TYPE_PARAM values.
2907 added G_PARAM_CONSTRUCT and G_PARAM_CONSTRUCT_ONLY parameter flags,
2908 required by GObjectClass.constructor().
2910 * gparamspecs.[hc]: added GParamSpecParam, GParamSpecPointer and
2911 GParamSpecCCallback, param specs for G_TYPE_PARAM, G_TYPE_POINTER
2912 and G_TYPE_CCALLBACK respectively.
2914 * gsignal.[hc]: cleanups.
2915 (signal_id_lookup): after walking the anchestry, try interfaces as well.
2916 (g_signal_new): new function to create signals from varargs type list.
2917 (g_signal_connect_closure): closure connection variant that works from
2919 (g_signal_connect_data): c handler connection variant that works from
2921 (g_signal_emit_valist): emit signal for an instance with paraneters
2922 collected from a va_list.
2923 (g_signal_emit): emit signal, taking parameters from varargs list.
2924 (g_signal_emit_by_name): same as g_signal_emit, working from
2926 (signal_emit_R): return whether return_value needs to be altered.
2928 * gtype.[hc]: set log-domain to GRuntime, i'm slowly getting to all
2929 the points that need to reflect the upcoming rename.
2930 melt g_type_conforms_to() functionality into g_type_is_a(), as that
2931 is what we really want (liskov substitution principle).
2932 assorted changes to other files due to conforms_to->is_a.
2934 * gvalue.[hc]: implemented g_value_set_instance() that sets a value
2935 from an instantiatable type via the value_table's collect_value()
2936 function (based on an idea from James Henstridge <james@daa.com.au>).
2939 * gvaluetypes.[hc]: implement G_TYPE_CCALLBACK and G_TYPE_PARAM.
2941 Wed Nov 29 13:30:05 2000 Tim Janik <timj@gtk.org>
2943 * gsignal.c (handlers_find): fix elliots "logic fix" that dereferences
2944 NULL nodes if C handlers are searched for specific signals.
2946 2000-11-28 Elliot Lee <sopwith@redhat.com>
2948 * gsignal.c: Fix warnings about possible use of uninitialized
2949 variables, and fix logic that would leave 'node' unset in cases
2950 that it might be used in.
2952 * glib-genmarshal.c: Fix warning about printf format.
2954 2000-11-28 Tor Lillqvist <tml@iki.fi>
2956 * gboxed.c: Include <string.h> for memset ().
2958 2000-11-22 Tor Lillqvist <tml@iki.fi>
2960 * gobject.def: Update.
2962 2000-11-20 Havoc Pennington <hp@redhat.com>
2964 * gobject.c (g_object_get_data)
2966 (g_object_set_data_full)
2967 (g_object_steal_data): More convenient data-setting functions
2969 Wed Nov 15 20:58:05 2000 Owen Taylor <otaylor@redhat.com>
2971 * gtypemodule.c (g_type_module_use): If loading the
2972 module fails, don't increment the use count.
2974 Thu Nov 9 01:49:43 2000 Tim Janik <timj@gtk.org>
2976 * gobject.h (G_WARN_INVALID_PARAM_ID): doh,
2977 s/BSE_OBJECT_TYPE_NAME/G_OBJECT_TYPE_NAME/; reported by Maas-Maarten
2978 Zeeman <maas@wanadoo.nl>.
2980 Mon Nov 13 00:48:39 2000 Owen Taylor <otaylor@redhat.com>
2982 * Makefile.am (EXTRA_DIST): Add glib-genmarshal.1
2984 2000-11-11 Tor Lillqvist <tml@iki.fi>
2986 * gtypemodule.c: Include stdlib.h for exit().
2988 * makefile.{mingw,msc}.in (gobject_OBJECTS): Add gtypemodule.
2990 * gobject.def: Add missing functions.
2992 Sun Nov 5 13:21:28 2000 Owen Taylor <otaylor@redhat.com>
2994 * Makefile.am gtypemodule.[ch]: New basic implementation of
2995 GTypePlugin interface as a GObject. Dynamically loaded modules can
2996 register any number of types and interface on the module.
2998 Sun Nov 5 10:25:40 2000 Owen Taylor <otaylor@redhat.com>
3000 * gsignal.c (handlers_find): When appending handlers and
3001 not matching on signal_id, use hlist->signal_id instead of
3002 signal_id. Having the correct signal_id when unreffing
3003 the handlers makes things work a lot better.
3005 2000-11-05 Tor Lillqvist <tml@iki.fi>
3007 * makefile.{mingw,msc}.in (gobject_OBJECTS): Add gtypeplugin.
3009 * gobject.def: Update.
3011 Sun Nov 5 05:22:55 2000 Tim Janik <timj@gtk.org>
3014 fixed a bag full of subtle bugs of immensive screw-up potential in
3015 handlers_find(), luckily no one found out about them yet ;)
3016 fixed signal_handlers_foreach_matched_R() so it operates on an
3017 initial handler list snapshot provided by handlers_find() to work
3018 around general reentrancy problems and to avoid multiple callback()
3019 invocations on the same handlers.
3020 this code is now officially 80% bug free (10% remaining for interface
3021 types, and 10% remaining for destroyed signals ;)
3023 Sat Nov 4 02:01:33 2000 Tim Janik <timj@gtk.org>
3025 * gsignal.c (_g_signals_destroy): valid signal nodes start out at 1.
3027 * gtypeplugin.[hc]: new files holding a GTypePlugin interface
3028 implementation that provides the API required by GType to deal with
3029 dynamically loadable types.
3031 * gtype.[hc]: displace any GTypePlugin business to gtypeplugin.h.
3033 Fri Nov 3 07:35:00 2000 Tim Janik <timj@gtk.org>
3035 * gsignal.[hc]: prefix internal functions with '_'. renamed
3036 g_signal_connect_closure() to g_signal_connect_closure_by_id().
3037 added g_signal_parse_name() to retrive signal_id and detail quark
3038 from a signal name (internal).
3040 Wed Nov 1 03:36:54 2000 Tim Janik <timj@gtk.org>
3042 * gobject.c (g_object_base_class_finalize): destroy all signals that
3043 the finalized obejct type introduced.
3045 * gsignal.c (g_signals_destroy): don't require itype to have
3048 * gobject.c (g_object_do_finalize): make sure all signal handlers
3052 (g_signal_handler_find): only match on non-0 masks.
3053 (g_signal_handlers_block_matched):
3054 (g_signal_handlers_unblock_matched):
3055 (g_signal_handlers_disconnect_matched): new functions to block/unblock
3056 or disconnect handlers in groups.
3058 2000-10-30 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
3060 * gvalue.c (exchange_entries_equal), gparam.c (param_spec_equals):
3061 made both functions return gboolean just for the little extra
3062 standard conformance now that GEqualFunc is introduced.
3064 Mon Oct 30 05:52:45 2000 Tim Janik <timj@gtk.org>
3066 * gsignal.c (g_signal_list_ids): get rid of inline documentation owen
3067 added, the doc system would ignore it anyways (for some reason not
3070 Mon Oct 30 03:00:07 2000 Tim Janik <timj@gtk.org>
3072 * gsignal.[hc] (g_signal_list_ids): renamed owen's g_type_signals(),
3073 added required mutex locks.
3075 Sun Oct 29 02:31:03 2000 Owen Taylor <otaylor@redhat.com>
3077 * gsignal.c (g_type_signals): Fix problem where signals
3078 with "_" in them appeared twice in the result array.
3080 Sun Oct 29 01:58:44 2000 Owen Taylor <otaylor@redhat.com>
3082 * gsignal.h: Add g_type_signals() - a function to list
3083 all signals for a given type.
3085 Sat Oct 28 00:28:09 2000 Tim Janik <timj@gtk.org>
3087 * gclosure.c (g_closure_add_marshal_guards): fixed notifier position
3088 for post_marshal guard which was off at 0.
3090 Fri Oct 27 21:49:31 2000 Tim Janik <timj@gtk.org>
3092 * gobject.[hc]: doh, fix argument order in for
3093 g_cclosure_new_object_swap and g_cclosure_new_object.
3095 2000-10-28 Tor Lillqvist <tml@iki.fi>
3097 * makefile.{mingw,msc}.in: Make glib-genmarshal.exe.
3099 * glib-genmarshal.c: Conditionalise include of unistd.h.
3100 Include <io.h> on Win32.
3102 * gobject.def: Add some missing entry points.
3104 Fri Oct 27 16:33:41 2000 Tim Janik <timj@gtk.org>
3106 * gsignal.[hc]: publically define GSignalInvocationHint structure
3107 that gets passed in to closure invocations. added signal details.
3108 renamed GSignalType to GSignalFlags to comply with conventions.
3109 quite some cleanups and minor fixes. avoid uneccessary handler list
3110 walks upon invocation of after handlers. relookup handler list for
3111 restarted emissions. preliminary abort normal handler invocation if
3112 after handler is encountered.
3114 * glib-genmarshal.c:
3115 * gclosure.[hc]: moved invocation_hint to the end of the
3116 g_closure_invoke() arguments as sugegsted by kenelson.
3117 also made it a gpointer to be more generic. the invocation_hint
3118 is a caller specific thing that can be used to pass additional
3119 data in to closure invocations as documented with the caller
3120 invoking the closure.
3122 Fri Oct 27 05:35:14 2000 Tim Janik <timj@gtk.org>
3124 * gobject.c (g_object_watch_closure): fixed realloc bug, reported
3127 * gsignal.c (g_signal_newv): fixed deadlock scenarion where
3128 g_signal_lookup() would be called with the signal lock being
3129 held. reported by james henstridge.
3131 * gclosure.c (g_closure_set_meta_marshal): fixed memcpy/overwrite bug
3134 2000-10-26 Tor Lillqvist <tml@iki.fi>
3136 * gbsearcharray.c (bsearch_array_insert): Fix gccisms (pointer
3137 arithmetic on void pointer, label without statement following.
3139 * gtype.c (type_node_fundamental_info): Don't apply unary minus to
3140 result of sizeof operator, it can be unsigned. Cast first to
3143 * gobject.def: Add new functions.
3145 * makefile.{mingw,msc}.in: Add new objects.
3147 2000-10-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
3149 * Makefile.am: Remove empty SUBDIRS line _again_, as that _still_
3150 prevents 'make dist' from working.
3152 Wed Oct 25 19:11:03 2000 Owen Taylor <otaylor@redhat.com>
3154 * gbsearcharray.h (g_bsearch_array_get_nth): Don't use implicit
3155 casts from void * since this will get included from C++ too
3158 Thu Oct 26 00:30:27 2000 Tim Janik <timj@gtk.org>
3160 * gvaluetypes.[hc]: added g_value_set_static_string().
3162 * gboxed.[hc]: const corrections. added g_value_set_static_boxed().
3164 Wed Oct 25 20:27:02 2000 Tim Janik <timj@gtk.org>
3166 * gtype.c (g_type_free_instance): for the moment, freeing object
3167 structures will fill their memory portion with 0xAA. there's a
3168 FIXME there, remove this line at a later point.
3170 Tue Oct 24 23:10:26 2000 Tim Janik <timj@gtk.org>
3172 * glib-genmarshal.1:
3173 * glib-genmarshal.c: added publically installed marshaller generator.
3175 * gtype.h: added G_TYPE_INSTANCE_GET_INTERFACE() to retrive a certain
3176 interface VTable from instances.
3178 Mon Oct 23 08:28:15 2000 Tim Janik <timj@gtk.org>
3180 * gobject.[hc]: new functions for closure maintenance:
3181 (g_object_watch_closure): maintain validity of the object and
3182 the closure for objects that are used as data part of a closure.
3183 (g_cclosure_new_object): convenience function to create C closures
3184 that have an object as data argument.
3185 (g_closure_new_object): convenience function to create closures
3186 that have an object as data argument.
3188 * gclosure.[hc]: implementation of GClosure mechanism.
3189 a closure is basically an encapsulation of a callback function
3190 and its environment. ideally, most places supporting callback
3191 functions will simply take a GClosure* pointer and thus unify
3192 callback environments wrg destroy notification etc.
3193 GClosure provides destroy notifiers for arbitrary data pointers,
3194 reference counting, invalidation notification (it can be invalidated
3195 which is merely a deactivate state) and a marshallinbg abstraction.
3196 GCClosure is also provided in these files, they present a specialized
3197 GClosure implementation for C language callbacks.
3199 * genum.c: macro cleanups.
3201 * gboxed.[hc]: new files, for boxed type abstraction.
3202 (g_boxed_copy): copy a boxed structure
3203 (g_boxed_free): free a boxed structure
3204 (g_value_set_boxed):
3205 (g_value_get_boxed): standard GValue functions for boxed types
3206 (g_boxed_type_register_static): convenience function for easy
3207 introduction of new G_TYPE_BOXED derivatives.
3209 * gparam.[hc]: introduced g_param_type_register_static(), a short hand
3210 for creation of new GParamSpec derived types.
3212 * gtype.[hc]: many fixes, introduced ability to flag individual
3213 type nodes as ABSTRACT upon registration, added value_peek_pointer()
3214 to the value table to peek at GValue contents as a pointer for types
3215 that support this. fixed up GValue checks.
3217 * gvalue.[hc]: added g_value_fits_pointer() and g_value_get_as_pointer()
3218 to peek at the value contents as pointer.
3220 * *.[hc]: adaptions to type macro fixes and changes in the type
3223 * many const corrections over the place.
3225 Sat Oct 21 02:49:56 2000 Tim Janik <timj@gtk.org>
3227 * gtype.c (g_type_conforms_to): this function basically behaves like
3228 and is_a check, except that it _additionally_ features interfaces
3229 for instantiatable types. enforce this in the second branch as well
3230 (`type' conforms_to `type') even if `type' is not an interface type.
3232 Fri Oct 20 15:31:04 2000 Tim Janik <timj@gtk.org>
3234 * gvaluetypes.[hc]: added G_TYPE_POINTER implementation from jrb.
3238 * gvaluetypes.c: added GTypeValueTable.value_peek_pointer and
3239 suitable implementations of this for G_TYPE_STRING, G_TYPE_OBJECT
3242 Mon Aug 21 04:13:37 2000 Tim Janik <timj@gtk.org>
3244 * gbsearcharray.[hc]: long standing needed generic implementation
3245 of a binary searchable, sorted and dynamically sized array.
3247 2000-10-15 Raja R Harinath <harinath@cs.umn.edu>
3249 * Makefile.am (BUILT_EXTRA_DIST): New variable.
3250 (dist-hook): Handle $(BUILT_EXTRA_DIST).
3251 (*): Remove traces of @STRIP_{BEGIN,END}@.
3253 2000-09-29 Martin Baulig <baulig@suse.de>
3255 Several minor ANSI C fixes.
3257 Added missing casts:
3258 * gtype.c (type_class_init):
3259 `(gpointer) bnode->data->class.class_init_base'
3260 in call to g_slist_prepend() and
3261 'GBaseInitFunc class_init_base = (GBaseInitFunc) slist->data'.
3263 * gobject.c: Put text following #endif into comments.
3265 2000-09-25 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
3267 * Makefile.am: Remove empty SUBDIRS line, as that prevents make
3270 Sat Sep 9 20:04:13 2000 Owen Taylor <otaylor@redhat.com>
3272 * gobject.c (g_object_last_unref): Move call to
3273 g_type_free_instance() here from g_object_do_finalize,
3274 since g_type_free_instance() can unload the object's
3277 2000-07-27 Tor Lillqvist <tml@iki.fi>
3279 * gobject.c: No, don't mark glib_debug_objects for export here,
3280 it's handled specially in gtktypeutils.c.
3282 * gobject.def: Export g_type_fundamental_last (the function).
3284 2000-07-26 Tor Lillqvist <tml@iki.fi>
3287 * gobject.c: Mark glib_debug_objects for export/import as it is
3290 Sun Jul 23 17:23:35 2000 Tim Janik <timj@gtk.org>
3292 * gtype.[hc]: make g_type_fundamental_last() a function, avoiding all
3293 that extern variable clutter and avoiding further problems with thread
3296 2000-07-19 Tor Lillqvist <tml@iki.fi>
3301 * gtype.c: Shut up Sun's picky compiler.
3303 2000-07-14 Tor Lillqvist <tml@iki.fi>
3305 * gobject.def: Add g_type_get_plugin.
3307 Thu Jul 13 02:07:54 2000 Tim Janik <timj@gtk.org>
3309 * gparam.c (g_param_value_defaults): default initialize the temporary
3310 default value, instead of nuking the caller's value contents.
3312 2000-07-11 Raja R Harinath <harinath@cs.umn.edu>
3314 * gtype.c (g_type_get_plugin): Don't return just 0 or 1.
3316 Tue Jul 11 02:48:13 2000 Tim Janik <timj@gtk.org>
3318 * gtype.[hc]: removed g_type_is_dynamic() and added g_type_get_plugin().
3320 2000-07-10 Tor Lillqvist <tml@iki.fi>
3322 * gobject-query.c: Include ../config.h for HAVE_UNISTD_H. Use it
3323 to guard inclusion of <unistd.h>.
3325 * gtype.h: Fix copy-paste errors in the ifdefs on how to declare a
3326 variable for export. Call the macro GOBJECT_VAR.
3328 * gtype.c: Declare _g_type_fundamental_last for export here, too.
3329 (type_node_any_new): Use only constant expressions for sizeof
3330 operator (for instance MSVC requires this).
3332 * makefile.mingw.in: Define GOBJECT_COMPILATION.
3334 Sun Jul 9 21:21:46 2000 Owen Taylor <otaylor@redhat.com>
3336 * genums.c: Move string.h include into the .c file
3337 instead of where it was in the .h file by mistake.
3339 Thu Jul 6 15:30:27 2000 Owen Taylor <otaylor@redhat.com>
3341 * Makefile.am (EXTRA_DIST): dist fixes.
3343 * gobject.c: Add a global variable glib_debug_objects
3344 (not in header file) to control object tracing.
3346 2000-07-01 Tor Lillqvist <tml@iki.fi>
3348 * gobject.def: Update added and renamed entry points.
3350 * makefile.mingw.in: Add gvaluetypes.o.
3352 Thu Jun 29 16:02:07 2000 Owen Taylor <otaylor@redhat.com>
3354 * gobject.c:include string.h for memset
3355 * genums.h: include string.h for strcpy
3356 * gvalue.c: include string.h for memset, memcpy.
3358 Sat Jun 24 23:03:04 2000 Tim Janik <timj@gtk.org>
3360 * gtype.[hc]: provide G_TYPE_CHAR, G_TYPE_UCHAR, G_TYPE_BOOLEAN,
3361 G_TYPE_INT, G_TYPE_UINT, G_TYPE_LONG, G_TYPE_ULONG, G_TYPE_FLOAT,
3362 G_TYPE_DOUBLE and G_TYPE_STRING fundamental types.
3363 added a GTypeValueTable* pointer to GTypeInfo structure for types
3364 to implement GValue handling functions.
3365 GTypeValueTable contains the following members:
3366 value_init(): initialize a GValue structure.
3367 value_free(): free GValue structure contents (optional).
3368 value_copy(): copy one GValue contents to another GValue structure of
3369 collect_type: varargs collection type for the first variable argument
3370 to be collected by collect_value().
3371 collect_value(): variable arguments collection function (optional).
3372 lcopy_type: varargs collection type for the first variable argument
3373 to be location copyied by lcopy_value().
3374 lcopy_value(): variable arguments location copy function (optional).
3375 g_type_value_table_peek(): new function to retrive the GTypeValueTable*
3376 for a type node. ValueTables get inherited from parent types, unless
3377 overridden through the GTypeInfo structure. internally, GTypeValueTable
3378 support means an added overhead of one pointer per static or used
3380 g_type_add_class_cache_func(): provide a cache_func/data pair to be
3381 called prior to a type nodes last_unref() function, this can be used
3382 to prevent premature class destruction. multiple installed cache_func()
3383 will be chained upon last_unref() untill one of them returns TRUE.
3384 the cache_func()s have to check the class id passed in to figure whether
3385 they actually want to cache the class of this type (since all classes
3386 are routed through the cache_func() chain).
3387 g_type_remove_class_cache_func(): remove a previously installed
3388 cache_func/data pair. the cache maintained by this function has to be
3389 clear when calling g_type_remove_class_cache_func() to avoid leaks.
3390 g_type_class_unref_uncached(): class unref function for cache_func()
3391 implementations, unreferences a class omitting the cache chain (and
3392 therefore unref->cache->unref->... loops).
3394 * gvaluetypes.[hc]: provide the value setters/getters for the primitive
3395 fundamental types boolean, char, uchar, int, uint, long, ulong, float,
3398 * gvalue.[hc]: provide G_TYPE_IS_VALUE() in terms of whether a
3399 GTypeValueTable is provided for this type.
3400 removed g_value_init_default(), g_value_validate(), g_value_defaults(),
3401 g_value_set_default() and g_values_cmp() as these are supplied by the
3403 moved g_values_exchange() into the "implementation details" section,
3404 since it just provides the underlying functionality for
3407 * gvaluecollector.h: renamed the varargs value container from
3408 GParamCValue to GTypeCValue as the value collection methods are
3409 supplied by the type system now.
3410 G_PARAM_COLLECT_VALUE() and G_PARAM_LCOPY_VALUE() got renamed to
3411 G_VALUE_COLLECT() and G_VALUE_LCOPY() and operate without a
3412 GParamSpec structure now.
3414 * genums.h: macros cleanups/fixes.
3416 * genum.c: provide G_TYPE_ENUM and G_TYPE_FLAGS type
3417 and assorted g_value_{s|g}et_{enum|flags}() implementations.
3420 provide G_IS_VALUE_OBJECT(), G_TYPE_OBJECT ValueTable methods
3421 and g_value_{s|g}et_object().
3423 * gparam.[hc]: reduced class to value_set_default(),
3424 value_validate() and values_cmp(). also parameters now need to fill
3425 in a GType value_type; field to indicate the GValue type they
3426 are handling. provide g_param_value_set_default(),
3427 g_param_value_defaults(), g_param_value_validate() and
3428 g_param_values_cmp().
3430 * gparamspecs.[hc]: got rid of the g_value_* functions and
3431 the G_IS_VALUE_* macros. adapted param spec implementations
3432 according to the GParamSpecClass changes.
3434 Sat Jun 10 08:38:27 2000 Tim Janik <timj@gtk.org>
3436 * gtype.c (type_class_init): fetch the nth iface entry of the
3437 type node in the nth loop iteration, not alwys the first.
3438 bug discovered by Walt Pohl <cher@suitware.com>.
3439 (type_data_finalize_class_ifaces): same here, cut and paste
3442 Wed Jun 7 09:21:05 2000 Owen Taylor <otaylor@redhat.com>
3444 * Makefile.am (INCLUDES): Add top_builddir so glibconfig.h
3445 is found properly when build srcdir != builddir. (Patch from
3448 2000-05-13 Tor Lillqvist <tml@iki.fi>
3452 * gobject.rc.in: New files, for Win32 (mingw) build.
3454 * Makefile.am: Add to EXTRA_DIST. Add rules to produce the
3455 corresponding non-*.in files.
3457 * gtype.h: (Win32:) Mark _g_type_fundamental_last for
3458 export/import from DLL.
3460 Fri May 5 01:15:48 2000 Tim Janik <timj@gtk.org>
3462 * gtype.h: add reserved fundamental ids for gtk types (for transition
3463 time). added G_TYPE_FUNDAMENTAL_MAX for gtk.
3465 Mon Apr 17 20:45:50 2000 Tim Janik <timj@gtk.org>
3467 * glib-gobject.c (g_object_base_class_finalize): oops, don't unset
3468 n_params prior to destructing them.
3470 Tue Apr 11 04:28:10 2000 Tim Janik <timj@gtk.org>
3472 * fixed a couple of bugs in the initial parameter/object
3473 implementations, after getting beast running on GObject and GValue.
3475 Fri Apr 7 04:27:49 2000 Tim Janik <timj@gtk.org>
3477 * glib-gobject.[hc]: completed parameter set/get implementations,
3478 along with asyncronous parameter changed notification queue.
3480 Sun Apr 2 04:54:36 2000 Tim Janik <timj@gtk.org>
3482 * glib-gobject.[hc]: GObject implementation, that is facilities
3483 for setting/getting quarked data and reference counting.
3485 * glib-gparamspecs.[hc]: first actuall parameter implementations
3486 for GLib, so far we have: char, uchar, bool, int, uint, long,
3487 ulong, enum, flags, float, double, string and object. each of these
3488 GParamSpecs is a new instantiatable type in its own respect,
3489 so the .c file derives 13 new types from G_TYPE_PARAM and
3490 defines over 50 (*2) conversion facilities.
3492 * glib-gvaluecollector.h: generic varargs handling stubs for
3493 GParamSpecs, private header file (does get installed for
3494 inclusion into user code though).
3496 * glib-gvalue.[hc]: GValue functionality implementation.
3498 * glib-gparam.[hc]: basis GParamSpec implementation for
3499 the virtual base type G_TYPE_PARAM.
3501 * glib-genums.[hc]: enum/flags type implementation, based on
3504 * glib-gtype.[hc]: GLib Type System implementation, heavily
3505 based on BSE's dynamic type system.