1 2001-05-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
3 * gobject.def: Removed g_param_spec_stringc.
5 Tue May 22 02:46:13 2001 Tim Janik <timj@gtk.org>
7 * gobject.c (g_value_set_object): make g_value_set_object()
8 take a gpointer v_object so people don't need to G_OBJECT()
9 cast NULL pointers (C code convenience).
11 Mon May 14 01:49:01 2001 Tim Janik <timj@gtk.org>
13 * gsignal.[hc] (g_signal_handler_is_connected): new function
14 to check whether a handler is still connected to an instance
17 Thu May 10 14:00:48 2001 Tim Janik <timj@gtk.org>
19 * gparamspecs.[hc]: removed g_param_spec_stringc() in lack of
20 evidence of public need.
22 * gsignal.h: added g_signal_disconnect_by_func(),
23 g_signal_block_by_func() and g_signal_unblock_by_func() convenience
24 macros as per owen's request.
26 * gtype.c (SIZEOF_FUNDAMENTAL_INFO): align sizeof (GTypeFundamentalInfo)
27 to size of longs and pointers.
29 2001-05-05 James Henstridge <james@daa.com.au>
31 * Makefile.am: glib-mkenums is not a compiled program, so shouldn't
32 be in the bin_PROGRAMS primary. Put it in bin_SCRIPTS instead, and
33 removed the glib_mkenums_SOURCES var.
35 Thu May 3 06:10:23 2001 Owen Taylor <otaylor@redhat.com>
37 * gobject.c (g_object_set_[q]data_full): Make types of ternary
38 operator correspond. (Fixes compilation errors with Sun CC,
41 Mon Apr 30 20:03:56 2001 Tim Janik <timj@gtk.org>
43 * glib-mkenums (usage): removed \v escaping, newer perl versions don't
44 support this, and it'S probably useless anyways.
46 Sat Apr 28 23:39:42 2001 Tim Janik <timj@gtk.org>
48 * gsignal.[hc]: made signal handler and emission hook ids gulongs.
49 (signal_handlers_foreach_matched_R): only invoke callback for handlers
50 that are not disconnected (id>0).
51 (signal_emit_R): prevent invocation of signal handlers during the
52 emission they were connected within.
54 * glib-mkenums: publically installed perl-script to parse C code
55 enums and generate descriptions thereof.
56 * glib-mkenums.1: assorted man page.
58 2001-04-19 Havoc Pennington <hp@redhat.com>
60 * gobject.c (g_object_get_valist): We were returning junk memory
61 here, because we didn't copy the value (G_VALUE_NOCOPY_CONTENTS
62 passed to G_VALUE_LCOPY) and then we freed the GValue immediately
63 after. Removed G_VALUE_NOCOPY_CONTENTS from here; need a
64 G_VALUE_STEAL_CONTENTS or the like if we want this optimization.
66 Wed Apr 18 09:46:56 2001 Owen Taylor <otaylor@redhat.com>
68 * gobject.c gsignal.c: Change C++ comments for FIXME's to
69 C comments. (Patch from Andres Salomon)
71 2001-04-14 Hans Breuer <hans@breuer.org>
73 * gobject.def : updated
75 Mon Apr 9 18:56:15 2001 Tim Janik <timj@gtk.org>
77 * gclosure.c (g_closure_invoke): only require marshal/meta_marshal if
78 we're valid (about to actually do marshalling).
80 Tue Apr 3 20:23:24 2001 Tim Janik <timj@gtk.org>
84 Tue Apr 3 14:06:00 2001 Tim Janik <timj@gtk.org>
86 * gparam.[hc]: added g_param_spec_pool_list() to list pspecs per
87 owner_type. the pspecs are not referenced, so the caller is
88 supposed to have some idea about owner_type not randomly
89 nuking his pspec's. if this is going to provide problems in
90 the future, we can either auto-ref the pspecs, or add a
91 _foreach variant, though the latter would have to invoke
92 the callback while pspec's mutex is acquired, so i just
93 went for the _list variant for now.
95 * gclosure.h (G_CALLBACK): made GCallback a void (*) (void) fucntion.
97 Sat Mar 31 23:55:58 2001 Tim Janik <timj@gtk.org>
100 * gparamspecs.[hc]: applied patch from owen to implement
103 Fri Mar 30 07:34:02 2001 Tim Janik <timj@gtk.org>
105 * gtype.c (type_iface_retrive_holder_info_Wm):
106 * gtypeplugin.c (g_type_plugin_complete_interface_info):
107 * gtypemodule.c (g_type_module_complete_interface_info):
108 change order of instance_type and interface_type so they match
109 the g_type_add_interface_*() API.
111 * gsignal.c (g_signal_emit_valist): always assign C return value
112 location, people depending on unaltered return values after emissions
113 that had no handlers to run need to use g_signal_emitv().
115 * gtype.[hc] (g_type_query): new function to allow querying of
116 class and object size (semantics like g_signal_query()).
117 currently the implementation is better held conservative so as to
118 only support types that are classed and static.
120 2001-03-29 Tor Lillqvist <tml@iki.fi>
122 * gobject.def: Updates.
124 Wed Mar 28 17:04:06 2001 Tim Janik <timj@gtk.org>
126 * gobject.c (object_queue_property): only queue readable properties
127 for notification changes.
129 Thu Mar 22 13:36:50 2001 Tim Janik <timj@gtk.org>
131 * gsignal.c (g_signal_newv): catch G_SIGNAL_RUN_FIRST with a return value.
133 2001-03-21 Martin Baulig <baulig@suse.de>
135 * gboxed.[ch] (g_value_dup_boxed): This takes a `const GValue *'
138 2001-03-18 Tor Lillqvist <tml@iki.fi>
140 * gobject.def: Correct some renamed functions.
142 Sat Mar 17 23:18:36 2001 Tim Janik <timj@gtk.org>
144 * gobject.c (g_object_get_property): minor bug-fix.
146 * gbsearcharray.[hc]: provide a macro for static initialization and
147 functions g_bsearch_array_new() and g_bsearch_array_destroy() for
150 * gboxed.c: introduce G_TYPE_GSTRING, boxed type for GString.
152 * gclosure.[hc]: naming corrections.
154 Fri Mar 9 16:42:08 2001 Tim Janik <timj@gtk.org>
156 * gvaluetypes.[hc]: moved g_strdup_value_contents() into this file as
157 a public function (was static in gobject.c before). it's a bit odd
158 to have that function here, especially since it requires extra includes,
159 but then it doesn't very well fit somewhere else either.
161 * gparamspecs.c: added default/max/min checks to param spec creation
164 2001-03-10 Tor Lillqvist <tml@iki.fi>
166 * gobject.def: Add a couple of missing entries.
168 * Makefile.am (libgobject_1_3_la_LIBADD): Use only on Win32.
170 Fri Mar 9 14:57:17 2001 Tim Janik <timj@gtk.org>
172 * testgruntime.c: test program. covers run first/last/cleanup signal
173 handlers, return value accumulator, signal string returns, and
174 interface types in signal arguments.
176 * gtype.c (g_type_value_table_peek): for interface types without
177 value table, try looking up a value table from an instantiatable
178 prerequisite type (this is safe as an interface may only have
179 one instantiatable prerequisiste).
180 (type_check_is_value_type_U): same here.
182 * gsignal.c (g_signal_newv): assert that return types never have
183 G_SIGNAL_TYPE_STATIC_SCOPE set.
184 (g_signal_newc): only create class closure if the class_offset is not
187 Fri Mar 9 10:14:00 2001 Tim Janik <timj@gtk.org>
189 * gparamspecs.c (g_param_spec_object): use g_type_is_a() to check
190 for object_type being a G_TYPE_OBJECT, not G_TYPE_IS_OBJECT(), since
191 that wouldn't allow interface types.
193 * gtype.c (g_type_interface_add_prerequisite): arg, fixed small cnp bug
194 with bad implications and an off-by-one error.
196 Thu Mar 8 16:34:22 2001 Owen Taylor <otaylor@redhat.com>
198 * gvaluetransform.c: Include <string.h> for memcpy.
200 * gvaluetransform.c (DEFINE_SPRINTF): Remove unnecessary
201 and ANSI-illegal ## token pasting.
203 Thu Mar 8 18:11:52 2001 Tim Janik <timj@gtk.org>
205 * gsignal.c: eek, fixed old hook detail storage code.
207 Thu Mar 8 16:35:48 2001 Tim Janik <timj@gtk.org>
209 * gparamspecs.[hc]: s/g_param_spec_string_c/g_param_spec_stringc/.
211 * gsignal.[hc]: fixed accumulator invocation, implemented emission
212 hooks. and no, neither of these callbacks are called via a closure,
213 language bindings can wrap the accumulator and emission hook
214 interface, they already get parameters marshalled into a GValue array.
215 (g_signal_connect): removed this function as its C specific, doesn't
216 cover the swapped argument, is too close to its broken original
217 gtk_signal_connect() and creates demand for _swapped, _after and
218 _swapped_after variants <brrr>.
219 (g_signal_connectc): convenience macro to connect a C handler
220 func with data, like the old g_signal_connect() plus swapped
224 * gboxed.c: added G_TYPE_VALUE boxed type.
226 Wed Mar 7 19:02:51 2001 Tim Janik <timj@gtk.org>
228 * gtype.c (type_node_add_iface_entry_W): catch when adding an interface
229 to an ancestor of a child that already conforms to this interface.
230 currently we spew a warning here, should we be silent?
231 (g_type_interface_add_prerequisite): new function to add a prerequisite
232 type to an interface, that must succeed an instance is_a prerequisite
233 type check before the interface can be added to an instance. the
234 prerequisite types are also suuported in is_a checks of the interface.
235 (g_type_instance_is_a):
236 (g_type_check_instance_cast):
237 (g_type_check_instance): cleanups and optimizations.
239 (g_type_check_class_cast): same, also prevented these from accepting
240 interface types, as class structures don't nest interfaces.
242 2001-03-07 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
244 * Makefile.am: Avoid rebuilding everything everytime.
246 Wed Mar 7 09:36:33 2001 Tim Janik <timj@gtk.org>
248 * gboxed.[hc]: changed prototype of g_boxed_type_register_static()
249 to contain an optional init function and a hint at whether the
250 boxed structure uses ref counting internally.
251 added g_value_set_boxed_take_ownership().
252 made G_TYPE_BOXED an abstract value type.
254 * genums.[hc]: made G_TYPE_ENUM and G_TYPE_FLAGS abstract value
257 * glib-genmarshal.c: argument type changes, preparation for third-party
260 * gobject.[hc]: cleaned up get/set property code.
261 added g_strdup_value_contents() to improve warnings.
263 * gparam.[hc]: added g_param_value_convert(), taking over responsibility
264 of the old g_value_convert(). added G_PARAM_LAX_VALIDATION flag so
265 validation alterations may be valid a part of the property setting
268 * gparamspecs.[hc]: made value comparisons stable (for sort applications).
269 added GParamSpecValueArray, a param spec for value arrays and
270 GParamSpecClosure. nuked the value exchange functions and
273 * gtype.[hc]: catch unintialized usages of the type system with
274 g_return_val_if_uninitialized(). introduced G_TYPE_FLAG_VALUE_ABSTRACT
275 to flag types that introduce a value table, but can't be used for
276 g_value_init(). cleaned up reserved type ids.
278 * gvalue.[hc]: code cleanups and saner checking.
279 nuked the value exchange API. implemented value transformations, we
280 can't really "convert" values, rather transforms are an anylogy to
281 C casts, real conversions need a param spec for validation, which is
282 why g_param_value_convert() does real conversions now.
284 * gvaluearray.[hc]: new files that implement a GValueArray, a struct
285 that can hold inhomogeneous arrays of value (to that extend that it
286 also allowes undefined values, i.e. G_VALUE_TYPE(value)==0).
287 this is exposed to the type system as a boxed type.
289 * gvaluetransform.c: new file implementing most of the former value
290 exchange functions as single-sided transformations.
292 * gvaluetypes.[hc]: nuked G_TYPE_CCALLBACK, added
293 g_value_set_string_take_ownership().
295 * *.h: s/G_IS_VALUE_/G_VALUE_HOLDS_/.
297 * *.[hc]: many fixes and cleanups.
299 * many warning improvements.
301 Tue Feb 27 18:35:15 2001 Tim Janik <timj@gtk.org>
303 * gobject.c (g_object_get_valist): urg, pass G_VALUE_NOCOPY_CONTENTS
304 into G_VALUE_LCOPY(), this needs proper documenting.
306 * gparam.c: fixed G_PARAM_USER_MASK.
308 * gtype.c (type_data_make_W):
309 (type_data_last_unref_Wm): fixed invalid memory freeing.
311 * gobject.c (g_object_last_unref): destroy signal handlers associated
312 with object, right before finalization.
314 * gsignal.c (g_signal_parse_name): catch destroyed nodes or signals
315 that don't actually support details.
317 * gobject.[hc]: got rid of property trailers. nuked GObject
318 properties "data" and the "signal" variants.
319 (g_object_connect): new convenience function to do multiple
320 signal connections at once.
321 (g_object_disconnect): likewise, for disconnections.
323 * gparam.[hc] (g_param_spec_pool_lookup): took out trailer support.
325 * gvalue.[hc]: marked g_value_fits_pointer() and g_value_peek_pointer()
326 as private (the latter got renamed from g_value_get_as_pointer()).
328 2001-02-21 Tor Lillqvist <tml@iki.fi>
330 * *.h: Use G_BEGIN_DECLS and G_END_DECLS.
332 * Makefile.am: Use libglib-1.3.la from top_builddir. Invoke
333 libtool with -no-undefined for Win32 and Cygwin.
335 Wed Feb 21 18:31:46 2001 Jonathan Blandford <jrb@redhat.com>
337 * gsignal.h (g_signal_connect): Add g_signal_connect define to
338 make porting from gtk_signal_connect easy.
340 * gsignal.c (g_signal_emit_valist): Use G_TYPE_FROM_INSTANCE
341 (instance) instead of node->itype when initting the value.
343 2001-02-17 Havoc Pennington <hp@pobox.com>
345 Applied patch from Soeren Sandmann:
347 * gvaluetypes.c (g_value_get_string): G_CONST_RETURN
349 * gtype.c (g_type_name): G_CONST_RETURN
351 * gsignal.c (g_signal_name): G_CONST_RETURN
353 * gobject-query.c (main): const fix
355 Sat Feb 17 07:58:46 2001 Tim Janik <timj@gtk.org>
357 * genums.h (G_TYPE_IS_FLAGS): patch from sven to fixup
358 G_ENUM_CLASS_TYPE() macro.
360 Sat Feb 17 04:55:35 2001 Tim Janik <timj@gtk.org>
362 * gtype.[hc]: changed collect_format, collect_value() and lcopy_format,
363 lcopy_value() in the GTypeValueTable. the collect functions are now
364 called only once per value, collect_format/lcopy_format are strings
365 that enlist all necessary GTypeCValues to be varargs-collected.
367 * gvalue.h: ranamed STATIC_TAG to G_VALUE_NOCOPY_CONTENTS to indicate that
368 a value shouldn't copy its contents.
370 * gvaluecollector.h: changed G_VALUE_COLLECT() and G_VALUE_LCOPY()
371 macros to carry an additional argument (flags) that can be used
372 to pass G_VALUE_NOCOPY_CONTENTS along to the collection functions.
374 * *.c: adapted collect_value() and lcopy_value() functions to the new
375 prototypes, support G_VALUE_NOCOPY_CONTENTS where apropriate.
377 * gsignal.[hc]: introduced a G_SIGNAL_TYPE_STATIC_SCOPE flag that can
378 be passed along (ORed) with the parameter types, indicating that the
379 emission arguments are to be considered static for the scope of the
380 emission. should be used with care and only if the caller knows that
381 a parameter cannot be destroyed/freed from signal handlers connected
384 Fri Feb 16 07:10:44 2001 Tim Janik <timj@gtk.org>
388 (g_closure_sink): make closure sinking explicit.
391 (g_signal_connect_data):
392 (g_signal_connect_closure):
393 (g_signal_connect_closure_by_id):
394 (g_signal_newv): perform explicit closure sinking.
396 Thu Feb 8 00:31:45 2001 Tim Janik <timj@gtk.org>
398 * gtype.h: added G_TYPE_DEBUG_NONE for/from Eric Lemings ;)
400 2001-02-04 Tor Lillqvist <tml@iki.fi>
402 * gobject.def: Remove glib_debug_objects.
404 Sun Feb 4 07:30:53 2001 Tim Janik <timj@gtk.org>
406 * gtype.[hc]: changed g_type_init() to take debugging flags
407 initially, a combination of G_TYPE_DEBUG_OBJECTS and
408 G_TYPE_DEBUG_SIGNALS. using the G_TYPE_ prefix is a bit odd
409 here, but basically g_type_int() serves as initialization
410 fucntion for all of GType, GObject, GSignal, so what the heck.
412 * gobject.c: special case debugging code properly.
413 changed glib_trap_object_ref to g_trap_object_ref.
415 * gsignal.c: add signal emission debugging abilities, along with
416 a new trap object g_trap_instance_signals.
418 2001-02-04 Tor Lillqvist <tml@iki.fi>
420 * Makefile.am (progs_LDADD): Change order of libs to libgobject
421 first, then libglib. Needed for cygwin, says jbdoll@kepri.re.kr.
423 Wed Jan 31 06:19:49 2001 Tim Janik <timj@gtk.org>
425 * gparam.h: gtk-doc sucks for not dealing with #define inside enums.
427 * gtype.[hc]: added G_TYPE_FLAG_RESERVED_ID_BIT, a bit in the type
428 number that's supposed to be left untouched (preserved mainly
429 for the signal code).
431 * *.c: added thread safety code, based on an old patch from sebastian.
432 the remaining thread safety issues are now datalists on pspecs (to be
433 solved im gdataset.c) and gvalue.c where locking concerns value exchange
434 functionality only, and that's soon to be revised.
436 2001-01-27 Tor Lillqvist <tml@iki.fi>
438 * makefile.msc.in: Don't try to compile gmarshal.c on its own.
440 2001-01-24 <alexl@redhat.com>
442 * gclosure.c (g_closure_unref):
443 Don't leak closure->notifiers.
445 2001-01-05 Havoc Pennington <hp@redhat.com>
447 * gparamspecs.c (g_param_spec_enum): set the value_type in the
448 param spec; closes bug 40210
449 (g_param_spec_flags): ditto for flags
451 2001-01-03 Alexander Larsson <alexl@redhat.com>
454 Move glib_debug_objects out of the G_ENABLE_DEBUG #ifdef.
456 Thu Dec 28 11:36:44 2000 Tim Janik <timj@gtk.org>
458 * gbsearcharray.c (upper_power2): disable G_BSEARCH_ALIGN_POWER2
459 fucntionality if DISABLE_MEM_POOLS is defined.
461 * gtype.c: honour DISABLE_MEM_POOLS.
463 * gsignal.c (g_signal_init): flag signal key bsearch array with
464 G_BSEARCH_ALIGN_POWER2 to avoid excessive growth time. honour
467 * gparam.h: added G_PARAM_READWRITE alias for (G_PARAM_READABLE |
470 2000-12-15 Tor Lillqvist <tml@iki.fi>
472 * gobject.def: Update.
474 2000-12-15 Havoc Pennington <hp@pobox.com>
476 * gobject.c (g_object_do_class_init): use g_signal_newc
478 * gsignal.c (g_signal_newc): convenience function for signals
480 (g_signal_new_valist): added
481 (g_signal_new): removed
483 Fri Dec 15 04:40:23 2000 Tim Janik <timj@gtk.org>
485 * gparam.[hc]: add an instance member value_type so the default
486 value of the pspec class can be overridden.
488 2000-12-14 Tor Lillqvist <tml@iki.fi>
490 * makefile.mingw.in: Update, include parts from Makefile.am to
491 build gmarshal.[ch]. Some day, we won't need these separate
492 makefiles for Win32 compilation. I hope.
494 * makefile.msc.in: Update. No use trying to build gmarshal.[ch]
495 here, it would require Unixish tools. MSVC users building from CVS
496 sources are out of luck.
498 * gobject.def: Update.
500 Wed Dec 13 09:31:26 2000 Tim Janik <timj@gtk.org>
502 * gparamspecs.[hc]: add G_TYPE_PARAM_BOXED implementation.
504 * gobject.[hc]: minor fixes.
506 Tue Dec 12 23:38:02 2000 Tim Janik <timj@gtk.org>
508 * Makefile.am: _never_ touch oldest-source-stamp.
510 * gobject.[hc]: construct property handling fixes/improvements.
511 fixed trailer handling in get/set property.
513 * gparam.[hc]: implement param spec pool, got rid of param spec
514 hashtable. the most prominent change is that e deal with type
517 2000-12-12 Elliot Lee <sopwith@redhat.com>
520 . You have to 'touch oldest-source-stamp' if you want to avoid having
521 the Makefile constantly rebuild itself.
522 . Fix marshaller generation rules to work with srcdir != builddir
523 (there were issues with trying to run "./glib-genmarshal", etc.)
525 Mon Dec 11 04:44:11 2000 Tim Janik <timj@gtk.org>
527 * gboxed.c: fixed dealing with collection/lcopy of NULL values.
529 * gclosure.h: removed insane ramblings, added G_CALLBACK() a casting
532 * Makefile.am: cleanups, marshaller generation rules.
534 * gmarshal.[hc]: new files with GRuntime standard marshallers.
536 * glib-genmarshal.c: fix log domain, support gruntime standard
537 marshallers, suport G_TYPE_PARAM, come with extern "C" and
540 * glib-genmarshal.1: reflect glib-genmarshal.c updates.
542 * gobject.[hc]: implement object constructor. rework parameter
543 changed notification queueing, we support queue freezes now and
544 don't dispatch from an idle handler anymore.
545 parameter->property rename hassle.
546 implemented ::properties_changed and ::notify::* signals for
547 property change notification (the later supports property names
548 as details). added signal connection and named data properties.
549 (g_signal_connect_object): new function to setup while_alive
551 (g_object_class_install_property): sink properties now, since they
552 are initially floating.
553 (g_object_steal_data):
554 (g_object_set_data_full):
556 (g_object_get_data): set/get data by using g_datalist_*() functions
558 (g_object_queue_param_changed): nuked.
559 (g_object_freeze_notify): start queueing of property changes (freeze/
561 (g_object_notify): announce changes of a certain property directly.
562 (g_object_thaw_notify): process queue of property changes, therefore
563 emitting GObject::notify::detail with detail being the changed
565 (G_OBJECT_WARN_INVALID_PROPERTY_ID): saner macro variant of former
566 G_WARN_INVALID_PARAM_ID().
568 * gparam.[hc]: param specs are now initially floating and need to be
569 sunken with g_param_spec_sink(), support G_TYPE_PARAM values.
570 added G_PARAM_CONSTRUCT and G_PARAM_CONSTRUCT_ONLY parameter flags,
571 required by GObjectClass.constructor().
573 * gparamspecs.[hc]: added GParamSpecParam, GParamSpecPointer and
574 GParamSpecCCallback, param specs for G_TYPE_PARAM, G_TYPE_POINTER
575 and G_TYPE_CCALLBACK respectively.
577 * gsignal.[hc]: cleanups.
578 (signal_id_lookup): after walking the anchestry, try interfaces as well.
579 (g_signal_new): new function to create signals from varargs type list.
580 (g_signal_connect_closure): closure connection variant that works from
582 (g_signal_connect_data): c handler connection variant that works from
584 (g_signal_emit_valist): emit signal for an instance with paraneters
585 collected from a va_list.
586 (g_signal_emit): emit signal, taking parameters from varargs list.
587 (g_signal_emit_by_name): same as g_signal_emit, working from
589 (signal_emit_R): return whether return_value needs to be altered.
591 * gtype.[hc]: set log-domain to GRuntime, i'm slowly getting to all
592 the points that need to reflect the upcoming rename.
593 melt g_type_conforms_to() functionality into g_type_is_a(), as that
594 is what we really want (liskov substitution principle).
595 assorted changes to other files due to conforms_to->is_a.
597 * gvalue.[hc]: implemented g_value_set_instance() that sets a value
598 from an instantiatable type via the value_table's collect_value()
599 function (based on an idea from James Henstridge <james@daa.com.au>).
602 * gvaluetypes.[hc]: implement G_TYPE_CCALLBACK and G_TYPE_PARAM.
604 Wed Nov 29 13:30:05 2000 Tim Janik <timj@gtk.org>
606 * gsignal.c (handlers_find): fix elliots "logic fix" that dereferences
607 NULL nodes if C handlers are searched for specific signals.
609 2000-11-28 Elliot Lee <sopwith@redhat.com>
611 * gsignal.c: Fix warnings about possible use of uninitialized
612 variables, and fix logic that would leave 'node' unset in cases
613 that it might be used in.
615 * glib-genmarshal.c: Fix warning about printf format.
617 2000-11-28 Tor Lillqvist <tml@iki.fi>
619 * gboxed.c: Include <string.h> for memset ().
621 2000-11-22 Tor Lillqvist <tml@iki.fi>
623 * gobject.def: Update.
625 2000-11-20 Havoc Pennington <hp@redhat.com>
627 * gobject.c (g_object_get_data)
629 (g_object_set_data_full)
630 (g_object_steal_data): More convenient data-setting functions
632 Wed Nov 15 20:58:05 2000 Owen Taylor <otaylor@redhat.com>
634 * gtypemodule.c (g_type_module_use): If loading the
635 module fails, don't increment the use count.
637 Thu Nov 9 01:49:43 2000 Tim Janik <timj@gtk.org>
639 * gobject.h (G_WARN_INVALID_PARAM_ID): doh,
640 s/BSE_OBJECT_TYPE_NAME/G_OBJECT_TYPE_NAME/; reported by Maas-Maarten
641 Zeeman <maas@wanadoo.nl>.
643 Mon Nov 13 00:48:39 2000 Owen Taylor <otaylor@redhat.com>
645 * Makefile.am (EXTRA_DIST): Add glib-genmarshal.1
647 2000-11-11 Tor Lillqvist <tml@iki.fi>
649 * gtypemodule.c: Include stdlib.h for exit().
651 * makefile.{mingw,msc}.in (gobject_OBJECTS): Add gtypemodule.
653 * gobject.def: Add missing functions.
655 Sun Nov 5 13:21:28 2000 Owen Taylor <otaylor@redhat.com>
657 * Makefile.am gtypemodule.[ch]: New basic implementation of
658 GTypePlugin interface as a GObject. Dynamically loaded modules can
659 register any number of types and interface on the module.
661 Sun Nov 5 10:25:40 2000 Owen Taylor <otaylor@redhat.com>
663 * gsignal.c (handlers_find): When appending handlers and
664 not matching on signal_id, use hlist->signal_id instead of
665 signal_id. Having the correct signal_id when unreffing
666 the handlers makes things work a lot better.
668 2000-11-05 Tor Lillqvist <tml@iki.fi>
670 * makefile.{mingw,msc}.in (gobject_OBJECTS): Add gtypeplugin.
672 * gobject.def: Update.
674 Sun Nov 5 05:22:55 2000 Tim Janik <timj@gtk.org>
677 fixed a bag full of subtle bugs of immensive screw-up potential in
678 handlers_find(), luckily no one found out about them yet ;)
679 fixed signal_handlers_foreach_matched_R() so it operates on an
680 initial handler list snapshot provided by handlers_find() to work
681 around general reentrancy problems and to avoid multiple callback()
682 invocations on the same handlers.
683 this code is now officially 80% bug free (10% remaining for interface
684 types, and 10% remaining for destroyed signals ;)
686 Sat Nov 4 02:01:33 2000 Tim Janik <timj@gtk.org>
688 * gsignal.c (_g_signals_destroy): valid signal nodes start out at 1.
690 * gtypeplugin.[hc]: new files holding a GTypePlugin interface
691 implementation that provides the API required by GType to deal with
692 dynamically loadable types.
694 * gtype.[hc]: displace any GTypePlugin business to gtypeplugin.h.
696 Fri Nov 3 07:35:00 2000 Tim Janik <timj@gtk.org>
698 * gsignal.[hc]: prefix internal functions with '_'. renamed
699 g_signal_connect_closure() to g_signal_connect_closure_by_id().
700 added g_signal_parse_name() to retrive signal_id and detail quark
701 from a signal name (internal).
703 Wed Nov 1 03:36:54 2000 Tim Janik <timj@gtk.org>
705 * gobject.c (g_object_base_class_finalize): destroy all signals that
706 the finalized obejct type introduced.
708 * gsignal.c (g_signals_destroy): don't require itype to have
711 * gobject.c (g_object_do_finalize): make sure all signal handlers
715 (g_signal_handler_find): only match on non-0 masks.
716 (g_signal_handlers_block_matched):
717 (g_signal_handlers_unblock_matched):
718 (g_signal_handlers_disconnect_matched): new functions to block/unblock
719 or disconnect handlers in groups.
721 2000-10-30 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
723 * gvalue.c (exchange_entries_equal), gparam.c (param_spec_equals):
724 made both functions return gboolean just for the little extra
725 standard conformance now that GEqualFunc is introduced.
727 Mon Oct 30 05:52:45 2000 Tim Janik <timj@gtk.org>
729 * gsignal.c (g_signal_list_ids): get rid of inline documentation owen
730 added, the doc system would ignore it anyways (for some reason not
733 Mon Oct 30 03:00:07 2000 Tim Janik <timj@gtk.org>
735 * gsignal.[hc] (g_signal_list_ids): renamed owen's g_type_signals(),
736 added required mutex locks.
738 Sun Oct 29 02:31:03 2000 Owen Taylor <otaylor@redhat.com>
740 * gsignal.c (g_type_signals): Fix problem where signals
741 with "_" in them appeared twice in the result array.
743 Sun Oct 29 01:58:44 2000 Owen Taylor <otaylor@redhat.com>
745 * gsignal.h: Add g_type_signals() - a function to list
746 all signals for a given type.
748 Sat Oct 28 00:28:09 2000 Tim Janik <timj@gtk.org>
750 * gclosure.c (g_closure_add_marshal_guards): fixed notifier position
751 for post_marshal guard which was off at 0.
753 Fri Oct 27 21:49:31 2000 Tim Janik <timj@gtk.org>
755 * gobject.[hc]: doh, fix argument order in for
756 g_cclosure_new_object_swap and g_cclosure_new_object.
758 2000-10-28 Tor Lillqvist <tml@iki.fi>
760 * makefile.{mingw,msc}.in: Make glib-genmarshal.exe.
762 * glib-genmarshal.c: Conditionalise include of unistd.h.
763 Include <io.h> on Win32.
765 * gobject.def: Add some missing entry points.
767 Fri Oct 27 16:33:41 2000 Tim Janik <timj@gtk.org>
769 * gsignal.[hc]: publically define GSignalInvocationHint structure
770 that gets passed in to closure invocations. added signal details.
771 renamed GSignalType to GSignalFlags to comply with conventions.
772 quite some cleanups and minor fixes. avoid uneccessary handler list
773 walks upon invokation of after handlers. relookup handler list for
774 restarted emissions. preliminary abort normal handler invokation if
775 after handler is encountered.
778 * gclosure.[hc]: moved invocation_hint to the end of the
779 g_closure_invoke() arguments as sugegsted by kenelson.
780 also made it a gpointer to be more generic. the invocation_hint
781 is a caller specific thing that can be used to pass additional
782 data in to closure invocations as documented with the caller
783 invoking the closure.
785 Fri Oct 27 05:35:14 2000 Tim Janik <timj@gtk.org>
787 * gobject.c (g_object_watch_closure): fixed realloc bug, reported
790 * gsignal.c (g_signal_newv): fixed deadlock scenarion where
791 g_signal_lookup() would be called with the signal lock being
792 held. reported by james henstridge.
794 * gclosure.c (g_closure_set_meta_marshal): fixed memcpy/overwrite bug
797 2000-10-26 Tor Lillqvist <tml@iki.fi>
799 * gbsearcharray.c (bsearch_array_insert): Fix gccisms (pointer
800 arithmetic on void pointer, label without statement following.
802 * gtype.c (type_node_fundamental_info): Don't apply unary minus to
803 result of sizeof operator, it can be unsigned. Cast first to
806 * gobject.def: Add new functions.
808 * makefile.{mingw,msc}.in: Add new objects.
810 2000-10-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
812 * Makefile.am: Remove empty SUBDIRS line _again_, as that _still_
813 prevents 'make dist' from working.
815 Wed Oct 25 19:11:03 2000 Owen Taylor <otaylor@redhat.com>
817 * gbsearcharray.h (g_bsearch_array_get_nth): Don't use implicit
818 casts from void * since this will get included from C++ too
821 Thu Oct 26 00:30:27 2000 Tim Janik <timj@gtk.org>
823 * gvaluetypes.[hc]: added g_value_set_static_string().
825 * gboxed.[hc]: const corrections. added g_value_set_static_boxed().
827 Wed Oct 25 20:27:02 2000 Tim Janik <timj@gtk.org>
829 * gtype.c (g_type_free_instance): for the moment, freeing object
830 structures will fill their memory portion with 0xAA. there's a
831 FIXME there, remove this line at a later point.
833 Tue Oct 24 23:10:26 2000 Tim Janik <timj@gtk.org>
836 * glib-genmarshal.c: added publically installed marshaller generator.
838 * gtype.h: added G_TYPE_INSTANCE_GET_INTERFACE() to retrive a certain
839 interface VTable from instances.
841 Mon Oct 23 08:28:15 2000 Tim Janik <timj@gtk.org>
843 * gobject.[hc]: new functions for closure maintenance:
844 (g_object_watch_closure): maintain validity of the object and
845 the closure for objects that are used as data part of a closure.
846 (g_cclosure_new_object): convenience function to create C closures
847 that have an object as data argument.
848 (g_closure_new_object): convenience function to create closures
849 that have an object as data argument.
851 * gclosure.[hc]: implementation of GClosure mechanism.
852 a closure is basically an encapsulation of a callback function
853 and its environment. ideally, most places supporting callback
854 functions will simply take a GClosure* pointer and thus unify
855 callback environments wrg destroy notification etc.
856 GClosure provides destroy notifiers for arbitrary data pointers,
857 reference counting, invalidation notification (it can be invalidated
858 which is merely a deactivate state) and a marshallinbg abstraction.
859 GCClosure is also provided in these files, they present a specialized
860 GClosure implementation for C language callbacks.
862 * genum.c: macro cleanups.
864 * gboxed.[hc]: new files, for boxed type abstraction.
865 (g_boxed_copy): copy a boxed structure
866 (g_boxed_free): free a boxed structure
868 (g_value_get_boxed): standard GValue functions for boxed types
869 (g_boxed_type_register_static): convenience function for easy
870 introduction of new G_TYPE_BOXED derivatives.
872 * gparam.[hc]: introduced g_param_type_register_static(), a short hand
873 for creation of new GParamSpec derived types.
875 * gtype.[hc]: many fixes, introduced ability to flag individual
876 type nodes as ABSTRACT upon registration, added value_peek_pointer()
877 to the value table to peek at GValue contents as a pointer for types
878 that support this. fixed up GValue checks.
880 * gvalue.[hc]: added g_value_fits_pointer() and g_value_get_as_pointer()
881 to peek at the value contents as pointer.
883 * *.[hc]: adaptions to type macro fixes and changes in the type
886 * many const corrections over the place.
888 Sat Oct 21 02:49:56 2000 Tim Janik <timj@gtk.org>
890 * gtype.c (g_type_conforms_to): this function basically behaves like
891 and is_a check, except that it _additionally_ features interfaces
892 for instantiatable types. enforce this in the second branch as well
893 (`type' conforms_to `type') even if `type' is not an interface type.
895 Fri Oct 20 15:31:04 2000 Tim Janik <timj@gtk.org>
897 * gvaluetypes.[hc]: added G_TYPE_POINTER implementation from jrb.
901 * gvaluetypes.c: added GTypeValueTable.value_peek_pointer and
902 suitable implementations of this for G_TYPE_STRING, G_TYPE_OBJECT
905 Mon Aug 21 04:13:37 2000 Tim Janik <timj@gtk.org>
907 * gbsearcharray.[hc]: long standing needed generic implementation
908 of a binary searchable, sorted and dynamically sized array.
910 2000-10-15 Raja R Harinath <harinath@cs.umn.edu>
912 * Makefile.am (BUILT_EXTRA_DIST): New variable.
913 (dist-hook): Handle $(BUILT_EXTRA_DIST).
914 (*): Remove traces of @STRIP_{BEGIN,END}@.
916 2000-09-29 Martin Baulig <baulig@suse.de>
918 Several minor ANSI C fixes.
921 * gtype.c (type_class_init):
922 `(gpointer) bnode->data->class.class_init_base'
923 in call to g_slist_prepend() and
924 'GBaseInitFunc class_init_base = (GBaseInitFunc) slist->data'.
926 * gobject.c: Put text following #endif into comments.
928 2000-09-25 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
930 * Makefile.am: Remove empty SUBDIRS line, as that prevents make
933 Sat Sep 9 20:04:13 2000 Owen Taylor <otaylor@redhat.com>
935 * gobject.c (g_object_last_unref): Move call to
936 g_type_free_instance() here from g_object_do_finalize,
937 since g_type_free_instance() can unload the object's
940 2000-07-27 Tor Lillqvist <tml@iki.fi>
942 * gobject.c: No, don't mark glib_debug_objects for export here,
943 it's handled specially in gtktypeutils.c.
945 * gobject.def: Export g_type_fundamental_last (the function).
947 2000-07-26 Tor Lillqvist <tml@iki.fi>
950 * gobject.c: Mark glib_debug_objects for export/import as it is
953 Sun Jul 23 17:23:35 2000 Tim Janik <timj@gtk.org>
955 * gtype.[hc]: make g_type_fundamental_last() a function, avoiding all
956 that extern variable clutter and avoiding further problems with thread
959 2000-07-19 Tor Lillqvist <tml@iki.fi>
964 * gtype.c: Shut up Sun's picky compiler.
966 2000-07-14 Tor Lillqvist <tml@iki.fi>
968 * gobject.def: Add g_type_get_plugin.
970 Thu Jul 13 02:07:54 2000 Tim Janik <timj@gtk.org>
972 * gparam.c (g_param_value_defaults): default initialize the temporary
973 default value, instead of nuking the caller's value contents.
975 2000-07-11 Raja R Harinath <harinath@cs.umn.edu>
977 * gtype.c (g_type_get_plugin): Don't return just 0 or 1.
979 Tue Jul 11 02:48:13 2000 Tim Janik <timj@gtk.org>
981 * gtype.[hc]: removed g_type_is_dynamic() and added g_type_get_plugin().
983 2000-07-10 Tor Lillqvist <tml@iki.fi>
985 * gobject-query.c: Include ../config.h for HAVE_UNISTD_H. Use it
986 to guard inclusion of <unistd.h>.
988 * gtype.h: Fix copy-paste errors in the ifdefs on how to declare a
989 variable for export. Call the macro GOBJECT_VAR.
991 * gtype.c: Declare _g_type_fundamental_last for export here, too.
992 (type_node_any_new): Use only constant expressions for sizeof
993 operator (for instance MSVC requires this).
995 * makefile.mingw.in: Define GOBJECT_COMPILATION.
997 Sun Jul 9 21:21:46 2000 Owen Taylor <otaylor@redhat.com>
999 * genums.c: Move string.h include into the .c file
1000 instead of where it was in the .h file by mistake.
1002 Thu Jul 6 15:30:27 2000 Owen Taylor <otaylor@redhat.com>
1004 * Makefile.am (EXTRA_DIST): dist fixes.
1006 * gobject.c: Add a global variable glib_debug_objects
1007 (not in header file) to control object tracing.
1009 2000-07-01 Tor Lillqvist <tml@iki.fi>
1011 * gobject.def: Update added and renamed entry points.
1013 * makefile.mingw.in: Add gvaluetypes.o.
1015 Thu Jun 29 16:02:07 2000 Owen Taylor <otaylor@redhat.com>
1017 * gobject.c:include string.h for memset
1018 * genums.h: include string.h for strcpy
1019 * gvalue.c: include string.h for memset, memcpy.
1021 Sat Jun 24 23:03:04 2000 Tim Janik <timj@gtk.org>
1023 * gtype.[hc]: provide G_TYPE_CHAR, G_TYPE_UCHAR, G_TYPE_BOOLEAN,
1024 G_TYPE_INT, G_TYPE_UINT, G_TYPE_LONG, G_TYPE_ULONG, G_TYPE_FLOAT,
1025 G_TYPE_DOUBLE and G_TYPE_STRING fundamental types.
1026 added a GTypeValueTable* pointer to GTypeInfo structure for types
1027 to implement GValue handling functions.
1028 GTypeValueTable contains the following members:
1029 value_init(): initialize a GValue structure.
1030 value_free(): free GValue structure contents (optional).
1031 value_copy(): copy one GValue contents to another GValue structure of
1032 collect_type: varargs collection type for the first variable argument
1033 to be collected by collect_value().
1034 collect_value(): variable arguments collection function (optional).
1035 lcopy_type: varargs collection type for the first variable argument
1036 to be location copyied by lcopy_value().
1037 lcopy_value(): variable arguments location copy function (optional).
1038 g_type_value_table_peek(): new function to retrive the GTypeValueTable*
1039 for a type node. ValueTables get inherited from parent types, unless
1040 overridden through the GTypeInfo structure. internally, GTypeValueTable
1041 support means an added overhead of one pointer per static or used
1043 g_type_add_class_cache_func(): provide a cache_func/data pair to be
1044 called prior to a type nodes last_unref() function, this can be used
1045 to prevent premature class destruction. multiple installed cache_func()
1046 will be chained upon last_unref() untill one of them returns TRUE.
1047 the cache_func()s have to check the class id passed in to figure whether
1048 they actually want to cache the class of this type (since all classes
1049 are routed through the cache_func() chain).
1050 g_type_remove_class_cache_func(): remove a previously installed
1051 cache_func/data pair. the cache maintained by this function has to be
1052 clear when calling g_type_remove_class_cache_func() to avoid leaks.
1053 g_type_class_unref_uncached(): class unref function for cache_func()
1054 implementations, unreferences a class omitting the cache chain (and
1055 therefore unref->cache->unref->... loops).
1057 * gvaluetypes.[hc]: provide the value setters/getters for the primitive
1058 fundamental types boolean, char, uchar, int, uint, long, ulong, float,
1061 * gvalue.[hc]: provide G_TYPE_IS_VALUE() in terms of whether a
1062 GTypeValueTable is provided for this type.
1063 removed g_value_init_default(), g_value_validate(), g_value_defaults(),
1064 g_value_set_default() and g_values_cmp() as these are supplied by the
1066 moved g_values_exchange() into the "implementation details" section,
1067 since it just provides the underlying functionality for
1070 * gvaluecollector.h: renamed the varargs value container from
1071 GParamCValue to GTypeCValue as the value collection methods are
1072 supplied by the type system now.
1073 G_PARAM_COLLECT_VALUE() and G_PARAM_LCOPY_VALUE() got renamed to
1074 G_VALUE_COLLECT() and G_VALUE_LCOPY() and operate without a
1075 GParamSpec structure now.
1077 * genums.h: macros cleanups/fixes.
1079 * genum.c: provide G_TYPE_ENUM and G_TYPE_FLAGS type
1080 and assorted g_value_{s|g}et_{enum|flags}() implementations.
1083 provide G_IS_VALUE_OBJECT(), G_TYPE_OBJECT ValueTable methods
1084 and g_value_{s|g}et_object().
1086 * gparam.[hc]: reduced class to value_set_default(),
1087 value_validate() and values_cmp(). also parameters now need to fill
1088 in a GType value_type; field to indicate the GValue type they
1089 are handling. provide g_param_value_set_default(),
1090 g_param_value_defaults(), g_param_value_validate() and
1091 g_param_values_cmp().
1093 * gparamspecs.[hc]: got rid of the g_value_* functions and
1094 the G_IS_VALUE_* macros. adapted param spec implementations
1095 according to the GParamSpecClass changes.
1097 Sat Jun 10 08:38:27 2000 Tim Janik <timj@gtk.org>
1099 * gtype.c (type_class_init): fetch the nth iface entry of the
1100 type node in the nth loop iteration, not alwys the first.
1101 bug discovered by Walt Pohl <cher@suitware.com>.
1102 (type_data_finalize_class_ifaces): same here, cut and paste
1105 Wed Jun 7 09:21:05 2000 Owen Taylor <otaylor@redhat.com>
1107 * Makefile.am (INCLUDES): Add top_builddir so glibconfig.h
1108 is found properly when build srcdir != builddir. (Patch from
1111 2000-05-13 Tor Lillqvist <tml@iki.fi>
1115 * gobject.rc.in: New files, for Win32 (mingw) build.
1117 * Makefile.am: Add to EXTRA_DIST. Add rules to produce the
1118 corresponding non-*.in files.
1120 * gtype.h: (Win32:) Mark _g_type_fundamental_last for
1121 export/import from DLL.
1123 Fri May 5 01:15:48 2000 Tim Janik <timj@gtk.org>
1125 * gtype.h: add reserved fundamental ids for gtk types (for transition
1126 time). added G_TYPE_FUNDAMENTAL_MAX for gtk.
1128 Mon Apr 17 20:45:50 2000 Tim Janik <timj@gtk.org>
1130 * glib-gobject.c (g_object_base_class_finalize): oops, don't unset
1131 n_params prior to destructing them.
1133 Tue Apr 11 04:28:10 2000 Tim Janik <timj@gtk.org>
1135 * fixed a couple of bugs in the initial parameter/object
1136 implementations, after getting beast running on GObject and GValue.
1138 Fri Apr 7 04:27:49 2000 Tim Janik <timj@gtk.org>
1140 * glib-gobject.[hc]: completed parameter set/get implementations,
1141 along with asyncronous parameter changed notification queue.
1143 Sun Apr 2 04:54:36 2000 Tim Janik <timj@gtk.org>
1145 * glib-gobject.[hc]: GObject implementation, that is facilities
1146 for setting/getting quarked data and reference counting.
1148 * glib-gparamspecs.[hc]: first actuall parameter implementations
1149 for GLib, so far we have: char, uchar, bool, int, uint, long,
1150 ulong, enum, flags, float, double, string and object. each of these
1151 GParamSpecs is a new instantiatable type in its own respect,
1152 so the .c file derives 13 new types from G_TYPE_PARAM and
1153 defines over 50 (*2) conversion facilities.
1155 * glib-gvaluecollector.h: generic varargs handling stubs for
1156 GParamSpecs, private header file (does get installed for
1157 inclusion into user code though).
1159 * glib-gvalue.[hc]: GValue functionality implementation.
1161 * glib-gparam.[hc]: basis GParamSpec implementation for
1162 the virtual base type G_TYPE_PARAM.
1164 * glib-genums.[hc]: enum/flags type implementation, based on
1167 * glib-gtype.[hc]: GLib Type System implementation, heavily
1168 based on BSE's dynamic type system.