1 Sun May 27 04:52:28 2001 Tim Janik <timj@gtk.org>
3 * gsignal.[hc] (g_signal_stop_emission_by_name): added variant
4 to stop signal emissions through a detailed_signal string.
6 * gsignal.c (signal_emit_R) (g_signal_emit_valist): account for
7 the fact that g_value_* functions may cause signal emissons by
8 unlocking the global signal system lock around g_value_* functions.
9 (signal_emit_unlocked_R): renamed this from signal_emit_R() to reflect
10 that this functions acquires the lock on its own now.
12 2001-05-24 Hans Breuer <hans@breuer.org>
14 * makefile.msc.in : changed depndencies to build glib-genmarshal
15 first and statically linked with glib, which makes it independent
16 from the installed glib version. Added new object files to build.
18 * gobject.def : updated
20 Thu May 24 08:52:02 2001 Owen Taylor <otaylor@redhat.com>
22 * gobject.[ch] (g_value_set_object): gpointer, not
25 2001-05-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
27 * Makefile.am (bin_SCRIPTS): made 'make distcheck' happy.
29 * gobject.def: Removed g_param_spec_stringc.
31 Tue May 22 02:46:13 2001 Tim Janik <timj@gtk.org>
33 * gobject.c (g_value_set_object): make g_value_set_object()
34 take a gpointer v_object so people don't need to G_OBJECT()
35 cast NULL pointers (C code convenience).
37 Mon May 14 01:49:01 2001 Tim Janik <timj@gtk.org>
39 * gsignal.[hc] (g_signal_handler_is_connected): new function
40 to check whether a handler is still connected to an instance
43 Thu May 10 14:00:48 2001 Tim Janik <timj@gtk.org>
45 * gparamspecs.[hc]: removed g_param_spec_stringc() in lack of
46 evidence of public need.
48 * gsignal.h: added g_signal_disconnect_by_func(),
49 g_signal_block_by_func() and g_signal_unblock_by_func() convenience
50 macros as per owen's request.
52 * gtype.c (SIZEOF_FUNDAMENTAL_INFO): align sizeof (GTypeFundamentalInfo)
53 to size of longs and pointers.
55 2001-05-05 James Henstridge <james@daa.com.au>
57 * Makefile.am: glib-mkenums is not a compiled program, so shouldn't
58 be in the bin_PROGRAMS primary. Put it in bin_SCRIPTS instead, and
59 removed the glib_mkenums_SOURCES var.
61 Thu May 3 06:10:23 2001 Owen Taylor <otaylor@redhat.com>
63 * gobject.c (g_object_set_[q]data_full): Make types of ternary
64 operator correspond. (Fixes compilation errors with Sun CC,
67 Mon Apr 30 20:03:56 2001 Tim Janik <timj@gtk.org>
69 * glib-mkenums (usage): removed \v escaping, newer perl versions don't
70 support this, and it'S probably useless anyways.
72 Sat Apr 28 23:39:42 2001 Tim Janik <timj@gtk.org>
74 * gsignal.[hc]: made signal handler and emission hook ids gulongs.
75 (signal_handlers_foreach_matched_R): only invoke callback for handlers
76 that are not disconnected (id>0).
77 (signal_emit_R): prevent invocation of signal handlers during the
78 emission they were connected within.
80 * glib-mkenums: publically installed perl-script to parse C code
81 enums and generate descriptions thereof.
82 * glib-mkenums.1: assorted man page.
84 2001-04-19 Havoc Pennington <hp@redhat.com>
86 * gobject.c (g_object_get_valist): We were returning junk memory
87 here, because we didn't copy the value (G_VALUE_NOCOPY_CONTENTS
88 passed to G_VALUE_LCOPY) and then we freed the GValue immediately
89 after. Removed G_VALUE_NOCOPY_CONTENTS from here; need a
90 G_VALUE_STEAL_CONTENTS or the like if we want this optimization.
92 Wed Apr 18 09:46:56 2001 Owen Taylor <otaylor@redhat.com>
94 * gobject.c gsignal.c: Change C++ comments for FIXME's to
95 C comments. (Patch from Andres Salomon)
97 2001-04-14 Hans Breuer <hans@breuer.org>
99 * gobject.def : updated
101 Mon Apr 9 18:56:15 2001 Tim Janik <timj@gtk.org>
103 * gclosure.c (g_closure_invoke): only require marshal/meta_marshal if
104 we're valid (about to actually do marshalling).
106 Tue Apr 3 20:23:24 2001 Tim Janik <timj@gtk.org>
110 Tue Apr 3 14:06:00 2001 Tim Janik <timj@gtk.org>
112 * gparam.[hc]: added g_param_spec_pool_list() to list pspecs per
113 owner_type. the pspecs are not referenced, so the caller is
114 supposed to have some idea about owner_type not randomly
115 nuking his pspec's. if this is going to provide problems in
116 the future, we can either auto-ref the pspecs, or add a
117 _foreach variant, though the latter would have to invoke
118 the callback while pspec's mutex is acquired, so i just
119 went for the _list variant for now.
121 * gclosure.h (G_CALLBACK): made GCallback a void (*) (void) fucntion.
123 Sat Mar 31 23:55:58 2001 Tim Janik <timj@gtk.org>
126 * gparamspecs.[hc]: applied patch from owen to implement
129 Fri Mar 30 07:34:02 2001 Tim Janik <timj@gtk.org>
131 * gtype.c (type_iface_retrive_holder_info_Wm):
132 * gtypeplugin.c (g_type_plugin_complete_interface_info):
133 * gtypemodule.c (g_type_module_complete_interface_info):
134 change order of instance_type and interface_type so they match
135 the g_type_add_interface_*() API.
137 * gsignal.c (g_signal_emit_valist): always assign C return value
138 location, people depending on unaltered return values after emissions
139 that had no handlers to run need to use g_signal_emitv().
141 * gtype.[hc] (g_type_query): new function to allow querying of
142 class and object size (semantics like g_signal_query()).
143 currently the implementation is better held conservative so as to
144 only support types that are classed and static.
146 2001-03-29 Tor Lillqvist <tml@iki.fi>
148 * gobject.def: Updates.
150 Wed Mar 28 17:04:06 2001 Tim Janik <timj@gtk.org>
152 * gobject.c (object_queue_property): only queue readable properties
153 for notification changes.
155 Thu Mar 22 13:36:50 2001 Tim Janik <timj@gtk.org>
157 * gsignal.c (g_signal_newv): catch G_SIGNAL_RUN_FIRST with a return value.
159 2001-03-21 Martin Baulig <baulig@suse.de>
161 * gboxed.[ch] (g_value_dup_boxed): This takes a `const GValue *'
164 2001-03-18 Tor Lillqvist <tml@iki.fi>
166 * gobject.def: Correct some renamed functions.
168 Sat Mar 17 23:18:36 2001 Tim Janik <timj@gtk.org>
170 * gobject.c (g_object_get_property): minor bug-fix.
172 * gbsearcharray.[hc]: provide a macro for static initialization and
173 functions g_bsearch_array_new() and g_bsearch_array_destroy() for
176 * gboxed.c: introduce G_TYPE_GSTRING, boxed type for GString.
178 * gclosure.[hc]: naming corrections.
180 Fri Mar 9 16:42:08 2001 Tim Janik <timj@gtk.org>
182 * gvaluetypes.[hc]: moved g_strdup_value_contents() into this file as
183 a public function (was static in gobject.c before). it's a bit odd
184 to have that function here, especially since it requires extra includes,
185 but then it doesn't very well fit somewhere else either.
187 * gparamspecs.c: added default/max/min checks to param spec creation
190 2001-03-10 Tor Lillqvist <tml@iki.fi>
192 * gobject.def: Add a couple of missing entries.
194 * Makefile.am (libgobject_1_3_la_LIBADD): Use only on Win32.
196 Fri Mar 9 14:57:17 2001 Tim Janik <timj@gtk.org>
198 * testgruntime.c: test program. covers run first/last/cleanup signal
199 handlers, return value accumulator, signal string returns, and
200 interface types in signal arguments.
202 * gtype.c (g_type_value_table_peek): for interface types without
203 value table, try looking up a value table from an instantiatable
204 prerequisite type (this is safe as an interface may only have
205 one instantiatable prerequisiste).
206 (type_check_is_value_type_U): same here.
208 * gsignal.c (g_signal_newv): assert that return types never have
209 G_SIGNAL_TYPE_STATIC_SCOPE set.
210 (g_signal_newc): only create class closure if the class_offset is not
213 Fri Mar 9 10:14:00 2001 Tim Janik <timj@gtk.org>
215 * gparamspecs.c (g_param_spec_object): use g_type_is_a() to check
216 for object_type being a G_TYPE_OBJECT, not G_TYPE_IS_OBJECT(), since
217 that wouldn't allow interface types.
219 * gtype.c (g_type_interface_add_prerequisite): arg, fixed small cnp bug
220 with bad implications and an off-by-one error.
222 Thu Mar 8 16:34:22 2001 Owen Taylor <otaylor@redhat.com>
224 * gvaluetransform.c: Include <string.h> for memcpy.
226 * gvaluetransform.c (DEFINE_SPRINTF): Remove unnecessary
227 and ANSI-illegal ## token pasting.
229 Thu Mar 8 18:11:52 2001 Tim Janik <timj@gtk.org>
231 * gsignal.c: eek, fixed old hook detail storage code.
233 Thu Mar 8 16:35:48 2001 Tim Janik <timj@gtk.org>
235 * gparamspecs.[hc]: s/g_param_spec_string_c/g_param_spec_stringc/.
237 * gsignal.[hc]: fixed accumulator invocation, implemented emission
238 hooks. and no, neither of these callbacks are called via a closure,
239 language bindings can wrap the accumulator and emission hook
240 interface, they already get parameters marshalled into a GValue array.
241 (g_signal_connect): removed this function as its C specific, doesn't
242 cover the swapped argument, is too close to its broken original
243 gtk_signal_connect() and creates demand for _swapped, _after and
244 _swapped_after variants <brrr>.
245 (g_signal_connectc): convenience macro to connect a C handler
246 func with data, like the old g_signal_connect() plus swapped
250 * gboxed.c: added G_TYPE_VALUE boxed type.
252 Wed Mar 7 19:02:51 2001 Tim Janik <timj@gtk.org>
254 * gtype.c (type_node_add_iface_entry_W): catch when adding an interface
255 to an ancestor of a child that already conforms to this interface.
256 currently we spew a warning here, should we be silent?
257 (g_type_interface_add_prerequisite): new function to add a prerequisite
258 type to an interface, that must succeed an instance is_a prerequisite
259 type check before the interface can be added to an instance. the
260 prerequisite types are also suuported in is_a checks of the interface.
261 (g_type_instance_is_a):
262 (g_type_check_instance_cast):
263 (g_type_check_instance): cleanups and optimizations.
265 (g_type_check_class_cast): same, also prevented these from accepting
266 interface types, as class structures don't nest interfaces.
268 2001-03-07 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
270 * Makefile.am: Avoid rebuilding everything everytime.
272 Wed Mar 7 09:36:33 2001 Tim Janik <timj@gtk.org>
274 * gboxed.[hc]: changed prototype of g_boxed_type_register_static()
275 to contain an optional init function and a hint at whether the
276 boxed structure uses ref counting internally.
277 added g_value_set_boxed_take_ownership().
278 made G_TYPE_BOXED an abstract value type.
280 * genums.[hc]: made G_TYPE_ENUM and G_TYPE_FLAGS abstract value
283 * glib-genmarshal.c: argument type changes, preparation for third-party
286 * gobject.[hc]: cleaned up get/set property code.
287 added g_strdup_value_contents() to improve warnings.
289 * gparam.[hc]: added g_param_value_convert(), taking over responsibility
290 of the old g_value_convert(). added G_PARAM_LAX_VALIDATION flag so
291 validation alterations may be valid a part of the property setting
294 * gparamspecs.[hc]: made value comparisons stable (for sort applications).
295 added GParamSpecValueArray, a param spec for value arrays and
296 GParamSpecClosure. nuked the value exchange functions and
299 * gtype.[hc]: catch unintialized usages of the type system with
300 g_return_val_if_uninitialized(). introduced G_TYPE_FLAG_VALUE_ABSTRACT
301 to flag types that introduce a value table, but can't be used for
302 g_value_init(). cleaned up reserved type ids.
304 * gvalue.[hc]: code cleanups and saner checking.
305 nuked the value exchange API. implemented value transformations, we
306 can't really "convert" values, rather transforms are an anylogy to
307 C casts, real conversions need a param spec for validation, which is
308 why g_param_value_convert() does real conversions now.
310 * gvaluearray.[hc]: new files that implement a GValueArray, a struct
311 that can hold inhomogeneous arrays of value (to that extend that it
312 also allowes undefined values, i.e. G_VALUE_TYPE(value)==0).
313 this is exposed to the type system as a boxed type.
315 * gvaluetransform.c: new file implementing most of the former value
316 exchange functions as single-sided transformations.
318 * gvaluetypes.[hc]: nuked G_TYPE_CCALLBACK, added
319 g_value_set_string_take_ownership().
321 * *.h: s/G_IS_VALUE_/G_VALUE_HOLDS_/.
323 * *.[hc]: many fixes and cleanups.
325 * many warning improvements.
327 Tue Feb 27 18:35:15 2001 Tim Janik <timj@gtk.org>
329 * gobject.c (g_object_get_valist): urg, pass G_VALUE_NOCOPY_CONTENTS
330 into G_VALUE_LCOPY(), this needs proper documenting.
332 * gparam.c: fixed G_PARAM_USER_MASK.
334 * gtype.c (type_data_make_W):
335 (type_data_last_unref_Wm): fixed invalid memory freeing.
337 * gobject.c (g_object_last_unref): destroy signal handlers associated
338 with object, right before finalization.
340 * gsignal.c (g_signal_parse_name): catch destroyed nodes or signals
341 that don't actually support details.
343 * gobject.[hc]: got rid of property trailers. nuked GObject
344 properties "data" and the "signal" variants.
345 (g_object_connect): new convenience function to do multiple
346 signal connections at once.
347 (g_object_disconnect): likewise, for disconnections.
349 * gparam.[hc] (g_param_spec_pool_lookup): took out trailer support.
351 * gvalue.[hc]: marked g_value_fits_pointer() and g_value_peek_pointer()
352 as private (the latter got renamed from g_value_get_as_pointer()).
354 2001-02-21 Tor Lillqvist <tml@iki.fi>
356 * *.h: Use G_BEGIN_DECLS and G_END_DECLS.
358 * Makefile.am: Use libglib-1.3.la from top_builddir. Invoke
359 libtool with -no-undefined for Win32 and Cygwin.
361 Wed Feb 21 18:31:46 2001 Jonathan Blandford <jrb@redhat.com>
363 * gsignal.h (g_signal_connect): Add g_signal_connect define to
364 make porting from gtk_signal_connect easy.
366 * gsignal.c (g_signal_emit_valist): Use G_TYPE_FROM_INSTANCE
367 (instance) instead of node->itype when initting the value.
369 2001-02-17 Havoc Pennington <hp@pobox.com>
371 Applied patch from Soeren Sandmann:
373 * gvaluetypes.c (g_value_get_string): G_CONST_RETURN
375 * gtype.c (g_type_name): G_CONST_RETURN
377 * gsignal.c (g_signal_name): G_CONST_RETURN
379 * gobject-query.c (main): const fix
381 Sat Feb 17 07:58:46 2001 Tim Janik <timj@gtk.org>
383 * genums.h (G_TYPE_IS_FLAGS): patch from sven to fixup
384 G_ENUM_CLASS_TYPE() macro.
386 Sat Feb 17 04:55:35 2001 Tim Janik <timj@gtk.org>
388 * gtype.[hc]: changed collect_format, collect_value() and lcopy_format,
389 lcopy_value() in the GTypeValueTable. the collect functions are now
390 called only once per value, collect_format/lcopy_format are strings
391 that enlist all necessary GTypeCValues to be varargs-collected.
393 * gvalue.h: ranamed STATIC_TAG to G_VALUE_NOCOPY_CONTENTS to indicate that
394 a value shouldn't copy its contents.
396 * gvaluecollector.h: changed G_VALUE_COLLECT() and G_VALUE_LCOPY()
397 macros to carry an additional argument (flags) that can be used
398 to pass G_VALUE_NOCOPY_CONTENTS along to the collection functions.
400 * *.c: adapted collect_value() and lcopy_value() functions to the new
401 prototypes, support G_VALUE_NOCOPY_CONTENTS where apropriate.
403 * gsignal.[hc]: introduced a G_SIGNAL_TYPE_STATIC_SCOPE flag that can
404 be passed along (ORed) with the parameter types, indicating that the
405 emission arguments are to be considered static for the scope of the
406 emission. should be used with care and only if the caller knows that
407 a parameter cannot be destroyed/freed from signal handlers connected
410 Fri Feb 16 07:10:44 2001 Tim Janik <timj@gtk.org>
414 (g_closure_sink): make closure sinking explicit.
417 (g_signal_connect_data):
418 (g_signal_connect_closure):
419 (g_signal_connect_closure_by_id):
420 (g_signal_newv): perform explicit closure sinking.
422 Thu Feb 8 00:31:45 2001 Tim Janik <timj@gtk.org>
424 * gtype.h: added G_TYPE_DEBUG_NONE for/from Eric Lemings ;)
426 2001-02-04 Tor Lillqvist <tml@iki.fi>
428 * gobject.def: Remove glib_debug_objects.
430 Sun Feb 4 07:30:53 2001 Tim Janik <timj@gtk.org>
432 * gtype.[hc]: changed g_type_init() to take debugging flags
433 initially, a combination of G_TYPE_DEBUG_OBJECTS and
434 G_TYPE_DEBUG_SIGNALS. using the G_TYPE_ prefix is a bit odd
435 here, but basically g_type_int() serves as initialization
436 fucntion for all of GType, GObject, GSignal, so what the heck.
438 * gobject.c: special case debugging code properly.
439 changed glib_trap_object_ref to g_trap_object_ref.
441 * gsignal.c: add signal emission debugging abilities, along with
442 a new trap object g_trap_instance_signals.
444 2001-02-04 Tor Lillqvist <tml@iki.fi>
446 * Makefile.am (progs_LDADD): Change order of libs to libgobject
447 first, then libglib. Needed for cygwin, says jbdoll@kepri.re.kr.
449 Wed Jan 31 06:19:49 2001 Tim Janik <timj@gtk.org>
451 * gparam.h: gtk-doc sucks for not dealing with #define inside enums.
453 * gtype.[hc]: added G_TYPE_FLAG_RESERVED_ID_BIT, a bit in the type
454 number that's supposed to be left untouched (preserved mainly
455 for the signal code).
457 * *.c: added thread safety code, based on an old patch from sebastian.
458 the remaining thread safety issues are now datalists on pspecs (to be
459 solved im gdataset.c) and gvalue.c where locking concerns value exchange
460 functionality only, and that's soon to be revised.
462 2001-01-27 Tor Lillqvist <tml@iki.fi>
464 * makefile.msc.in: Don't try to compile gmarshal.c on its own.
466 2001-01-24 <alexl@redhat.com>
468 * gclosure.c (g_closure_unref):
469 Don't leak closure->notifiers.
471 2001-01-05 Havoc Pennington <hp@redhat.com>
473 * gparamspecs.c (g_param_spec_enum): set the value_type in the
474 param spec; closes bug 40210
475 (g_param_spec_flags): ditto for flags
477 2001-01-03 Alexander Larsson <alexl@redhat.com>
480 Move glib_debug_objects out of the G_ENABLE_DEBUG #ifdef.
482 Thu Dec 28 11:36:44 2000 Tim Janik <timj@gtk.org>
484 * gbsearcharray.c (upper_power2): disable G_BSEARCH_ALIGN_POWER2
485 fucntionality if DISABLE_MEM_POOLS is defined.
487 * gtype.c: honour DISABLE_MEM_POOLS.
489 * gsignal.c (g_signal_init): flag signal key bsearch array with
490 G_BSEARCH_ALIGN_POWER2 to avoid excessive growth time. honour
493 * gparam.h: added G_PARAM_READWRITE alias for (G_PARAM_READABLE |
496 2000-12-15 Tor Lillqvist <tml@iki.fi>
498 * gobject.def: Update.
500 2000-12-15 Havoc Pennington <hp@pobox.com>
502 * gobject.c (g_object_do_class_init): use g_signal_newc
504 * gsignal.c (g_signal_newc): convenience function for signals
506 (g_signal_new_valist): added
507 (g_signal_new): removed
509 Fri Dec 15 04:40:23 2000 Tim Janik <timj@gtk.org>
511 * gparam.[hc]: add an instance member value_type so the default
512 value of the pspec class can be overridden.
514 2000-12-14 Tor Lillqvist <tml@iki.fi>
516 * makefile.mingw.in: Update, include parts from Makefile.am to
517 build gmarshal.[ch]. Some day, we won't need these separate
518 makefiles for Win32 compilation. I hope.
520 * makefile.msc.in: Update. No use trying to build gmarshal.[ch]
521 here, it would require Unixish tools. MSVC users building from CVS
522 sources are out of luck.
524 * gobject.def: Update.
526 Wed Dec 13 09:31:26 2000 Tim Janik <timj@gtk.org>
528 * gparamspecs.[hc]: add G_TYPE_PARAM_BOXED implementation.
530 * gobject.[hc]: minor fixes.
532 Tue Dec 12 23:38:02 2000 Tim Janik <timj@gtk.org>
534 * Makefile.am: _never_ touch oldest-source-stamp.
536 * gobject.[hc]: construct property handling fixes/improvements.
537 fixed trailer handling in get/set property.
539 * gparam.[hc]: implement param spec pool, got rid of param spec
540 hashtable. the most prominent change is that e deal with type
543 2000-12-12 Elliot Lee <sopwith@redhat.com>
546 . You have to 'touch oldest-source-stamp' if you want to avoid having
547 the Makefile constantly rebuild itself.
548 . Fix marshaller generation rules to work with srcdir != builddir
549 (there were issues with trying to run "./glib-genmarshal", etc.)
551 Mon Dec 11 04:44:11 2000 Tim Janik <timj@gtk.org>
553 * gboxed.c: fixed dealing with collection/lcopy of NULL values.
555 * gclosure.h: removed insane ramblings, added G_CALLBACK() a casting
558 * Makefile.am: cleanups, marshaller generation rules.
560 * gmarshal.[hc]: new files with GRuntime standard marshallers.
562 * glib-genmarshal.c: fix log domain, support gruntime standard
563 marshallers, suport G_TYPE_PARAM, come with extern "C" and
566 * glib-genmarshal.1: reflect glib-genmarshal.c updates.
568 * gobject.[hc]: implement object constructor. rework parameter
569 changed notification queueing, we support queue freezes now and
570 don't dispatch from an idle handler anymore.
571 parameter->property rename hassle.
572 implemented ::properties_changed and ::notify::* signals for
573 property change notification (the later supports property names
574 as details). added signal connection and named data properties.
575 (g_signal_connect_object): new function to setup while_alive
577 (g_object_class_install_property): sink properties now, since they
578 are initially floating.
579 (g_object_steal_data):
580 (g_object_set_data_full):
582 (g_object_get_data): set/get data by using g_datalist_*() functions
584 (g_object_queue_param_changed): nuked.
585 (g_object_freeze_notify): start queueing of property changes (freeze/
587 (g_object_notify): announce changes of a certain property directly.
588 (g_object_thaw_notify): process queue of property changes, therefore
589 emitting GObject::notify::detail with detail being the changed
591 (G_OBJECT_WARN_INVALID_PROPERTY_ID): saner macro variant of former
592 G_WARN_INVALID_PARAM_ID().
594 * gparam.[hc]: param specs are now initially floating and need to be
595 sunken with g_param_spec_sink(), support G_TYPE_PARAM values.
596 added G_PARAM_CONSTRUCT and G_PARAM_CONSTRUCT_ONLY parameter flags,
597 required by GObjectClass.constructor().
599 * gparamspecs.[hc]: added GParamSpecParam, GParamSpecPointer and
600 GParamSpecCCallback, param specs for G_TYPE_PARAM, G_TYPE_POINTER
601 and G_TYPE_CCALLBACK respectively.
603 * gsignal.[hc]: cleanups.
604 (signal_id_lookup): after walking the anchestry, try interfaces as well.
605 (g_signal_new): new function to create signals from varargs type list.
606 (g_signal_connect_closure): closure connection variant that works from
608 (g_signal_connect_data): c handler connection variant that works from
610 (g_signal_emit_valist): emit signal for an instance with paraneters
611 collected from a va_list.
612 (g_signal_emit): emit signal, taking parameters from varargs list.
613 (g_signal_emit_by_name): same as g_signal_emit, working from
615 (signal_emit_R): return whether return_value needs to be altered.
617 * gtype.[hc]: set log-domain to GRuntime, i'm slowly getting to all
618 the points that need to reflect the upcoming rename.
619 melt g_type_conforms_to() functionality into g_type_is_a(), as that
620 is what we really want (liskov substitution principle).
621 assorted changes to other files due to conforms_to->is_a.
623 * gvalue.[hc]: implemented g_value_set_instance() that sets a value
624 from an instantiatable type via the value_table's collect_value()
625 function (based on an idea from James Henstridge <james@daa.com.au>).
628 * gvaluetypes.[hc]: implement G_TYPE_CCALLBACK and G_TYPE_PARAM.
630 Wed Nov 29 13:30:05 2000 Tim Janik <timj@gtk.org>
632 * gsignal.c (handlers_find): fix elliots "logic fix" that dereferences
633 NULL nodes if C handlers are searched for specific signals.
635 2000-11-28 Elliot Lee <sopwith@redhat.com>
637 * gsignal.c: Fix warnings about possible use of uninitialized
638 variables, and fix logic that would leave 'node' unset in cases
639 that it might be used in.
641 * glib-genmarshal.c: Fix warning about printf format.
643 2000-11-28 Tor Lillqvist <tml@iki.fi>
645 * gboxed.c: Include <string.h> for memset ().
647 2000-11-22 Tor Lillqvist <tml@iki.fi>
649 * gobject.def: Update.
651 2000-11-20 Havoc Pennington <hp@redhat.com>
653 * gobject.c (g_object_get_data)
655 (g_object_set_data_full)
656 (g_object_steal_data): More convenient data-setting functions
658 Wed Nov 15 20:58:05 2000 Owen Taylor <otaylor@redhat.com>
660 * gtypemodule.c (g_type_module_use): If loading the
661 module fails, don't increment the use count.
663 Thu Nov 9 01:49:43 2000 Tim Janik <timj@gtk.org>
665 * gobject.h (G_WARN_INVALID_PARAM_ID): doh,
666 s/BSE_OBJECT_TYPE_NAME/G_OBJECT_TYPE_NAME/; reported by Maas-Maarten
667 Zeeman <maas@wanadoo.nl>.
669 Mon Nov 13 00:48:39 2000 Owen Taylor <otaylor@redhat.com>
671 * Makefile.am (EXTRA_DIST): Add glib-genmarshal.1
673 2000-11-11 Tor Lillqvist <tml@iki.fi>
675 * gtypemodule.c: Include stdlib.h for exit().
677 * makefile.{mingw,msc}.in (gobject_OBJECTS): Add gtypemodule.
679 * gobject.def: Add missing functions.
681 Sun Nov 5 13:21:28 2000 Owen Taylor <otaylor@redhat.com>
683 * Makefile.am gtypemodule.[ch]: New basic implementation of
684 GTypePlugin interface as a GObject. Dynamically loaded modules can
685 register any number of types and interface on the module.
687 Sun Nov 5 10:25:40 2000 Owen Taylor <otaylor@redhat.com>
689 * gsignal.c (handlers_find): When appending handlers and
690 not matching on signal_id, use hlist->signal_id instead of
691 signal_id. Having the correct signal_id when unreffing
692 the handlers makes things work a lot better.
694 2000-11-05 Tor Lillqvist <tml@iki.fi>
696 * makefile.{mingw,msc}.in (gobject_OBJECTS): Add gtypeplugin.
698 * gobject.def: Update.
700 Sun Nov 5 05:22:55 2000 Tim Janik <timj@gtk.org>
703 fixed a bag full of subtle bugs of immensive screw-up potential in
704 handlers_find(), luckily no one found out about them yet ;)
705 fixed signal_handlers_foreach_matched_R() so it operates on an
706 initial handler list snapshot provided by handlers_find() to work
707 around general reentrancy problems and to avoid multiple callback()
708 invocations on the same handlers.
709 this code is now officially 80% bug free (10% remaining for interface
710 types, and 10% remaining for destroyed signals ;)
712 Sat Nov 4 02:01:33 2000 Tim Janik <timj@gtk.org>
714 * gsignal.c (_g_signals_destroy): valid signal nodes start out at 1.
716 * gtypeplugin.[hc]: new files holding a GTypePlugin interface
717 implementation that provides the API required by GType to deal with
718 dynamically loadable types.
720 * gtype.[hc]: displace any GTypePlugin business to gtypeplugin.h.
722 Fri Nov 3 07:35:00 2000 Tim Janik <timj@gtk.org>
724 * gsignal.[hc]: prefix internal functions with '_'. renamed
725 g_signal_connect_closure() to g_signal_connect_closure_by_id().
726 added g_signal_parse_name() to retrive signal_id and detail quark
727 from a signal name (internal).
729 Wed Nov 1 03:36:54 2000 Tim Janik <timj@gtk.org>
731 * gobject.c (g_object_base_class_finalize): destroy all signals that
732 the finalized obejct type introduced.
734 * gsignal.c (g_signals_destroy): don't require itype to have
737 * gobject.c (g_object_do_finalize): make sure all signal handlers
741 (g_signal_handler_find): only match on non-0 masks.
742 (g_signal_handlers_block_matched):
743 (g_signal_handlers_unblock_matched):
744 (g_signal_handlers_disconnect_matched): new functions to block/unblock
745 or disconnect handlers in groups.
747 2000-10-30 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
749 * gvalue.c (exchange_entries_equal), gparam.c (param_spec_equals):
750 made both functions return gboolean just for the little extra
751 standard conformance now that GEqualFunc is introduced.
753 Mon Oct 30 05:52:45 2000 Tim Janik <timj@gtk.org>
755 * gsignal.c (g_signal_list_ids): get rid of inline documentation owen
756 added, the doc system would ignore it anyways (for some reason not
759 Mon Oct 30 03:00:07 2000 Tim Janik <timj@gtk.org>
761 * gsignal.[hc] (g_signal_list_ids): renamed owen's g_type_signals(),
762 added required mutex locks.
764 Sun Oct 29 02:31:03 2000 Owen Taylor <otaylor@redhat.com>
766 * gsignal.c (g_type_signals): Fix problem where signals
767 with "_" in them appeared twice in the result array.
769 Sun Oct 29 01:58:44 2000 Owen Taylor <otaylor@redhat.com>
771 * gsignal.h: Add g_type_signals() - a function to list
772 all signals for a given type.
774 Sat Oct 28 00:28:09 2000 Tim Janik <timj@gtk.org>
776 * gclosure.c (g_closure_add_marshal_guards): fixed notifier position
777 for post_marshal guard which was off at 0.
779 Fri Oct 27 21:49:31 2000 Tim Janik <timj@gtk.org>
781 * gobject.[hc]: doh, fix argument order in for
782 g_cclosure_new_object_swap and g_cclosure_new_object.
784 2000-10-28 Tor Lillqvist <tml@iki.fi>
786 * makefile.{mingw,msc}.in: Make glib-genmarshal.exe.
788 * glib-genmarshal.c: Conditionalise include of unistd.h.
789 Include <io.h> on Win32.
791 * gobject.def: Add some missing entry points.
793 Fri Oct 27 16:33:41 2000 Tim Janik <timj@gtk.org>
795 * gsignal.[hc]: publically define GSignalInvocationHint structure
796 that gets passed in to closure invocations. added signal details.
797 renamed GSignalType to GSignalFlags to comply with conventions.
798 quite some cleanups and minor fixes. avoid uneccessary handler list
799 walks upon invokation of after handlers. relookup handler list for
800 restarted emissions. preliminary abort normal handler invokation if
801 after handler is encountered.
804 * gclosure.[hc]: moved invocation_hint to the end of the
805 g_closure_invoke() arguments as sugegsted by kenelson.
806 also made it a gpointer to be more generic. the invocation_hint
807 is a caller specific thing that can be used to pass additional
808 data in to closure invocations as documented with the caller
809 invoking the closure.
811 Fri Oct 27 05:35:14 2000 Tim Janik <timj@gtk.org>
813 * gobject.c (g_object_watch_closure): fixed realloc bug, reported
816 * gsignal.c (g_signal_newv): fixed deadlock scenarion where
817 g_signal_lookup() would be called with the signal lock being
818 held. reported by james henstridge.
820 * gclosure.c (g_closure_set_meta_marshal): fixed memcpy/overwrite bug
823 2000-10-26 Tor Lillqvist <tml@iki.fi>
825 * gbsearcharray.c (bsearch_array_insert): Fix gccisms (pointer
826 arithmetic on void pointer, label without statement following.
828 * gtype.c (type_node_fundamental_info): Don't apply unary minus to
829 result of sizeof operator, it can be unsigned. Cast first to
832 * gobject.def: Add new functions.
834 * makefile.{mingw,msc}.in: Add new objects.
836 2000-10-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
838 * Makefile.am: Remove empty SUBDIRS line _again_, as that _still_
839 prevents 'make dist' from working.
841 Wed Oct 25 19:11:03 2000 Owen Taylor <otaylor@redhat.com>
843 * gbsearcharray.h (g_bsearch_array_get_nth): Don't use implicit
844 casts from void * since this will get included from C++ too
847 Thu Oct 26 00:30:27 2000 Tim Janik <timj@gtk.org>
849 * gvaluetypes.[hc]: added g_value_set_static_string().
851 * gboxed.[hc]: const corrections. added g_value_set_static_boxed().
853 Wed Oct 25 20:27:02 2000 Tim Janik <timj@gtk.org>
855 * gtype.c (g_type_free_instance): for the moment, freeing object
856 structures will fill their memory portion with 0xAA. there's a
857 FIXME there, remove this line at a later point.
859 Tue Oct 24 23:10:26 2000 Tim Janik <timj@gtk.org>
862 * glib-genmarshal.c: added publically installed marshaller generator.
864 * gtype.h: added G_TYPE_INSTANCE_GET_INTERFACE() to retrive a certain
865 interface VTable from instances.
867 Mon Oct 23 08:28:15 2000 Tim Janik <timj@gtk.org>
869 * gobject.[hc]: new functions for closure maintenance:
870 (g_object_watch_closure): maintain validity of the object and
871 the closure for objects that are used as data part of a closure.
872 (g_cclosure_new_object): convenience function to create C closures
873 that have an object as data argument.
874 (g_closure_new_object): convenience function to create closures
875 that have an object as data argument.
877 * gclosure.[hc]: implementation of GClosure mechanism.
878 a closure is basically an encapsulation of a callback function
879 and its environment. ideally, most places supporting callback
880 functions will simply take a GClosure* pointer and thus unify
881 callback environments wrg destroy notification etc.
882 GClosure provides destroy notifiers for arbitrary data pointers,
883 reference counting, invalidation notification (it can be invalidated
884 which is merely a deactivate state) and a marshallinbg abstraction.
885 GCClosure is also provided in these files, they present a specialized
886 GClosure implementation for C language callbacks.
888 * genum.c: macro cleanups.
890 * gboxed.[hc]: new files, for boxed type abstraction.
891 (g_boxed_copy): copy a boxed structure
892 (g_boxed_free): free a boxed structure
894 (g_value_get_boxed): standard GValue functions for boxed types
895 (g_boxed_type_register_static): convenience function for easy
896 introduction of new G_TYPE_BOXED derivatives.
898 * gparam.[hc]: introduced g_param_type_register_static(), a short hand
899 for creation of new GParamSpec derived types.
901 * gtype.[hc]: many fixes, introduced ability to flag individual
902 type nodes as ABSTRACT upon registration, added value_peek_pointer()
903 to the value table to peek at GValue contents as a pointer for types
904 that support this. fixed up GValue checks.
906 * gvalue.[hc]: added g_value_fits_pointer() and g_value_get_as_pointer()
907 to peek at the value contents as pointer.
909 * *.[hc]: adaptions to type macro fixes and changes in the type
912 * many const corrections over the place.
914 Sat Oct 21 02:49:56 2000 Tim Janik <timj@gtk.org>
916 * gtype.c (g_type_conforms_to): this function basically behaves like
917 and is_a check, except that it _additionally_ features interfaces
918 for instantiatable types. enforce this in the second branch as well
919 (`type' conforms_to `type') even if `type' is not an interface type.
921 Fri Oct 20 15:31:04 2000 Tim Janik <timj@gtk.org>
923 * gvaluetypes.[hc]: added G_TYPE_POINTER implementation from jrb.
927 * gvaluetypes.c: added GTypeValueTable.value_peek_pointer and
928 suitable implementations of this for G_TYPE_STRING, G_TYPE_OBJECT
931 Mon Aug 21 04:13:37 2000 Tim Janik <timj@gtk.org>
933 * gbsearcharray.[hc]: long standing needed generic implementation
934 of a binary searchable, sorted and dynamically sized array.
936 2000-10-15 Raja R Harinath <harinath@cs.umn.edu>
938 * Makefile.am (BUILT_EXTRA_DIST): New variable.
939 (dist-hook): Handle $(BUILT_EXTRA_DIST).
940 (*): Remove traces of @STRIP_{BEGIN,END}@.
942 2000-09-29 Martin Baulig <baulig@suse.de>
944 Several minor ANSI C fixes.
947 * gtype.c (type_class_init):
948 `(gpointer) bnode->data->class.class_init_base'
949 in call to g_slist_prepend() and
950 'GBaseInitFunc class_init_base = (GBaseInitFunc) slist->data'.
952 * gobject.c: Put text following #endif into comments.
954 2000-09-25 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
956 * Makefile.am: Remove empty SUBDIRS line, as that prevents make
959 Sat Sep 9 20:04:13 2000 Owen Taylor <otaylor@redhat.com>
961 * gobject.c (g_object_last_unref): Move call to
962 g_type_free_instance() here from g_object_do_finalize,
963 since g_type_free_instance() can unload the object's
966 2000-07-27 Tor Lillqvist <tml@iki.fi>
968 * gobject.c: No, don't mark glib_debug_objects for export here,
969 it's handled specially in gtktypeutils.c.
971 * gobject.def: Export g_type_fundamental_last (the function).
973 2000-07-26 Tor Lillqvist <tml@iki.fi>
976 * gobject.c: Mark glib_debug_objects for export/import as it is
979 Sun Jul 23 17:23:35 2000 Tim Janik <timj@gtk.org>
981 * gtype.[hc]: make g_type_fundamental_last() a function, avoiding all
982 that extern variable clutter and avoiding further problems with thread
985 2000-07-19 Tor Lillqvist <tml@iki.fi>
990 * gtype.c: Shut up Sun's picky compiler.
992 2000-07-14 Tor Lillqvist <tml@iki.fi>
994 * gobject.def: Add g_type_get_plugin.
996 Thu Jul 13 02:07:54 2000 Tim Janik <timj@gtk.org>
998 * gparam.c (g_param_value_defaults): default initialize the temporary
999 default value, instead of nuking the caller's value contents.
1001 2000-07-11 Raja R Harinath <harinath@cs.umn.edu>
1003 * gtype.c (g_type_get_plugin): Don't return just 0 or 1.
1005 Tue Jul 11 02:48:13 2000 Tim Janik <timj@gtk.org>
1007 * gtype.[hc]: removed g_type_is_dynamic() and added g_type_get_plugin().
1009 2000-07-10 Tor Lillqvist <tml@iki.fi>
1011 * gobject-query.c: Include ../config.h for HAVE_UNISTD_H. Use it
1012 to guard inclusion of <unistd.h>.
1014 * gtype.h: Fix copy-paste errors in the ifdefs on how to declare a
1015 variable for export. Call the macro GOBJECT_VAR.
1017 * gtype.c: Declare _g_type_fundamental_last for export here, too.
1018 (type_node_any_new): Use only constant expressions for sizeof
1019 operator (for instance MSVC requires this).
1021 * makefile.mingw.in: Define GOBJECT_COMPILATION.
1023 Sun Jul 9 21:21:46 2000 Owen Taylor <otaylor@redhat.com>
1025 * genums.c: Move string.h include into the .c file
1026 instead of where it was in the .h file by mistake.
1028 Thu Jul 6 15:30:27 2000 Owen Taylor <otaylor@redhat.com>
1030 * Makefile.am (EXTRA_DIST): dist fixes.
1032 * gobject.c: Add a global variable glib_debug_objects
1033 (not in header file) to control object tracing.
1035 2000-07-01 Tor Lillqvist <tml@iki.fi>
1037 * gobject.def: Update added and renamed entry points.
1039 * makefile.mingw.in: Add gvaluetypes.o.
1041 Thu Jun 29 16:02:07 2000 Owen Taylor <otaylor@redhat.com>
1043 * gobject.c:include string.h for memset
1044 * genums.h: include string.h for strcpy
1045 * gvalue.c: include string.h for memset, memcpy.
1047 Sat Jun 24 23:03:04 2000 Tim Janik <timj@gtk.org>
1049 * gtype.[hc]: provide G_TYPE_CHAR, G_TYPE_UCHAR, G_TYPE_BOOLEAN,
1050 G_TYPE_INT, G_TYPE_UINT, G_TYPE_LONG, G_TYPE_ULONG, G_TYPE_FLOAT,
1051 G_TYPE_DOUBLE and G_TYPE_STRING fundamental types.
1052 added a GTypeValueTable* pointer to GTypeInfo structure for types
1053 to implement GValue handling functions.
1054 GTypeValueTable contains the following members:
1055 value_init(): initialize a GValue structure.
1056 value_free(): free GValue structure contents (optional).
1057 value_copy(): copy one GValue contents to another GValue structure of
1058 collect_type: varargs collection type for the first variable argument
1059 to be collected by collect_value().
1060 collect_value(): variable arguments collection function (optional).
1061 lcopy_type: varargs collection type for the first variable argument
1062 to be location copyied by lcopy_value().
1063 lcopy_value(): variable arguments location copy function (optional).
1064 g_type_value_table_peek(): new function to retrive the GTypeValueTable*
1065 for a type node. ValueTables get inherited from parent types, unless
1066 overridden through the GTypeInfo structure. internally, GTypeValueTable
1067 support means an added overhead of one pointer per static or used
1069 g_type_add_class_cache_func(): provide a cache_func/data pair to be
1070 called prior to a type nodes last_unref() function, this can be used
1071 to prevent premature class destruction. multiple installed cache_func()
1072 will be chained upon last_unref() untill one of them returns TRUE.
1073 the cache_func()s have to check the class id passed in to figure whether
1074 they actually want to cache the class of this type (since all classes
1075 are routed through the cache_func() chain).
1076 g_type_remove_class_cache_func(): remove a previously installed
1077 cache_func/data pair. the cache maintained by this function has to be
1078 clear when calling g_type_remove_class_cache_func() to avoid leaks.
1079 g_type_class_unref_uncached(): class unref function for cache_func()
1080 implementations, unreferences a class omitting the cache chain (and
1081 therefore unref->cache->unref->... loops).
1083 * gvaluetypes.[hc]: provide the value setters/getters for the primitive
1084 fundamental types boolean, char, uchar, int, uint, long, ulong, float,
1087 * gvalue.[hc]: provide G_TYPE_IS_VALUE() in terms of whether a
1088 GTypeValueTable is provided for this type.
1089 removed g_value_init_default(), g_value_validate(), g_value_defaults(),
1090 g_value_set_default() and g_values_cmp() as these are supplied by the
1092 moved g_values_exchange() into the "implementation details" section,
1093 since it just provides the underlying functionality for
1096 * gvaluecollector.h: renamed the varargs value container from
1097 GParamCValue to GTypeCValue as the value collection methods are
1098 supplied by the type system now.
1099 G_PARAM_COLLECT_VALUE() and G_PARAM_LCOPY_VALUE() got renamed to
1100 G_VALUE_COLLECT() and G_VALUE_LCOPY() and operate without a
1101 GParamSpec structure now.
1103 * genums.h: macros cleanups/fixes.
1105 * genum.c: provide G_TYPE_ENUM and G_TYPE_FLAGS type
1106 and assorted g_value_{s|g}et_{enum|flags}() implementations.
1109 provide G_IS_VALUE_OBJECT(), G_TYPE_OBJECT ValueTable methods
1110 and g_value_{s|g}et_object().
1112 * gparam.[hc]: reduced class to value_set_default(),
1113 value_validate() and values_cmp(). also parameters now need to fill
1114 in a GType value_type; field to indicate the GValue type they
1115 are handling. provide g_param_value_set_default(),
1116 g_param_value_defaults(), g_param_value_validate() and
1117 g_param_values_cmp().
1119 * gparamspecs.[hc]: got rid of the g_value_* functions and
1120 the G_IS_VALUE_* macros. adapted param spec implementations
1121 according to the GParamSpecClass changes.
1123 Sat Jun 10 08:38:27 2000 Tim Janik <timj@gtk.org>
1125 * gtype.c (type_class_init): fetch the nth iface entry of the
1126 type node in the nth loop iteration, not alwys the first.
1127 bug discovered by Walt Pohl <cher@suitware.com>.
1128 (type_data_finalize_class_ifaces): same here, cut and paste
1131 Wed Jun 7 09:21:05 2000 Owen Taylor <otaylor@redhat.com>
1133 * Makefile.am (INCLUDES): Add top_builddir so glibconfig.h
1134 is found properly when build srcdir != builddir. (Patch from
1137 2000-05-13 Tor Lillqvist <tml@iki.fi>
1141 * gobject.rc.in: New files, for Win32 (mingw) build.
1143 * Makefile.am: Add to EXTRA_DIST. Add rules to produce the
1144 corresponding non-*.in files.
1146 * gtype.h: (Win32:) Mark _g_type_fundamental_last for
1147 export/import from DLL.
1149 Fri May 5 01:15:48 2000 Tim Janik <timj@gtk.org>
1151 * gtype.h: add reserved fundamental ids for gtk types (for transition
1152 time). added G_TYPE_FUNDAMENTAL_MAX for gtk.
1154 Mon Apr 17 20:45:50 2000 Tim Janik <timj@gtk.org>
1156 * glib-gobject.c (g_object_base_class_finalize): oops, don't unset
1157 n_params prior to destructing them.
1159 Tue Apr 11 04:28:10 2000 Tim Janik <timj@gtk.org>
1161 * fixed a couple of bugs in the initial parameter/object
1162 implementations, after getting beast running on GObject and GValue.
1164 Fri Apr 7 04:27:49 2000 Tim Janik <timj@gtk.org>
1166 * glib-gobject.[hc]: completed parameter set/get implementations,
1167 along with asyncronous parameter changed notification queue.
1169 Sun Apr 2 04:54:36 2000 Tim Janik <timj@gtk.org>
1171 * glib-gobject.[hc]: GObject implementation, that is facilities
1172 for setting/getting quarked data and reference counting.
1174 * glib-gparamspecs.[hc]: first actuall parameter implementations
1175 for GLib, so far we have: char, uchar, bool, int, uint, long,
1176 ulong, enum, flags, float, double, string and object. each of these
1177 GParamSpecs is a new instantiatable type in its own respect,
1178 so the .c file derives 13 new types from G_TYPE_PARAM and
1179 defines over 50 (*2) conversion facilities.
1181 * glib-gvaluecollector.h: generic varargs handling stubs for
1182 GParamSpecs, private header file (does get installed for
1183 inclusion into user code though).
1185 * glib-gvalue.[hc]: GValue functionality implementation.
1187 * glib-gparam.[hc]: basis GParamSpec implementation for
1188 the virtual base type G_TYPE_PARAM.
1190 * glib-genums.[hc]: enum/flags type implementation, based on
1193 * glib-gtype.[hc]: GLib Type System implementation, heavily
1194 based on BSE's dynamic type system.