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