1 2001-03-07 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
3 * Makefile.am: Avoid rebuilding everything everytime.
5 Mon Mar 5 15:26:30 2001 Jonathan Blandford <jrb@redhat.com>
7 * gparamspecs.c (g_param_spec_interface): add a new param spec to
10 Wed Feb 21 18:31:46 2001 Jonathan Blandford <jrb@redhat.com>
12 * gsignal.h (g_signal_connect): Add g_signal_connect define to
13 make porting from gtk_signal_connect easy.
15 * gsignal.c (g_signal_emit_valist): Use G_TYPE_FROM_INSTANCE
16 (instance) instead of node->itype when initting the value.
18 2001-02-17 Havoc Pennington <hp@pobox.com>
20 Applied patch from Soeren Sandmann:
22 * gvaluetypes.c (g_value_get_string): G_CONST_RETURN
24 * gtype.c (g_type_name): G_CONST_RETURN
26 * gsignal.c (g_signal_name): G_CONST_RETURN
28 * gobject-query.c (main): const fix
30 Sat Feb 17 07:58:46 2001 Tim Janik <timj@gtk.org>
32 * genums.h (G_TYPE_IS_FLAGS): patch from sven to fixup
33 G_ENUM_CLASS_TYPE() macro.
35 Sat Feb 17 04:55:35 2001 Tim Janik <timj@gtk.org>
37 * gtype.[hc]: changed collect_format, collect_value() and lcopy_format,
38 lcopy_value() in the GTypeValueTable. the collect functions are now
39 called only once per value, collect_format/lcopy_format are strings
40 that enlist all necessary GTypeCValues to be varargs-collected.
42 * gvalue.h: ranamed STATIC_TAG to G_VALUE_NOCOPY_CONTENTS to indicate that
43 a value shouldn't copy its contents.
45 * gvaluecollector.h: changed G_VALUE_COLLECT() and G_VALUE_LCOPY()
46 macros to carry an additional argument (flags) that can be used
47 to pass G_VALUE_NOCOPY_CONTENTS along to the collection functions.
49 * *.c: adapted collect_value() and lcopy_value() functions to the new
50 prototypes, support G_VALUE_NOCOPY_CONTENTS where apropriate.
52 * gsignal.[hc]: introduced a G_SIGNAL_TYPE_STATIC_SCOPE flag that can
53 be passed along (ORed) with the parameter types, indicating that the
54 emission arguments are to be considered static for the scope of the
55 emission. should be used with care and only if the caller knows that
56 a parameter cannot be destroyed/freed from signal handlers connected
59 Fri Feb 16 07:10:44 2001 Tim Janik <timj@gtk.org>
63 (g_closure_sink): make closure sinking explicit.
66 (g_signal_connect_data):
67 (g_signal_connect_closure):
68 (g_signal_connect_closure_by_id):
69 (g_signal_newv): perform explicit closure sinking.
71 Thu Feb 8 00:31:45 2001 Tim Janik <timj@gtk.org>
73 * gtype.h: added G_TYPE_DEBUG_NONE for/from Eric Lemings ;)
75 2001-02-04 Tor Lillqvist <tml@iki.fi>
77 * gobject.def: Remove glib_debug_objects.
79 Sun Feb 4 07:30:53 2001 Tim Janik <timj@gtk.org>
81 * gtype.[hc]: changed g_type_init() to take debugging flags
82 initially, a combination of G_TYPE_DEBUG_OBJECTS and
83 G_TYPE_DEBUG_SIGNALS. using the G_TYPE_ prefix is a bit odd
84 here, but basically g_type_int() serves as initialization
85 fucntion for all of GType, GObject, GSignal, so what the heck.
87 * gobject.c: special case debugging code properly.
88 changed glib_trap_object_ref to g_trap_object_ref.
90 * gsignal.c: add signal emission debugging abilities, along with
91 a new trap object g_trap_instance_signals.
93 2001-02-04 Tor Lillqvist <tml@iki.fi>
95 * Makefile.am (progs_LDADD): Change order of libs to libgobject
96 first, then libglib. Needed for cygwin, says jbdoll@kepri.re.kr.
98 Wed Jan 31 06:19:49 2001 Tim Janik <timj@gtk.org>
100 * gparam.h: gtk-doc sucks for not dealing with #define inside enums.
102 * gtype.[hc]: added G_TYPE_FLAG_RESERVED_ID_BIT, a bit in the type
103 number that's supposed to be left untouched (preserved mainly
104 for the signal code).
106 * *.c: added thread safety code, based on an old patch from sebastian.
107 the remaining thread safety issues are now datalists on pspecs (to be
108 solved im gdataset.c) and gvalue.c where locking concerns value exchange
109 functionality only, and that's soon to be revised.
111 2001-01-27 Tor Lillqvist <tml@iki.fi>
113 * makefile.msc.in: Don't try to compile gmarshal.c on its own.
115 2001-01-24 <alexl@redhat.com>
117 * gclosure.c (g_closure_unref):
118 Don't leak closure->notifiers.
120 2001-01-05 Havoc Pennington <hp@redhat.com>
122 * gparamspecs.c (g_param_spec_enum): set the value_type in the
123 param spec; closes bug 40210
124 (g_param_spec_flags): ditto for flags
126 2001-01-03 Alexander Larsson <alexl@redhat.com>
129 Move glib_debug_objects out of the G_ENABLE_DEBUG #ifdef.
131 Thu Dec 28 11:36:44 2000 Tim Janik <timj@gtk.org>
133 * gbsearcharray.c (upper_power2): disable G_BSEARCH_ALIGN_POWER2
134 fucntionality if DISABLE_MEM_POOLS is defined.
136 * gtype.c: honour DISABLE_MEM_POOLS.
138 * gsignal.c (g_signal_init): flag signal key bsearch array with
139 G_BSEARCH_ALIGN_POWER2 to avoid excessive growth time. honour
142 * gparam.h: added G_PARAM_READWRITE alias for (G_PARAM_READABLE |
145 2000-12-15 Tor Lillqvist <tml@iki.fi>
147 * gobject.def: Update.
149 2000-12-15 Havoc Pennington <hp@pobox.com>
151 * gobject.c (g_object_do_class_init): use g_signal_newc
153 * gsignal.c (g_signal_newc): convenience function for signals
155 (g_signal_new_valist): added
156 (g_signal_new): removed
158 Fri Dec 15 04:40:23 2000 Tim Janik <timj@gtk.org>
160 * gparam.[hc]: add an instance member value_type so the default
161 value of the pspec class can be overridden.
163 2000-12-14 Tor Lillqvist <tml@iki.fi>
165 * makefile.mingw.in: Update, include parts from Makefile.am to
166 build gmarshal.[ch]. Some day, we won't need these separate
167 makefiles for Win32 compilation. I hope.
169 * makefile.msc.in: Update. No use trying to build gmarshal.[ch]
170 here, it would require Unixish tools. MSVC users building from CVS
171 sources are out of luck.
173 * gobject.def: Update.
175 Wed Dec 13 09:31:26 2000 Tim Janik <timj@gtk.org>
177 * gparamspecs.[hc]: add G_TYPE_PARAM_BOXED implementation.
179 * gobject.[hc]: minor fixes.
181 Tue Dec 12 23:38:02 2000 Tim Janik <timj@gtk.org>
183 * Makefile.am: _never_ touch oldest-source-stamp.
185 * gobject.[hc]: construct property handling fixes/improvements.
186 fixed trailer handling in get/set property.
188 * gparam.[hc]: implement param spec pool, got rid of param spec
189 hashtable. the most prominent change is that e deal with type
192 2000-12-12 Elliot Lee <sopwith@redhat.com>
195 . You have to 'touch oldest-source-stamp' if you want to avoid having
196 the Makefile constantly rebuild itself.
197 . Fix marshaller generation rules to work with srcdir != builddir
198 (there were issues with trying to run "./glib-genmarshal", etc.)
200 Mon Dec 11 04:44:11 2000 Tim Janik <timj@gtk.org>
202 * gboxed.c: fixed dealing with collection/lcopy of NULL values.
204 * gclosure.h: removed insane ramblings, added G_CALLBACK() a casting
207 * Makefile.am: cleanups, marshaller generation rules.
209 * gmarshal.[hc]: new files with GRuntime standard marshallers.
211 * glib-genmarshal.c: fix log domain, support gruntime standard
212 marshallers, suport G_TYPE_PARAM, come with extern "C" and
215 * glib-genmarshal.1: reflect glib-genmarshal.c updates.
217 * gobject.[hc]: implement object constructor. rework parameter
218 changed notification queueing, we support queue freezes now and
219 don't dispatch from an idle handler anymore.
220 parameter->property rename hassle.
221 implemented ::properties_changed and ::notify::* signals for
222 property change notification (the later supports property names
223 as details). added signal connection and named data properties.
224 (g_signal_connect_object): new function to setup while_alive
226 (g_object_class_install_property): sink properties now, since they
227 are initially floating.
228 (g_object_steal_data):
229 (g_object_set_data_full):
231 (g_object_get_data): set/get data by using g_datalist_*() functions
233 (g_object_queue_param_changed): nuked.
234 (g_object_freeze_notify): start queueing of property changes (freeze/
236 (g_object_notify): announce changes of a certain property directly.
237 (g_object_thaw_notify): process queue of property changes, therefore
238 emitting GObject::notify::detail with detail being the changed
240 (G_OBJECT_WARN_INVALID_PROPERTY_ID): saner macro variant of former
241 G_WARN_INVALID_PARAM_ID().
243 * gparam.[hc]: param specs are now initially floating and need to be
244 sunken with g_param_spec_sink(), support G_TYPE_PARAM values.
245 added G_PARAM_CONSTRUCT and G_PARAM_CONSTRUCT_ONLY parameter flags,
246 required by GObjectClass.constructor().
248 * gparamspecs.[hc]: added GParamSpecParam, GParamSpecPointer and
249 GParamSpecCCallback, param specs for G_TYPE_PARAM, G_TYPE_POINTER
250 and G_TYPE_CCALLBACK respectively.
252 * gsignal.[hc]: cleanups.
253 (signal_id_lookup): after walking the anchestry, try interfaces as well.
254 (g_signal_new): new function to create signals from varargs type list.
255 (g_signal_connect_closure): closure connection variant that works from
257 (g_signal_connect_data): c handler connection variant that works from
259 (g_signal_emit_valist): emit signal for an instance with paraneters
260 collected from a va_list.
261 (g_signal_emit): emit signal, taking parameters from varargs list.
262 (g_signal_emit_by_name): same as g_signal_emit, working from
264 (signal_emit_R): return whether return_value needs to be altered.
266 * gtype.[hc]: set log-domain to GRuntime, i'm slowly getting to all
267 the points that need to reflect the upcoming rename.
268 melt g_type_conforms_to() functionality into g_type_is_a(), as that
269 is what we really want (liskov substitution principle).
270 assorted changes to other files due to conforms_to->is_a.
272 * gvalue.[hc]: implemented g_value_set_instance() that sets a value
273 from an instantiatable type via the value_table's collect_value()
274 function (based on an idea from James Henstridge <james@daa.com.au>).
277 * gvaluetypes.[hc]: implement G_TYPE_CCALLBACK and G_TYPE_PARAM.
279 Wed Nov 29 13:30:05 2000 Tim Janik <timj@gtk.org>
281 * gsignal.c (handlers_find): fix elliots "logic fix" that dereferences
282 NULL nodes if C handlers are searched for specific signals.
284 2000-11-28 Elliot Lee <sopwith@redhat.com>
286 * gsignal.c: Fix warnings about possible use of uninitialized
287 variables, and fix logic that would leave 'node' unset in cases
288 that it might be used in.
290 * glib-genmarshal.c: Fix warning about printf format.
292 2000-11-28 Tor Lillqvist <tml@iki.fi>
294 * gboxed.c: Include <string.h> for memset ().
296 2000-11-22 Tor Lillqvist <tml@iki.fi>
298 * gobject.def: Update.
300 2000-11-20 Havoc Pennington <hp@redhat.com>
302 * gobject.c (g_object_get_data)
304 (g_object_set_data_full)
305 (g_object_steal_data): More convenient data-setting functions
307 Wed Nov 15 20:58:05 2000 Owen Taylor <otaylor@redhat.com>
309 * gtypemodule.c (g_type_module_use): If loading the
310 module fails, don't increment the use count.
312 Thu Nov 9 01:49:43 2000 Tim Janik <timj@gtk.org>
314 * gobject.h (G_WARN_INVALID_PARAM_ID): doh,
315 s/BSE_OBJECT_TYPE_NAME/G_OBJECT_TYPE_NAME/; reported by Maas-Maarten
316 Zeeman <maas@wanadoo.nl>.
318 Mon Nov 13 00:48:39 2000 Owen Taylor <otaylor@redhat.com>
320 * Makefile.am (EXTRA_DIST): Add glib-genmarshal.1
322 2000-11-11 Tor Lillqvist <tml@iki.fi>
324 * gtypemodule.c: Include stdlib.h for exit().
326 * makefile.{mingw,msc}.in (gobject_OBJECTS): Add gtypemodule.
328 * gobject.def: Add missing functions.
330 Sun Nov 5 13:21:28 2000 Owen Taylor <otaylor@redhat.com>
332 * Makefile.am gtypemodule.[ch]: New basic implementation of
333 GTypePlugin interface as a GObject. Dynamically loaded modules can
334 register any number of types and interface on the module.
336 Sun Nov 5 10:25:40 2000 Owen Taylor <otaylor@redhat.com>
338 * gsignal.c (handlers_find): When appending handlers and
339 not matching on signal_id, use hlist->signal_id instead of
340 signal_id. Having the correct signal_id when unreffing
341 the handlers makes things work a lot better.
343 2000-11-05 Tor Lillqvist <tml@iki.fi>
345 * makefile.{mingw,msc}.in (gobject_OBJECTS): Add gtypeplugin.
347 * gobject.def: Update.
349 Sun Nov 5 05:22:55 2000 Tim Janik <timj@gtk.org>
352 fixed a bag full of subtle bugs of immensive screw-up potential in
353 handlers_find(), luckily no one found out about them yet ;)
354 fixed signal_handlers_foreach_matched_R() so it operates on an
355 initial handler list snapshot provided by handlers_find() to work
356 around general reentrancy problems and to avoid multiple callback()
357 invocations on the same handlers.
358 this code is now officially 80% bug free (10% remaining for interface
359 types, and 10% remaining for destroyed signals ;)
361 Sat Nov 4 02:01:33 2000 Tim Janik <timj@gtk.org>
363 * gsignal.c (_g_signals_destroy): valid signal nodes start out at 1.
365 * gtypeplugin.[hc]: new files holding a GTypePlugin interface
366 implementation that provides the API required by GType to deal with
367 dynamically loadable types.
369 * gtype.[hc]: displace any GTypePlugin business to gtypeplugin.h.
371 Fri Nov 3 07:35:00 2000 Tim Janik <timj@gtk.org>
373 * gsignal.[hc]: prefix internal functions with '_'. renamed
374 g_signal_connect_closure() to g_signal_connect_closure_by_id().
375 added g_signal_parse_name() to retrive signal_id and detail quark
376 from a signal name (internal).
378 Wed Nov 1 03:36:54 2000 Tim Janik <timj@gtk.org>
380 * gobject.c (g_object_base_class_finalize): destroy all signals that
381 the finalized obejct type introduced.
383 * gsignal.c (g_signals_destroy): don't require itype to have
386 * gobject.c (g_object_do_finalize): make sure all signal handlers
390 (g_signal_handler_find): only match on non-0 masks.
391 (g_signal_handlers_block_matched):
392 (g_signal_handlers_unblock_matched):
393 (g_signal_handlers_disconnect_matched): new functions to block/unblock
394 or disconnect handlers in groups.
396 2000-10-30 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
398 * gvalue.c (exchange_entries_equal), gparam.c (param_spec_equals):
399 made both functions return gboolean just for the little extra
400 standard conformance now that GEqualFunc is introduced.
402 Mon Oct 30 05:52:45 2000 Tim Janik <timj@gtk.org>
404 * gsignal.c (g_signal_list_ids): get rid of inline documentation owen
405 added, the doc system would ignore it anyways (for some reason not
408 Mon Oct 30 03:00:07 2000 Tim Janik <timj@gtk.org>
410 * gsignal.[hc] (g_signal_list_ids): renamed owen's g_type_signals(),
411 added required mutex locks.
413 Sun Oct 29 02:31:03 2000 Owen Taylor <otaylor@redhat.com>
415 * gsignal.c (g_type_signals): Fix problem where signals
416 with "_" in them appeared twice in the result array.
418 Sun Oct 29 01:58:44 2000 Owen Taylor <otaylor@redhat.com>
420 * gsignal.h: Add g_type_signals() - a function to list
421 all signals for a given type.
423 Sat Oct 28 00:28:09 2000 Tim Janik <timj@gtk.org>
425 * gclosure.c (g_closure_add_marshal_guards): fixed notifier position
426 for post_marshal guard which was off at 0.
428 Fri Oct 27 21:49:31 2000 Tim Janik <timj@gtk.org>
430 * gobject.[hc]: doh, fix argument order in for
431 g_cclosure_new_object_swap and g_cclosure_new_object.
433 2000-10-28 Tor Lillqvist <tml@iki.fi>
435 * makefile.{mingw,msc}.in: Make glib-genmarshal.exe.
437 * glib-genmarshal.c: Conditionalise include of unistd.h.
438 Include <io.h> on Win32.
440 * gobject.def: Add some missing entry points.
442 Fri Oct 27 16:33:41 2000 Tim Janik <timj@gtk.org>
444 * gsignal.[hc]: publically define GSignalInvocationHint structure
445 that gets passed in to closure invocations. added signal details.
446 renamed GSignalType to GSignalFlags to comply with conventions.
447 quite some cleanups and minor fixes. avoid uneccessary handler list
448 walks upon invokation of after handlers. relookup handler list for
449 restarted emissions. preliminary abort normal handler invokation if
450 after handler is encountered.
453 * gclosure.[hc]: moved invocation_hint to the end of the
454 g_closure_invoke() arguments as sugegsted by kenelson.
455 also made it a gpointer to be more generic. the invocation_hint
456 is a caller specific thing that can be used to pass additional
457 data in to closure invocations as documented with the caller
458 invoking the closure.
460 Fri Oct 27 05:35:14 2000 Tim Janik <timj@gtk.org>
462 * gobject.c (g_object_watch_closure): fixed realloc bug, reported
465 * gsignal.c (g_signal_newv): fixed deadlock scenarion where
466 g_signal_lookup() would be called with the signal lock being
467 held. reported by james henstridge.
469 * gclosure.c (g_closure_set_meta_marshal): fixed memcpy/overwrite bug
472 2000-10-26 Tor Lillqvist <tml@iki.fi>
474 * gbsearcharray.c (bsearch_array_insert): Fix gccisms (pointer
475 arithmetic on void pointer, label without statement following.
477 * gtype.c (type_node_fundamental_info): Don't apply unary minus to
478 result of sizeof operator, it can be unsigned. Cast first to
481 * gobject.def: Add new functions.
483 * makefile.{mingw,msc}.in: Add new objects.
485 2000-10-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
487 * Makefile.am: Remove empty SUBDIRS line _again_, as that _still_
488 prevents 'make dist' from working.
490 Wed Oct 25 19:11:03 2000 Owen Taylor <otaylor@redhat.com>
492 * gbsearcharray.h (g_bsearch_array_get_nth): Don't use implicit
493 casts from void * since this will get included from C++ too
496 Thu Oct 26 00:30:27 2000 Tim Janik <timj@gtk.org>
498 * gvaluetypes.[hc]: added g_value_set_static_string().
500 * gboxed.[hc]: const corrections. added g_value_set_static_boxed().
502 Wed Oct 25 20:27:02 2000 Tim Janik <timj@gtk.org>
504 * gtype.c (g_type_free_instance): for the moment, freeing object
505 structures will fill their memory portion with 0xAA. there's a
506 FIXME there, remove this line at a later point.
508 Tue Oct 24 23:10:26 2000 Tim Janik <timj@gtk.org>
511 * glib-genmarshal.c: added publically installed marshaller generator.
513 * gtype.h: added G_TYPE_INSTANCE_GET_INTERFACE() to retrive a certain
514 interface VTable from instances.
516 Mon Oct 23 08:28:15 2000 Tim Janik <timj@gtk.org>
518 * gobject.[hc]: new functions for closure maintenance:
519 (g_object_watch_closure): maintain validity of the object and
520 the closure for objects that are used as data part of a closure.
521 (g_cclosure_new_object): convenience function to create C closures
522 that have an object as data argument.
523 (g_closure_new_object): convenience function to create closures
524 that have an object as data argument.
526 * gclosure.[hc]: implementation of GClosure mechanism.
527 a closure is basically an encapsulation of a callback function
528 and its environment. ideally, most places supporting callback
529 functions will simply take a GClosure* pointer and thus unify
530 callback environments wrg destroy notification etc.
531 GClosure provides destroy notifiers for arbitrary data pointers,
532 reference counting, invalidation notification (it can be invalidated
533 which is merely a deactivate state) and a marshallinbg abstraction.
534 GCClosure is also provided in these files, they present a specialized
535 GClosure implementation for C language callbacks.
537 * genum.c: macro cleanups.
539 * gboxed.[hc]: new files, for boxed type abstraction.
540 (g_boxed_copy): copy a boxed structure
541 (g_boxed_free): free a boxed structure
543 (g_value_get_boxed): standard GValue functions for boxed types
544 (g_boxed_type_register_static): convenience function for easy
545 introduction of new G_TYPE_BOXED derivatives.
547 * gparam.[hc]: introduced g_param_type_register_static(), a short hand
548 for creation of new GParamSpec derived types.
550 * gtype.[hc]: many fixes, introduced ability to flag individual
551 type nodes as ABSTRACT upon registration, added value_peek_pointer()
552 to the value table to peek at GValue contents as a pointer for types
553 that support this. fixed up GValue checks.
555 * gvalue.[hc]: added g_value_fits_pointer() and g_value_get_as_pointer()
556 to peek at the value contents as pointer.
558 * *.[hc]: adaptions to type macro fixes and changes in the type
561 * many const corrections over the place.
563 Sat Oct 21 02:49:56 2000 Tim Janik <timj@gtk.org>
565 * gtype.c (g_type_conforms_to): this function basically behaves like
566 and is_a check, except that it _additionally_ features interfaces
567 for instantiatable types. enforce this in the second branch as well
568 (`type' conforms_to `type') even if `type' is not an interface type.
570 Fri Oct 20 15:31:04 2000 Tim Janik <timj@gtk.org>
572 * gvaluetypes.[hc]: added G_TYPE_POINTER implementation from jrb.
576 * gvaluetypes.c: added GTypeValueTable.value_peek_pointer and
577 suitable implementations of this for G_TYPE_STRING, G_TYPE_OBJECT
580 Mon Aug 21 04:13:37 2000 Tim Janik <timj@gtk.org>
582 * gbsearcharray.[hc]: long standing needed generic implementation
583 of a binary searchable, sorted and dynamically sized array.
585 2000-10-15 Raja R Harinath <harinath@cs.umn.edu>
587 * Makefile.am (BUILT_EXTRA_DIST): New variable.
588 (dist-hook): Handle $(BUILT_EXTRA_DIST).
589 (*): Remove traces of @STRIP_{BEGIN,END}@.
591 2000-09-29 Martin Baulig <baulig@suse.de>
593 Several minor ANSI C fixes.
596 * gtype.c (type_class_init):
597 `(gpointer) bnode->data->class.class_init_base'
598 in call to g_slist_prepend() and
599 'GBaseInitFunc class_init_base = (GBaseInitFunc) slist->data'.
601 * gobject.c: Put text following #endif into comments.
603 2000-09-25 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
605 * Makefile.am: Remove empty SUBDIRS line, as that prevents make
608 Sat Sep 9 20:04:13 2000 Owen Taylor <otaylor@redhat.com>
610 * gobject.c (g_object_last_unref): Move call to
611 g_type_free_instance() here from g_object_do_finalize,
612 since g_type_free_instance() can unload the object's
615 2000-07-27 Tor Lillqvist <tml@iki.fi>
617 * gobject.c: No, don't mark glib_debug_objects for export here,
618 it's handled specially in gtktypeutils.c.
620 * gobject.def: Export g_type_fundamental_last (the function).
622 2000-07-26 Tor Lillqvist <tml@iki.fi>
625 * gobject.c: Mark glib_debug_objects for export/import as it is
628 Sun Jul 23 17:23:35 2000 Tim Janik <timj@gtk.org>
630 * gtype.[hc]: make g_type_fundamental_last() a function, avoiding all
631 that extern variable clutter and avoiding further problems with thread
634 2000-07-19 Tor Lillqvist <tml@iki.fi>
639 * gtype.c: Shut up Sun's picky compiler.
641 2000-07-14 Tor Lillqvist <tml@iki.fi>
643 * gobject.def: Add g_type_get_plugin.
645 Thu Jul 13 02:07:54 2000 Tim Janik <timj@gtk.org>
647 * gparam.c (g_param_value_defaults): default initialize the temporary
648 default value, instead of nuking the caller's value contents.
650 2000-07-11 Raja R Harinath <harinath@cs.umn.edu>
652 * gtype.c (g_type_get_plugin): Don't return just 0 or 1.
654 Tue Jul 11 02:48:13 2000 Tim Janik <timj@gtk.org>
656 * gtype.[hc]: removed g_type_is_dynamic() and added g_type_get_plugin().
658 2000-07-10 Tor Lillqvist <tml@iki.fi>
660 * gobject-query.c: Include ../config.h for HAVE_UNISTD_H. Use it
661 to guard inclusion of <unistd.h>.
663 * gtype.h: Fix copy-paste errors in the ifdefs on how to declare a
664 variable for export. Call the macro GOBJECT_VAR.
666 * gtype.c: Declare _g_type_fundamental_last for export here, too.
667 (type_node_any_new): Use only constant expressions for sizeof
668 operator (for instance MSVC requires this).
670 * makefile.mingw.in: Define GOBJECT_COMPILATION.
672 Sun Jul 9 21:21:46 2000 Owen Taylor <otaylor@redhat.com>
674 * genums.c: Move string.h include into the .c file
675 instead of where it was in the .h file by mistake.
677 Thu Jul 6 15:30:27 2000 Owen Taylor <otaylor@redhat.com>
679 * Makefile.am (EXTRA_DIST): dist fixes.
681 * gobject.c: Add a global variable glib_debug_objects
682 (not in header file) to control object tracing.
684 2000-07-01 Tor Lillqvist <tml@iki.fi>
686 * gobject.def: Update added and renamed entry points.
688 * makefile.mingw.in: Add gvaluetypes.o.
690 Thu Jun 29 16:02:07 2000 Owen Taylor <otaylor@redhat.com>
692 * gobject.c:include string.h for memset
693 * genums.h: include string.h for strcpy
694 * gvalue.c: include string.h for memset, memcpy.
696 Sat Jun 24 23:03:04 2000 Tim Janik <timj@gtk.org>
698 * gtype.[hc]: provide G_TYPE_CHAR, G_TYPE_UCHAR, G_TYPE_BOOLEAN,
699 G_TYPE_INT, G_TYPE_UINT, G_TYPE_LONG, G_TYPE_ULONG, G_TYPE_FLOAT,
700 G_TYPE_DOUBLE and G_TYPE_STRING fundamental types.
701 added a GTypeValueTable* pointer to GTypeInfo structure for types
702 to implement GValue handling functions.
703 GTypeValueTable contains the following members:
704 value_init(): initialize a GValue structure.
705 value_free(): free GValue structure contents (optional).
706 value_copy(): copy one GValue contents to another GValue structure of
707 collect_type: varargs collection type for the first variable argument
708 to be collected by collect_value().
709 collect_value(): variable arguments collection function (optional).
710 lcopy_type: varargs collection type for the first variable argument
711 to be location copyied by lcopy_value().
712 lcopy_value(): variable arguments location copy function (optional).
713 g_type_value_table_peek(): new function to retrive the GTypeValueTable*
714 for a type node. ValueTables get inherited from parent types, unless
715 overridden through the GTypeInfo structure. internally, GTypeValueTable
716 support means an added overhead of one pointer per static or used
718 g_type_add_class_cache_func(): provide a cache_func/data pair to be
719 called prior to a type nodes last_unref() function, this can be used
720 to prevent premature class destruction. multiple installed cache_func()
721 will be chained upon last_unref() untill one of them returns TRUE.
722 the cache_func()s have to check the class id passed in to figure whether
723 they actually want to cache the class of this type (since all classes
724 are routed through the cache_func() chain).
725 g_type_remove_class_cache_func(): remove a previously installed
726 cache_func/data pair. the cache maintained by this function has to be
727 clear when calling g_type_remove_class_cache_func() to avoid leaks.
728 g_type_class_unref_uncached(): class unref function for cache_func()
729 implementations, unreferences a class omitting the cache chain (and
730 therefore unref->cache->unref->... loops).
732 * gvaluetypes.[hc]: provide the value setters/getters for the primitive
733 fundamental types boolean, char, uchar, int, uint, long, ulong, float,
736 * gvalue.[hc]: provide G_TYPE_IS_VALUE() in terms of whether a
737 GTypeValueTable is provided for this type.
738 removed g_value_init_default(), g_value_validate(), g_value_defaults(),
739 g_value_set_default() and g_values_cmp() as these are supplied by the
741 moved g_values_exchange() into the "implementation details" section,
742 since it just provides the underlying functionality for
745 * gvaluecollector.h: renamed the varargs value container from
746 GParamCValue to GTypeCValue as the value collection methods are
747 supplied by the type system now.
748 G_PARAM_COLLECT_VALUE() and G_PARAM_LCOPY_VALUE() got renamed to
749 G_VALUE_COLLECT() and G_VALUE_LCOPY() and operate without a
750 GParamSpec structure now.
752 * genums.h: macros cleanups/fixes.
754 * genum.c: provide G_TYPE_ENUM and G_TYPE_FLAGS type
755 and assorted g_value_{s|g}et_{enum|flags}() implementations.
758 provide G_IS_VALUE_OBJECT(), G_TYPE_OBJECT ValueTable methods
759 and g_value_{s|g}et_object().
761 * gparam.[hc]: reduced class to value_set_default(),
762 value_validate() and values_cmp(). also parameters now need to fill
763 in a GType value_type; field to indicate the GValue type they
764 are handling. provide g_param_value_set_default(),
765 g_param_value_defaults(), g_param_value_validate() and
766 g_param_values_cmp().
768 * gparamspecs.[hc]: got rid of the g_value_* functions and
769 the G_IS_VALUE_* macros. adapted param spec implementations
770 according to the GParamSpecClass changes.
772 Sat Jun 10 08:38:27 2000 Tim Janik <timj@gtk.org>
774 * gtype.c (type_class_init): fetch the nth iface entry of the
775 type node in the nth loop iteration, not alwys the first.
776 bug discovered by Walt Pohl <cher@suitware.com>.
777 (type_data_finalize_class_ifaces): same here, cut and paste
780 Wed Jun 7 09:21:05 2000 Owen Taylor <otaylor@redhat.com>
782 * Makefile.am (INCLUDES): Add top_builddir so glibconfig.h
783 is found properly when build srcdir != builddir. (Patch from
786 2000-05-13 Tor Lillqvist <tml@iki.fi>
790 * gobject.rc.in: New files, for Win32 (mingw) build.
792 * Makefile.am: Add to EXTRA_DIST. Add rules to produce the
793 corresponding non-*.in files.
795 * gtype.h: (Win32:) Mark _g_type_fundamental_last for
796 export/import from DLL.
798 Fri May 5 01:15:48 2000 Tim Janik <timj@gtk.org>
800 * gtype.h: add reserved fundamental ids for gtk types (for transition
801 time). added G_TYPE_FUNDAMENTAL_MAX for gtk.
803 Mon Apr 17 20:45:50 2000 Tim Janik <timj@gtk.org>
805 * glib-gobject.c (g_object_base_class_finalize): oops, don't unset
806 n_params prior to destructing them.
808 Tue Apr 11 04:28:10 2000 Tim Janik <timj@gtk.org>
810 * fixed a couple of bugs in the initial parameter/object
811 implementations, after getting beast running on GObject and GValue.
813 Fri Apr 7 04:27:49 2000 Tim Janik <timj@gtk.org>
815 * glib-gobject.[hc]: completed parameter set/get implementations,
816 along with asyncronous parameter changed notification queue.
818 Sun Apr 2 04:54:36 2000 Tim Janik <timj@gtk.org>
820 * glib-gobject.[hc]: GObject implementation, that is facilities
821 for setting/getting quarked data and reference counting.
823 * glib-gparamspecs.[hc]: first actuall parameter implementations
824 for GLib, so far we have: char, uchar, bool, int, uint, long,
825 ulong, enum, flags, float, double, string and object. each of these
826 GParamSpecs is a new instantiatable type in its own respect,
827 so the .c file derives 13 new types from G_TYPE_PARAM and
828 defines over 50 (*2) conversion facilities.
830 * glib-gvaluecollector.h: generic varargs handling stubs for
831 GParamSpecs, private header file (does get installed for
832 inclusion into user code though).
834 * glib-gvalue.[hc]: GValue functionality implementation.
836 * glib-gparam.[hc]: basis GParamSpec implementation for
837 the virtual base type G_TYPE_PARAM.
839 * glib-genums.[hc]: enum/flags type implementation, based on
842 * glib-gtype.[hc]: GLib Type System implementation, heavily
843 based on BSE's dynamic type system.