handle galiasdef.c (although completely useless for msvc build)
[platform/upstream/glib.git] / gobject / ChangeLog
1 2005-03-18  Hans Breuer  <hans@breuer.org>
2
3         * makefile.msc.in : handle gobjectaliasdef.c
4
5 2005-03-14  Matthias Clasen  <mclasen@redhat.com>
6
7         Make PLT-reduction work with gcc4, and don't include
8         everything in gobjectalias.h:
9         
10         * gobject.symbols: Group symbols by header and source 
11         file.
12         * makegobjectalias.pl: Protect definitions by the same 
13         preprocessor symbols used to guard the headers. Move
14         the alias declarations to a separate file which is 
15         produced when calling makegalias.pl -def
16         * Makefile.am (gobjectaliasdef.c): Add a rule to 
17         build this file.
18         * *.c: Include gobjectalias.h after the other i
19         GLib headers, include gobjectaliasdef.c at the bottom.
20
21 2005-03-08  Matthias Clasen  <mclasen@redhat.com>
22
23         * gobject.symbols: Add the new attributes here, too.
24
25         * gobject.h: Use G_GNUC_NULL_TERMINATED where
26         appropriate.  (#164706, Marc Meissner)
27
28         * gvaluearray.h: Small cleanup (use G_BEGIN/END_DECLS).
29         (#168474, Fabricio Barros Cabral)
30
31 2005-02-24  Tor Lillqvist  <tml@novell.com>
32
33         * Makefile.am (EXTRA_DIST): Don't distribute
34         gobject.def. (#167496, J. Ali Harlow)
35
36 Sun Feb  6 22:00:46 2005  Manish Singh  <yosh@gimp.org>
37
38         * abicheck.sh: feed the contents of config.h and glibconfig.h
39         into the preprocessor, since glib.symbols could need #defines
40         from them.
41
42 2005-01-12  Matthias Clasen  <mclasen@redhat.com>
43
44         Cosmetic fixes (#163792, BenoĆ®t Carpentier):
45         
46         * gobject-query.c (main): Remove duplicate lines.
47
48         * gvaluetransform.c: Remove duplicate definitions of
49         value_transform_[u]int64_[u]int64.
50
51 2005-01-07  Matthias Clasen  <mclasen@redhat.com>
52
53         * === Released 2.6.1 ===
54
55 2004-12-27  Matthias Clasen  <mclasen@redhat.com>
56
57         * Makefile.am: Only check the ABI on linux, since
58         the shell script is not portable.  (#161734, Adrian Bunk)
59
60 2004-12-16  Matthias Clasen  <mclasen@redhat.com>
61
62         * === Released 2.6.0 ===
63         
64 2004-12-02  Matthias Clasen  <mclasen@redhat.com>
65
66         * === Released 2.5.7 ===
67         
68 2004-11-30  Tor Lillqvist  <tml@iki.fi>
69
70         * Makefile.am (gobject.def): gcc -E complains "linker input file
71         unused because linking not done" if told to preprocess the
72         gobject.symbols file. Use '-' and redirection to pass it as
73         standard input instead.
74
75 Sun Nov 28 13:21:12 2004  Manish Singh  <yosh@gimp.org>
76
77         * abicheck.sh: filter G_GNUC before PRIVATE so $ is still true.
78
79 Sun Nov 28 01:37:54 2004    <timj@birnet.org>
80
81         * gsignal.c: applied patch by sven@gimp.org (#153727) to reduce
82         signal connection complexity from O(n_handlers) to O(1).
83
84 Thu Nov 25 14:09:41 2004  Manish Singh  <yosh@gimp.org>
85
86         * abicheck.sh: filter out G_GNUC stuff when doing the compare.
87
88 2004-11-23  Matthias Clasen  <mclasen@redhat.com>
89
90         * gobject.symbols: Typo fix.
91
92         Fix a problem with the PLT reduction changes which caused the
93         internal aliases to lose all attributes.
94         
95         * gobject.symbols: Add attribute annotations.
96         * makegobjectalias.pl: Keep attribute annotations, but strip PRIVATE.
97         * Makefile.am (gobject.def): Strip attribute annotations, but keep 
98         PRIVATE.
99
100         * gtypemodule.h (g_type_module_get_type): Mark as const,
101         like all other get_type() functions.
102
103 2004-11-12  Matthias Clasen  <mclasen@redhat.com>
104
105         * === Released 2.5.6 ===
106         
107 Mon Nov  8 10:47:41 2004  Manish Singh  <yosh@gimp.org>
108
109         * gobject/gsourceclosure.c: removed wrap_g_io_channel_ref() hack,
110         since g_io_channel_ref() has a compatible API now.
111
112 2004-11-02  Matthias Clasen  <mclasen@redhat.com>
113
114         * === Released 2.5.5 ===
115
116 2004-10-27 Matthias Clasen  <mclasen@redhat.com>
117
118         * === Released 2.5.4 ===
119
120 2004-10-27  Matthias Clasen  <mclasen@redhat.com>
121
122         * abicheck.sh: Strip Win32 specific defs file syntax.
123
124         * Makefile.am (gobjectalias.h): Fix srcdir != builddir 
125         builds.  (#156447, Thomas Fitzsimmons)
126
127 2004-10-26  Matthias Clasen  <mclasen@redhat.com>
128
129         * abicheck.sh: Don't include symbols which are just in the 
130         symbols list for .defs file compatibility.
131
132 2004-10-23  Matthias Clasen  <mclasen@redhat.com>
133
134         * gtype.h (GTypeInterfaceCheckFunc): Rename first parameter to 
135         check_data, since apparently the system headers on AIX leak a
136         macro named func_data.  (#155178, Andrea Campi)
137
138 Wed Oct  6 02:12:44 2004    <timj@birnet.org>
139
140         * gtype.c (g_type_instance_get_private): applied patch from Jean-Yves 
141         Lefort <jylefort@brutele.be> to not access the instance_real_class_bsa
142         pointer without holding the instance_real_class lock.
143
144 2004-10-04  Matthias Clasen  <mclasen@redhat.com>
145
146         * gsignal.c (g_signal_add_emission_hook): Improve the warning 
147         if G_SIGNAL_NO_HOOKS is set.  (#154299, Nickolay V. Shmyrev)
148
149 2004-09-22  Tor Lillqvist  <tml@iki.fi>
150
151         * Makefile.am (install-libtool-import-lib): [Win32] Add code to
152         remove the bug-compatibility entries (see #134813, and related
153         comments below) from the import library. The PRIVATE keyword in
154         the .def file is supposed to mean that, but it isn't implemented
155         yet by GNU ld.
156
157         * makegobjectalias.pl: In case the symbol is followed by some
158         stuff ("PRIVATE") that's intended for the .def file, use just the
159         actual symbol.
160
161         * gobject.symbols: For binary bug compatibility on Win32, add the
162         g_slist_remove_all and g_unichar_validate symbols inside #ifdef
163         INCLUDE_INTERNAL_SYMBOLS. (See #134813 and log entries from March
164         below.)
165
166 2004-09-18 Matthias Clasen  <mclasen@redhat.com>
167
168         * === Released 2.5.3 ===
169
170 Thu Sep 16 18:42:46 2004  Manish Singh  <yosh@gimp.org>
171
172         * abicheck.sh: don't hardcode lengths for cut, instead split on
173         the third field.
174
175 2004-09-16  Matthias Clasen  <mclasen@redhat.com>
176
177         Implement the same PLT reduction technique used in GTK+:
178
179         * Makefile.am: Generate gobjectalias.h from gobject.symbols.
180         (BUILT_SOURCES): Add gobjectalias.h.
181
182         * makegobjectalias.pl: Script to generate gobjectalias.h.
183
184         * *.c: Include gobjectalias.h
185
186 2004-09-16  Matthias Clasen  <mclasen@redhat.com>
187
188         Add ABI control using the same technique that is used in GTK+.
189         
190         * gobject.symbols: Master list of symbols.
191
192         * gobject.def: Removed. It is now generated from gobject.symbols.
193
194         * Makefile.am: Generate gobject.def from gobject.symbols.
195         (TESTS): Add abicheck.sh
196         (EXTRA_DIST): Add abicheck.sh
197         (export_symbols): Don't export _-prefixed symbols.
198
199         * gtype.h: 
200         * gtype.c: Move the declarations of the various _init() functions
201         to the header, and mark them as G_GNUC_INTERNAL.
202
203 2004-08-25 Matthias Clasen  <mclasen@redhat.com>
204
205         * === Released 2.5.2 ===
206
207 2004-08-01 Matthias Clasen  <mclasen@redhat.com>
208
209         * === Released 2.5.1 ===
210
211 2004-07-28  Matthias Clasen  <mclasen@redhat.com>
212
213         * gtype.c (g_type_instance_get_private): Catch cases of 
214         forgotten g_type_add_private().  (#148368, Tommi Komulainen) 
215
216 2004-07-21  Matthias Clasen  <mclasen@redhat.com>
217
218         * glib-genmarshal.c (put_marshal_value_getters): Use the 
219         correct fields for enums and flags.  (#145015, Tommi Komulainen) 
220
221 Sun Jul 18 18:03:08 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
222
223         * === Released 2.5.0 ===
224
225 2004-07-12  Matthias Clasen  <mclasen@redhat.com>
226
227         * gsignal.c (g_signal_handler_is_connected): Don't
228         choke on a zero handler_id.
229
230 Tue Jul  6 00:46:43 2004  Matthias Clasen  <maclas@gmx.de>
231
232         * gtypemodule.h: 
233         * gtypemodule.c: Fix the declarations of the new 
234         functions to return GType, not void. 
235         Also add missing includes.  (#145508, Morten Welinder)
236
237 Tue Jul  6 00:46:43 2004  Matthias Clasen  <maclas@gmx.de>
238
239         * gtypemodule.h: 
240         * gtypemodule.c (g_type_module_register_flags): 
241         * gtypemodule.c (g_type_module_register_enum): New 
242         functions to register enum and flags types from a 
243         GTypeModule.  (#145396, Sven Neumann)
244
245 Wed Jun 23 12:55:34 2004  Matthias Clasen  <maclas@gmx.de>
246
247         * gtype.h (G_DEFINE_TYPE_EXTENDED): Add an initializer for
248         the g_define_type_info.value_table.  (#144678, Mariano 
249         SuĆ”rez-Alvarez) 
250
251 Tue Jun 22 21:50:47 2004  Matthias Clasen  <maclas@gmx.de>
252
253         * gsignal.c: Fix a couple of typos.
254
255 Fri Jun 18 22:53:13 2004  Matthias Clasen  <maclas@gmx.de>
256
257         * gsourceclosure.h (__G_SOURCECLOSURE_H__): Actually 
258         define the guard after checking for it.  (#108038, 
259         Morten Welinder)
260
261 2004-04-30  Matthias Clasen  <mclasen@redhat.com>
262
263         * === Released 2.4.1 ===
264
265 2004-04-22  Matthias Clasen  <mclasen@redhat.com>
266
267         * glib-mkenums.in: Actually convert escape chars in 
268         --vprod.   (#139058, Christophe Saout)
269
270 2004-04-15  Matthias Clasen  <mclasen@redhat.com>
271
272         * gparamspecs.c (param_float_init): Correct the initial 
273         minimal value to be -G_MAXFLOAT. The initial values were 
274         inconsistant before, with the initial default being smaller 
275         than the inital minimum.        
276         (param_double_init): Correct the initial minimal value 
277         to be -G_MAXDOUBLE.
278
279 Tue Mar  9 09:16:11 2004  Owen Taylor  <otaylor@redhat.com>
280
281         * === Released 2.4.0 ===
282
283 2004-03-10  Tor Lillqvist  <tml@iki.fi>
284
285         * gobject.def: Mark the two entries that shouldn't be in the
286         import library (see below) as PRIVATE.
287
288 Tue Mar  9 09:16:11 2004  Owen Taylor  <otaylor@redhat.com>
289
290         * === Released 2.3.6 ===
291
292 2004-03-04  Tor Lillqvist  <tml@iki.fi>
293
294         * gobject.def: Another of the glib DLL's functions was erronously
295         present in the stable branch's gobject.def: g_unichar_validate,
296         and nobody noticed until too late. Thus there are applications
297         deployed that expect it to be found in the gobject DLL, and to
298         keep ABI compatibility, we must keep it there forever. Argh.
299
300 Mon Mar  1 16:49:51 2004  Owen Taylor  <otaylor@redhat.com>
301
302         * === Released 2.3.5 ===
303
304 2004-03-01  Tor Lillqvist  <tml@iki.fi>
305
306         * gobject.def: Add g_slist_remove_all back for ABI
307         compatibility. That entry point actually is in the glib DLL, but
308         it was at some time many years ago by mistake added to
309         gobject.def. Thus there presumably are executables out there that
310         expect it to be exported from the gobject DLL. We don't want to
311         break those. (#134813, J. Ali Harlow)
312
313 Fri Feb 27 01:49:22 2004  Matthias Clasen  <maclas@gmx.de>
314
315         * glib-mkenums.in: Support parsing of intializers containing
316         macros with arguments.  (#129717)
317
318 2003-02-28  Hans Breuer  <hans@breuer.org>
319
320         * gobject.def : added g_strv_get_type
321
322 Tue Feb 24 14:09:21 2004  Owen Taylor  <otaylor@redhat.com>
323
324         * === Released 2.3.3 ===
325
326 Fri Feb 20 02:44:54 2004  Tim Janik  <timj@gtk.org>
327
328         * gtype.h (G_DEFINE_TYPE_EXTENDED): added (GTypeFlags) cast needed by C++.
329
330 Tue Feb  3 21:24:01 2004  Tim Janik  <timj@gtk.org>
331
332         * gtype.h (_G_TYPE_CVH): provide a short-cut version for
333         this macro in case value->g_type==checked_type for gcc, similar
334         to instance and class check short-cuts. this speeds up code that
335         makes frequent use of G_VALUE_HOLDS_*() (e.g. setters/getters).
336
337         * gtype.c (type_data_last_unref_Wm): don't call class-cache functions
338         for the uncached case, this rendered g_type_class_unref_uncached()
339         useless. pointed out by Stefan Westerfeld.
340
341 Sat Jan 24 18:20:13 2004  Tim Janik  <timj@gtk.org>
342
343         * gtype.h: prefixed the parent_class variable defined by G_DEFINE_TYPE()
344         with type_name. removed type_parent_class argument
345         from G_DEFINE_TYPE_EXTENDED().
346
347 2004-01-24  Tor Lillqvist  <tml@iki.fi>
348
349         * gobject.def: Add a missing entry.
350
351 Sun Jan 11 15:34:35 2004  Manish Singh  <yosh@gimp.org>
352
353         * gsourceclosure.c: wrap g_io_channel_ref in a function that returns
354         the passed in GIOChannel, so we aren't abusing GBoxedCopyFunc
355         semantics. Fixes bug #131076.
356
357 Sat Jan 10 23:55:42 2004  Matthias Clasen  <maclas@gmx.de>
358
359         * glib-mkenums.1: Document the lowercase_name trigraph option.
360
361 Sat Jan 10 02:43:20 2004  Tim Janik  <timj@gtk.org>
362
363         * gtype.h: made G_DEFINE_TYPE_INTERNAL() public by renaming it to
364         G_DEFINE_TYPE_EXTENDED() and moving it into the appropriate section.
365
366 Fri Jan  9 23:41:00 2004  Matthias Clasen  <maclas@gmx.de>
367
368         * gboxed.h:
369         * gboxed.c (g_strv_get_type): Add a boxed type for nul-terminated
370         string arrays.  (#110528)
371
372 Fri Jan  9 15:34:15 2004  Tim Janik  <timj@gtk.org>
373
374         * gtype.h: added convenience macros G_IMPLEMENT_INTERFACE() and
375         G_DEFINE_TYPE() plus variants.
376
377 Fri Dec 26 01:34:01 2003  Matthias Clasen  <maclas@gmx.de>
378
379         * gtype.c (g_type_class_peek_parent): Don't acquire a read lock 
380         here.  (#106433, Owen Taylor)
381
382 Wed Dec 17 23:29:17 2003  Matthias Clasen  <maclas@gmx.de>
383
384         * gvalue.c (g_value_peek_pointer): Use g_assert() instead of
385         g_return_val_if_fail(), suggested by Sheldon Simms.
386
387 2003-12-13  Hans Breuer  <hans@breuer.org>
388
389         gobject.def : update externals
390
391 Sat Nov 29 14:57:20 2003  Tim Janik  <timj@gtk.org>
392
393         * gobject.c: fix g_object_set() within _init() implementations
394         not working for construct-only properties.
395         (g_object_init): make the object enter a construct_objects list.
396         (g_object_newv): remove object from construct_objects after creation.
397         (g_object_set_valist):
398         (g_object_set_property): allow construct-only properties for
399         objects which are in construct_objects.
400
401 Thu Nov 27 17:53:52 2003  Tim Janik  <timj@gtk.org>
402
403         * gtype.[hc]:
404         (g_type_class_peek_static): variant of class_peek() which works for
405         static types only.
406
407         * gobject.c:
408         (g_object_do_class_init): make ::notify a run-action signal.
409         (g_object_newv): use g_type_class_peek_static() by default to
410         speed up common code path (trades two write-locks for one read-lock).
411         (g_object_disconnect):
412         (g_object_connect): allow signal specification words to be
413         seperated by '-'.
414         (g_object_set_valist):
415         (g_object_new_valist): don't leak values.
416         (g_object_get_property): check property for readability.
417         (g_object_set_property): check property for writability and to
418         not be construct-only.
419         (g_object_set_valist): check property to not be construct-only.
420
421 Sat Oct 25 01:09:17 2003  Matthias Clasen  <maclas@gmx.de>
422
423         * gparam.h (struct _GParamSpecClass): Add /*< private >*/ 
424         marker for documentation purposes.
425
426 Tue Oct 21 23:17:06 2003  Matthias Clasen  <maclas@gmx.de>
427
428         * genums.h (struct _GEnumClass): 
429         * genums.h (struct _GFlagsClass): 
430         * gtypemodule.h (struct _GTypeModuleClass):
431         * gtypemodule.h (struct _GTypeModule): Add /*< public >*/ 
432         and /*< private >*/ markers for documentation purposes.
433
434 Tue Oct 14 17:40:19 2003  Owen Taylor  <otaylor@redhat.com>
435
436         * gparamspecs.[ch]: Add a new GParamSpecOverride type
437         that is a pointer to a different paramspec in a parent
438         class or interface.
439
440         * gparam.[ch]: Add g_paramspec_get_redirect_target()
441         which follows GParamSpecOverride to the real property.
442         Make g_param_spec_pool_list() hand redirections, 
443         properties on interfaces.
444
445         * gobject.[ch] gobjectnotifyqueue.c: Add
446         g_object_interface_install_property,
447         g_object_interface_find_property,
448         g_object_interface_list_properties(). Redirect virtually all
449         publically exposed GParamSpec's to the redirect target if
450         any. (->constructor is the exception.)
451         (#105894)
452
453 Mon Oct 20 22:06:12 2003  Matthias Clasen  <maclas@gmx.de>
454
455         * gobject.h (struct  _GObjectClass): Add /*< public >*/
456         and /*< private >*/ markers for documentation purposes.
457
458 Sat Oct 18 01:24:14 2003  Matthias Clasen  <maclas@gmx.de>
459
460         * gtypeplugin.h (struct _GTypePluginClass): Add /*< public >*/
461         and /*< private >*/ markers for documentation purposes.
462
463 Thu Oct  2 07:37:12 2003  Tim Janik  <timj@gtk.org>
464
465         * gtype.c: fix post class_init interface initialization logic
466         for child types.
467
468 Thu Oct  2 01:16:50 2003  Owen Taylor  <otaylor@redhat.com>
469
470         * gtype.[ch]: Add g_type_add/remove_interface_check(),
471         which allows inserting a post-interface-initialization
472         check.
473
474         * testgobject.c: Fix a deprecated usage.
475
476 Mon Sep 29 10:51:01 2003  Owen Taylor  <otaylor@redhat.com>
477
478         * gtype.[ch]: Add g_type_default_interface_ref/peek/unref
479         for accessing the default vtable of an interface.
480
481 Fri Sep 26 17:24:53 2003  Owen Taylor  <otaylor@redhat.com>
482
483         * gtype.c (g_type_instance_get_private): You can
484         have instance_real_class_bsa be non-NULL, but still 
485         the class not be in the bsa. (Found by Kris Rietveld)
486
487 2003-09-15  Matthias Clasen  <maclas@gmx.de>
488
489         * glib-genmarshal.c (complete_out_arg): Don't generate code 
490         using deprecated APIs.  (#122292, Christian Persch)
491
492 Fri Sep 12 16:31:40 2003  Owen Taylor  <otaylor@redhat.com>
493
494         * gsignal.[ch]: Add g_signal_accumulator_true_handled(), to
495         do TRUE-stops-emit signals. (#80487, Ron Steinke)
496
497         * Makefile.am: Move testoverride.c and testifaceinit.c to
498         tests/gobject.
499
500 2003-09-12  Matthias Clasen  <maclas@gmx.de>
501
502         Make the g_value_set_x_take_ownership() functions "official"
503         part of the API (#100948):
504         
505         * gvaluetypes.[hc]: Add g_value_take_string() (synonym to the
506         now deprecated g_value_set_string_take_ownership()).  
507
508         * gparam.[hc]: Add g_value_take_param() (synonym to the
509         now deprecated g_value_set_param_take_ownership()).  
510
511         * gobject.[hc]: Add g_value_take_object() (synonym to the
512         now deprecated g_value_set_object_take_ownership()).  
513
514         * gboxed.[hc]: Add g_value_take_boxed() (synonym to the
515         now deprecated g_value_set_boxed_take_ownership()).  
516
517 Tue Sep  2 19:37:21 2003  Tim Janik  <timj@gtk.org>
518
519         * gtype.[hc]: added support for a "default vtable" per interface,
520         that interface vtables are initialized from.
521         the default vtable is initialized and finalized through class_init,
522         class_finalize and class_data from the interfaces GTypeInfo struct.
523         (type_data_last_unref_Wm): unload child plugin before unreffing
524         parent type.
525
526         testifaceinit.c: minor fixups. fixed up base_init() assertions, since
527         with a default vtable, base_init() may be called multiple times.
528         added default initializer to iface1.
529
530 Tue Sep  2 14:53:41 2003  Tim Janik  <timj@gtk.org>
531
532         * gobject-query.c (main): fix iterating over fundamental types.
533
534         * gtype.c: applied patch from owen which keeps internal
535         class initialization state to maintain class and interface
536         initialization happen in the order of:
537         1. class' base_init
538         2. interface' base_init
539         =  interfaces added after here are immediately base_init-ialized
540         3. class_init
541         4. Interface_init
542         =  interfaces added here are immediately Interface_init-ialized
543
544 Wed Aug 27 19:53:26 2003  Manish Singh  <yosh@gimp.org>
545
546         * gobject.c: removed stray change from previous commit.
547
548 Wed Aug 27 01:25:40 2003  Owen Taylor  <otaylor@redhat.com>
549
550         * Makefile.am testifaceinit.c: Add a detailed test case
551         for interface initialization, testing the ability to
552         add interfaces during class initialization and the ordering
553         of interface base_init, class init, and interface_init.
554         (Expected to fail at the moment.)
555
556 Mon Aug 25 14:51:46 2003  Manish Singh  <yosh@gimp.org>
557
558         * gtypemodule.c (g_type_module_register_type): fix typo in last
559         commit, cast to GTypeValueTable * to get rid of const warning.
560
561 Mon Aug 25 14:16:48 2003  Owen Taylor  <otaylor@redhat.com>
562  
563         * gtypemodule.c (g_type_module_register_type): Clarify
564         docs on the return. Fix a memory leak if a type with a
565         value table is reloaded. (#112439, Daniel Yacob)
566  
567 Tue Aug 19 05:21:04 2003  Tim Janik  <timj@gtk.org>
568
569         * testgobject.c (main): check private instance data after
570         initialization.
571
572         * gtype.c: for instances with private data, store the real class
573         pointer in a bsearch array during class initialization.
574         (g_type_instance_get_private): fetch the real class of
575         an instance from the bsearch array if necessary.
576
577 Tue Aug 19 04:08:14 2003  Tim Janik  <timj@gtk.org>
578
579         * gvalue.c: adapt to new gbsearcharray.h code.
580         (g_value_register_transform_func): turn transform function
581         replacement into a valid operation.
582
583         * gsignal.c: adapt to new gbsearcharray.h code.
584         
585         * gboxed.c: adapt to new gbsearcharray.h code.
586
587 Tue Aug 19 01:31:28 2003  Tim Janik  <timj@gtk.org>
588
589         * gsignal.c: added optimizations to skip NOP signal emissions.
590
591 2003-08-08  Matthias Clasen  <maclas@gmx.de>
592
593         * gobject.c (object_set_property): Improve the wording of the warning for invalid 
594         values.  (#117246, Mariano Suarez-Alvarez)
595         
596 Wed Aug  6 09:57:14 2003  Owen Taylor  <otaylor@redhat.com>
597
598         * testgobject.c (test_signal_accumulator): Add check
599         for instance private usage within in instance_init.
600         (Currently will fail.)
601
602 2003-07-20  Hans Breuer  <hans@breuer.org>
603
604         * gobject.def : updated externals
605
606 Tue Jul  8 22:29:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
607
608         * gtype.c (type_class_init_Wm): Only access node->data->instance
609         when the node is instantiable.
610
611 Tue Jul  8 14:55:27 2003  Owen Taylor  <otaylor@redhat.com>
612
613         * gtype.c (type_class_init_Wm): Initialize
614         node->data->instance.private_size here rather than
615         in type_data_make_W() since the class init for the parent
616         class may have changed pnode->data->instance.private_size.
617         (#116921, reported by Soeren Sandmann)
618
619 2003-06-18  Matthias Clasen  <maclas@gmx.de>
620
621         * Makefile.am (man_MANS): Removed, these are now installed from
622         docs/reference/gobject.
623
624 Fri May 30 14:42:24 2003  Owen Taylor  <otaylor@redhat.com>
625  
626         * gobject.c (g_value_set_object): Order refs/unrefs
627         so setting the same object back is safe. (#112861,
628         Morten Welinder)
629  
630 2003-03-24  Sven Neumann  <sven@gimp.org>
631
632         * gtype.c (type_data_finalize_class_ifaces_Wm): removed leftover
633         debugging message (bug #109093).
634
635 Thu Feb 27 17:33:19 2003  Owen Taylor  <otaylor@redhat.com>
636
637         * gtype.[ch] testgobject.c: Add support for instance-private data. 
638         g_type_class_add_private(), g_type_instance_get_private(),
639         G_TYPE_INSTANCE_GET_PRIVATE(). (#101959, patch partly by
640         Mark McLoughlin, extensive feedback from Tim Janik.)
641
642 2003-03-06  Matthias Clasen  <maclas@gmx.de>
643
644         * gsignal.c (g_signal_handlers_block_matched): 
645         (g_signal_handlers_unblock_matched): 
646         (g_signal_handlers_disconnect_matched): Fix 0/FALSE confusion.
647         (#107662, Morten Welinder)
648
649 Mon Feb 17 20:59:47 2003  Tim Janik  <timj@gtk.org>
650
651         * gvalue.c (g_value_register_transform_func): don't assert the types
652         passed in to have value tables. this prevents dynamic types from
653         registering transform functions.
654
655 Sun Feb  9 13:44:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
656
657         * gboxed.c (boxed_proxy_value_init): remove lookup of unused
658         BoxedNode.
659
660 2003-02-07  Matthias Clasen  <maclas@gmx.de>
661
662         * gtypemodule.c: 
663         * gtype.c: 
664         * gsourceclosure.c: 
665         * gparamspecs.c: 
666         * gparam.c: 
667         * gobject.c: 
668         * gsignal.c: Remove all docs from gobject at Tims
669         request. Documentation is only for weenies anyway...    
670
671 2003-01-12  Tor Lillqvist  <tml@iki.fi>
672
673         * gobject.def: Add g_type_interface_prerequisites. Thanks to
674         Kenichi SUTO.
675
676 2002-12-18  Matthias Clasen  <maclas@gmx.de>
677
678         * gobject.c: Add docs.
679
680 2002-12-18  Michael Natterer  <mitch@gimp.org>
681
682         * gobject/gtype.c (type_data_finalize_class_ifaces_Wm): applied
683         patch I got from Tim Janik for testing which fixes bug #101521.
684         (restart iterating the interface enties each time we finalized one
685         because they might have been modified).
686
687 2002-12-17  Matthias Clasen  <maclas@gmx.de>
688
689         * gparam.c (g_param_spec_internal): Remove markup from doc
690         comment, as GObject doesn't use --sgml-mode yet.
691
692 2002-12-15  Matthias Clasen  <maclas@gmx.de>
693
694         * gsignal.c (g_signal_new): Typo fix.
695
696         * gparamspecs.c:  
697         * gparam.c (g_param_spec_internal): 
698         * gobject.c (g_object_class_install_property): Add docs.
699
700 2002-12-13  Matthias Clasen  <maclas@gmx.de>
701
702         * glib-genmarshal.c, gobject-query.c: Use g_printf() instead of 
703         system printf.  (#99319)
704
705 Thu Dec 12 15:00:10 2002  Manish Singh  <yosh@gimp.org>
706
707         * gvaluetransform.c: use G_G[U]INT64_FORMAT unconditionally,
708         since we'll always have it now.
709
710 2002-12-07  Matthias Clasen  <maclas@gmx.de>
711
712         * gparam.c (canonalize_key): Rename to canonicalize_key. Adjust
713         all callers.
714
715 2002-12-05  Matthias Clasen  <maclas@gmx.de>
716
717         * gsignal.c (g_signal_new): Explain allowed signal names in more
718         detail.
719
720 2002-12-04  Matthias Clasen  <maclas@gmx.de>
721
722         * gsignal.h (g_signal_add_emission_hook): 
723         * gtype.h (g_type_interface_get_plugin): Sync parameter names with
724         docs and implementation.
725
726         * gtype.c (g_type_add_interface_dynamic): 
727         (g_type_interface_get_plugin): 
728         (g_type_interface_peek_parent): 
729         (g_type_query): Add docs.
730
731 2002-12-03  Matthias Clasen  <maclas@gmx.de>
732
733         * gtype.c (g_type_get_qdata): 
734         (g_type_set_qdata): 
735         (g_type_interface_add_prerequisite): Add docs.
736
737 2002-12-02  Matthias Clasen  <maclas@gmx.de>
738
739         * gobject.c (g_signal_connect_object): Add docs.
740
741 2002-11-30  Matthias Clasen  <maclas@gmx.de>
742
743         * gsignal.c: More docs.
744
745 2002-11-28  Matthias Clasen  <maclas@gmx.de>
746
747         * gtype.c (g_type_interface_prerequisites): Document as 2.2 
748         API addition.
749
750 Thu Nov 21 16:05:50 2002  Owen Taylor  <otaylor@redhat.com>
751
752         * gtype.c (g_type_check_instance_cast): Allow
753         NULL to be cast to any type. (Frequently requested,
754         most recently #99023, Lars Clausen.)
755
756 Mon Nov  4 14:42:36 2002  Owen Taylor  <otaylor@redhat.com>
757  
758         * gtype.c gsignal.c gvaluearray.c: Include config.h
759         so DISABLE_MEMPOOLS actually has an effect.
760         (#96437, Morten Welinder)
761  
762         * gsignal.c: Conditionalize definition of g_handler_ts
763         on DISABLE_MEM_POOLS (#96437)
764         
765 2002-10-20  Matthias Clasen  <maclas@gmx.de>
766
767         * gtype.c (g_type_interface_prerequisites): Report only the most
768         specific instantiatable prerequisite, filter out all supertypes of
769         this one (the supertypes are added to the prerequisites array for
770         technical reasons).
771
772 2002-10-16  Matthias Clasen  <maclas@gmx.de>
773
774         * glib-mkenums.in: Support for template files.
775         
776         * glib-mkenums.1: Document --template.
777
778 2002-10-15  Matthias Clasen  <maclas@gmx.de>
779
780         * gtype.c (g_type_interface_prerequisites): New function to obtain
781         the prerequisites of an interface type.
782
783 Sat Oct 12 22:02:32 2002  Tim Janik  <timj@gtk.org>
784
785         * merged up from 2.0:
786
787         * testgobject.c: test creation of new fundamental types.
788
789         * gtype.c (g_type_fundamental_next), (type_node_fundamental_new_W):
790         account for static_fundamental_next storing non-shifted fundamental
791         IDs. this fixes g_type_fundamental_next() not returning a new usable
792         fundamental ID.
793
794 Wed Sep 11 16:50:20 2002  Dom Lachowicz <cinamod@hotmail.com>
795
796         * gtype.h: Fix problems with excessive C++ warnings: "ISO C++ forbids nested groups within expressions"
797         
798 Fri Jul 26 15:46:36 2002  Owen Taylor  <otaylor@redhat.com>
799
800         * gvaluetransform.c: Fix problems with excess ';'
801         by addition of strategic 'extern void glib_dummy_decl (void)'
802         (#83272, David L. Cooper II)
803
804 Thu Jul 25 20:34:39 2002  Owen Taylor  <otaylor@redhat.com>
805
806         * gtype.c (g_type_interface_add_prerequisite): When
807         adding ancestral prerequisites, add the grandparents,
808         not the siblings. (Problem found by Jon Trowbridge, patch from 
809         Dave Camp, #86879)
810
811 2002-07-05  Anders Carlsson  <andersca@gnu.org>
812
813         * gobject.c (g_object_base_class_finalize): Remove debugging
814         message, approved by Tim Janik.
815
816 2002-06-11  Anders Carlsson  <andersca@gnu.org>
817
818         * gtypemodule.c: (g_type_module_complete_interface_info):
819         * gtypeplugin.h:
820         Fix argument order. Fixes #82806.
821         
822 Mon May 20 15:57:47 2002  Owen Taylor  <otaylor@redhat.com>
823
824         * gsignal.c: When printing errors, handle NULL
825         returns from g_type_debug(). (#73559, Laszlo Peter)
826
827         * gtype.c (type_descriptive_name_I): De-inline,
828         since it's only used for debugging.
829
830 Tue May  7 15:03:02 2002  Owen Taylor  <otaylor@redhat.com>
831
832         * glib-genmarshal.c: Fix include order for config.h (#71704,
833         Morten Welinder)
834
835 2002-05-07  Michael Natterer  <mitch@gimp.org>
836
837         * Makefile.am: use the glib-genmarshal found at configure time
838         if CROSS_COMPILING is set, use the one which was just built
839         otherwise.
840
841 Mon May  6 16:06:23 2002  Owen Taylor  <otaylor@redhat.com>
842
843         [ merged from stable ]
844
845         * gobject.c: Remove PROPERTIES_CHANGED enumeration
846         value that wasn't used any more. (#78833, 
847         Matthias Clasen)
848
849         * gboxed.c (g_boxed_copy): Remove check on data[2]
850         that no longer exists. (#80814, Daniel Elstner)
851
852 Tue Mar 26 15:21:47 2002  Owen Taylor  <otaylor@redhat.com>
853
854         * gsignal.h (g_signal_handlers_*_by_func): Add explicit
855         cast of G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA to
856         GSignalMatchType so that these macros work for C++.
857         (#76454, Damien Sandras)
858
859 Mon Mar 25 17:51:05 2002  Owen Taylor  <otaylor@redhat.com>
860
861         * glib-mkenums.in (parse_entries): Fix various bugs and
862         excessive stack usage that crept in the conversion from
863         gtk-mkenums. (#74431)
864
865 Mon Mar 25 17:25:57 2002  Owen Taylor  <otaylor@redhat.com>
866
867         * gtype.c (g_type_free_instance): Wrap setting freed instance
868         memory to 0xaa in #ifdef G_ENABLE_DEBUG
869
870 Thu Mar 21 01:28:14 2002  Tim Janik  <timj@gtk.org>
871
872         * gsignal.[hc]:
873         * gobject.[hc]: fix extraneous include.
874
875 Tue Mar 19 18:57:12 2002  Tim Janik  <timj@gtk.org>
876
877         * gtype.c (check_add_interface_L): applied patch from Matthias Clasen
878         <maclas@gmx.de> to check for prerequisite of interfaces, fixes #74427.
879         fixed mutex recursion in his patch (we can't call g_type_is_a() while
880         holding a read lock).
881
882         * gparam.c (canonalize_key): cleanup.
883
884 2002-03-13  Alexander Larsson  <alla@lysator.liu.se>
885
886         * gparam.c (canonalize_key):
887         Function to canonicalize parameter names. Faster than
888         using g_strcanon().
889         (g_param_spec_internal, param_spec_ht_lookup):
890         Use canonalize_key.
891
892 2002-03-13  Erwann Chenede  <erwann.chenede@sun.com>
893         * gobject/gclosure.c  
894         * gobject/gobject.c 
895         * gobject/gsignal.c: fixed cast problems with function pointer
896         to avoid warnings (with forte compiler) (#73898)
897         
898 2002-03-05  Sven Neumann  <sven@gimp.org>
899
900         * gvaluetransform.c (g_value_transforms_init): don't try to 
901         register undeclared value transform functions if G_GINT64_FORMAT
902         or G_GUINT64_FORMAT are undefined (#73586).
903
904 2002-03-03  Tor Lillqvist  <tml@iki.fi>
905
906         * makefile.msc.in
907         * makefile.mingw.in: Rename testgruntime to testgobject here, too.
908
909 Sun Mar  3 04:11:58 2002  Tim Janik  <timj@gtk.org>
910
911         * gobject.c: placed a comment about not changing CArray until we have
912         g_object_list_watched_closures().
913
914         * gparam.h (struct _GParamSpecClass): added padding.
915
916         * gobjectnotifyqueue.c (struct _GObjectNotifyQueue): abuse
917         g_list_alloc() to allocate GObjectNotifyQueue to et rid
918         of locking issues.
919
920 Tue Feb 26 10:51:00 2002  Owen Taylor  <otaylor@redhat.com>
921
922         * Makefile.am (testgobject_LDADD): Rename testgruntime
923         to testgobject.
924
925 Sun Feb 24 22:08:29 2002  Owen Taylor  <otaylor@redhat.com>
926
927         * gtypemodule.[ch] (g_type_module_add_interface): Make
928         GInterfaceInfo paramter const to correspond to the
929         conventions for the g_type_add_interface() functions.
930         (#72461, Miroslaw Dobrzanski-Neumann)
931
932 Sat Feb 23 13:28:56 2002  Owen Taylor  <otaylor@redhat.com>
933
934         * gtypeplugin.h (struct _GTypePluginClass): Add some
935         padding to the class.
936
937         * gclosure.h (struct _GClosure): Fix typo in comment.
938
939 2002-02-20  Tor Lillqvist  <tml@iki.fi>
940
941         * gobject.def: Add g_value_set_object_take_ownership and
942         g_value_set_param_take_ownership.
943
944 Wed Feb 20 22:55:15 2002  Owen Taylor  <otaylor@redhat.com>
945
946         * gobject.c: Fix implicit conversions between void * and 
947         function pointer (Miroslaw Dobrzanski-Neumann, #71963)
948
949 Sun Feb 16 22:08:48 2002  Tim Janik  <timj@gtk.org>
950
951         * gobject.[hc]:
952         * gparam.[hc]: provide marshaller specific value_set_*_take_ownership()
953         variants.
954
955         * gvalue.h: shrink GValue's data contents to 2 unions.
956
957         * glib-genmarshal.c: fix release and realeas_check hackage by always
958         using _take_ownership() variants. directly access value contents if
959         G_ENABLE_DEBUG is not defined.
960
961         * gobject.h: add padding pointers to the class struct.
962
963 Wed Feb 13 17:22:37 2002  Tim Janik  <timj@gtk.org>
964
965         * gtype.c (g_type_value_table_peek): fixed a check for node not being NULL.
966
967 Wed Feb 13 06:53:50 2002  Tim Janik  <timj@gtk.org>
968
969         * gparam.c: remove extraneous redefinition of G_PARAM_SPEC_CLASS().
970
971 Wed Feb 13 06:29:51 2002  Tim Janik  <timj@gtk.org>
972
973         * gvaluetransform.c: cosmetic cleanups, fixed [u]int64->string
974         conversions.
975
976         * ChangeLog: added entry from owen which went into the wrong
977         file.
978
979 Fri Feb  8 23:52:27 2002  Owen Taylor  <otaylor@redhat.com>
980
981         * gobject/gvaluetransform.c: Register transformations for
982         gint64, guint64. (#70780, patch from Andy Wingo)
983
984 2002-02-10  Hans Breuer  <hans@breuer.org>
985
986         * gvaluetransform.c : msvc 5.0 can't cast from uint64 to
987         double. Disable respective transform_func than.
988
989         * makefile.msc.in : build test programs
990
991 Thu Jan 24 07:39:56 2002  Tim Janik  <timj@gtk.org>
992
993         * gobject.c (g_signal_connect_object): return gulong instead
994         of guint.
995
996 Fri Jan 11 12:26:36 2002  Tim Janik  <timj@gtk.org>
997
998         * gparamspecs.c: fixed param_value_array_values_cmp(),
999         param_value_array_validate() and
1000         param_value_array_set_default() to deal with NULL value
1001         arrays.
1002
1003 Wed Jan  9 05:23:27 2002  Tim Janik  <timj@gtk.org>
1004
1005         * gobject.h (G_OBJECT_WARN_INVALID_PROPERTY_ID): cosmetic fix.
1006
1007 2002-01-05  Hans Breuer  <hans@breuer.org>
1008
1009         * makefile.msc.in : use -FImsvc_recommended_pragmas.h
1010
1011 Fri Jan  4 04:36:46 2002  Tim Janik  <timj@gtk.org>
1012
1013         * gtype.h (G_TYPE_FLAG_RESERVED_ID_BIT): turn this into a GType,
1014         so negating it works on 64bit platforms.
1015
1016 2001-12-21  Tor Lillqvist  <tml@iki.fi>
1017
1018         * gobject.def: Add g_signal_get_invocation_hint.
1019
1020 Tue Dec 18 21:39:57 2001  Tim Janik  <timj@gtk.org>
1021
1022         * testoverride.c: added some assertions to test
1023         g_signal_get_invocation_hint().
1024
1025         * gsignal.[hc]: remove signal_id argument from
1026         g_signal_chain_from_overridden(), the parameters are assumed to match
1027         the innermost signal currently in emission for this instance.
1028         added g_signal_get_invocation_hint() to figure the invocation hint
1029         of the innermost signal emission of an instance.
1030
1031         * gsignal.c (g_signal_list_ids): fix G_BSEARCH_ARRAY_NODES() to
1032         access a bsearch array and not a pointer to it (discovered by
1033         Sven Neumann).
1034
1035 2001-12-17  Anders Carlsson  <andersca@gnu.org>
1036
1037         * gtype.h (G_TYPE_FLAG_RESERVED_ID_BIT): Set the reserved bit
1038         to (1 << 0) instead of (1 << 30). 
1039
1040 2001-12-14  James Henstridge  <james@daa.com.au>
1041
1042         * Makefile.am: add rules to build it.
1043
1044         * testoverride.c: test program for closure override/chaining.
1045
1046 Thu Dec 13 08:03:17 2001  Tim Janik  <timj@gtk.org>
1047
1048         * gsignal.c: implemented closure chaining.
1049
1050 2001-12-08  Christopher Blizzard  <blizzard@redhat.com>
1051
1052         * gsignal.h (g_signal_connect): Explicitly add a cast to the last
1053         argument so that the macro will work from C++.
1054
1055 2001-12-06  Tor Lillqvist  <tml@iki.fi>
1056
1057         * makefile.mingw.in (gobject_OBJECTS): Add gsourceclosure.o.
1058
1059 Mon Nov 26 09:55:12 2001  Tim Janik  <timj@gtk.org>
1060
1061         * gtype.h: typedef GType to gulong instead of gsize, if possible.
1062
1063         * gtype.c: fixups for GType being sizeof(long) wide (changed
1064         UINT casts).
1065         * gsignal.c:
1066         * gclosure.c:
1067         * gparam.c: likewise.
1068
1069 Sun Nov 25 22:33:32 2001  Tim Janik  <timj@gtk.org>
1070
1071         * gtype.h: removed enum GTypeFundamentals. use macros
1072         to provide the constant fundamental type IDs, so they
1073         all return numbers of type GType, and not int.
1074         sizeof(GTypeFundamentals) < sizeof(GType) problem reported
1075         and fix sugegsted by Havoc.
1076
1077 2001-11-23  Hans Breuer  <hans@breuer.org>
1078
1079         * gobject.def : updated externals
1080
1081 Mon Nov 19 14:35:56 2001  Owen Taylor  <otaylor@redhat.com>
1082  
1083         * *.h: Improve the detection of invalid includes by moving
1084         the test outside the duplicate include guards.
1085  
1086         * gsourceclosure.c (g_source_set_closure): Doc fix.
1087
1088 Thu Nov 22 03:30:57 2001  Tim Janik  <timj@gtk.org>
1089
1090         * gvalue.h (G_TYPE_IS_VALUE): use g_type_check_is_value_type()
1091         instead of g_type_value_table_peek().
1092
1093         * gtype.[hc] (type_check_is_value_type_U): speed up check
1094         LOCK-less by caching lookups in node->mutatable_has_value_table.
1095
1096         * gtype.[hc]: removed locks where possible. partly based on
1097         patches from owen and alex.
1098
1099 Thu Nov 22 00:26:26 2001  Tim Janik  <timj@gtk.org>
1100
1101         * gtype.[hc]: provide G_TYPE_FUNDAMENTAL_SHIFT and
1102         g_type_fundamental_next() to return next usable fundamental
1103         type. use TypeNode pointers as type IDs.
1104         
1105 2001-11-22  Tor Lillqvist  <tml@iki.fi>
1106
1107         * makefile.mingw.in (DEFINES): Set G_LOG_DOMAIN as in Makefile.am.
1108
1109         * gparamspecs.h (GOBJECT_VAR): Can't use GLIB_VAR here, as that
1110         makes sense only when building libglib. GOBJECT_VAR is similar for
1111         libgobject.
1112
1113         * gobject.def: Add g_param_spec_types, remove
1114         g_type_fundamental_branch_last.
1115
1116 Wed Nov 21 17:23:33 2001  Tim Janik  <timj@gtk.org>
1117
1118         * gparamspecs.[hc]: put newly created param spec types into a
1119         global array.
1120
1121         * gboxed.[hc]: moved boxed types with _get_type() function here,
1122         for: G_TYPE_CLOSURE, G_TYPE_VALUE, G_TYPE_VALUE_ARRAY,
1123         G_TYPE_GSTRING.
1124
1125         * gtype.h: removed fundamental branch APIs and derived enum
1126         values. define GType as gsize.
1127
1128 2001-11-19  jacob berkman  <jacob@ximian.com>
1129
1130         * gobjectnotifyqueue.c: include glib-object.h rather than
1131         gobject/gobject.h
1132
1133 2001-11-16  Mark McLoughlin  <mark@skynet.ie>
1134
1135         * glib-mkenums.in: allow the enums name to not be on the same
1136         line as the trailing '}'. (#64714)
1137
1138 2001-11-18  Hans Breuer  <hans@breuer.org>
1139
1140         * makefile.msc.in : remove g_log_domain_gruntime usage
1141
1142 Sat Nov 17 18:14:40 2001  Owen Taylor  <otaylor@redhat.com>
1143
1144         * glib-genmarshal.c: Exit with non-zero exit status if
1145         any errors were encountered.
1146
1147         * glib-genmarshal.c: Instead of generating gobject/gmarshal.h
1148         #include only for the header, generate glib-object.h 
1149         #include for both the header and body. (#63834)
1150
1151         * glib-genmarshal.c: Generate include guards around the 
1152         content unless --nostdinc is specified.
1153
1154 2001-11-17  Tor Lillqvist  <tml@iki.fi>
1155
1156         * gobject.def: Add g_pointer_type_register_static.
1157
1158 2001-11-15  Tor Lillqvist  <tml@iki.fi>
1159
1160         * gobject.def: Reflect recent changes.
1161
1162 Tue Nov 13 23:18:10 2001  Tim Janik  <timj@gtk.org>
1163
1164         * gsignal.[hc]: add API for chaining:
1165         g_signal_chain_from_overridden() and g_signal_override_class_closure(),
1166         implementation yet to come.
1167
1168         * gtype.[hc], Makefile.am: provide G_LOG_DOMAIN as compile flag.
1169         
1170         * gparam.[hc]: s/g_param_get/g_param_spec_get/ for get_nick,
1171         get_name and get_blurb, to be consistent with the rest of the
1172         g_param_spec_*() functions.
1173         
1174         * gparamspecs.[hc]: got rid of bogus GClosure paramspec.
1175         G_TYPE_CLOSURE is a boxed type already.
1176         
1177 Tue Nov 13 22:16:41 2001  Tim Janik  <timj@gtk.org>
1178
1179         * gtype.[hc]: API cleanups.
1180         remove g_type_check_flags(), provide g_type_test_flags() as
1181         a *private* function.
1182         s/g_type_check_is_a/g_type_check_class_is_a/, private function.
1183         s/g_type_instance_is_a/g_type_check_instance_is_a/, also private.
1184
1185 Tue Nov 13 20:02:47 2001  Tim Janik  <timj@gtk.org>
1186
1187         * gparam.h: fix standard type macros.
1188
1189 Wed Nov  7 00:56:00 2001  Tim Janik  <timj@gtk.org>
1190
1191         * gclosure.h: provide G_CLOSURE_N_NOTIFIERS() for people that need
1192         to walk the notifier list (puhh, black magic, stay-away-warning ;).
1193
1194 Mon Nov  5 18:59:08 2001  Tim Janik  <timj@gtk.org>
1195
1196         * gobject.h: 
1197         * gsignal.h: we need signal.h for G_BREAKPOINT().
1198
1199 Sun Nov  4 14:01:23 2001  Owen Taylor  <otaylor@redhat.com>
1200
1201         * gvaluetypes.[ch]: Add a function g_pointer_type_register_static()
1202         to register a type derived from G_TYPE_POINTER.
1203
1204 2001-11-03  Hans Breuer  <hans@breuer.org>
1205
1206         * makefile.msc.in : gobject-query needs gmarshal.[hc,stings]
1207         so build it after them. Add gsourceclosure.obj. 
1208
1209         * gobject.def : removed duplicates, added mising
1210
1211 Mon Oct 29 11:05:15 2001  Owen Taylor  <otaylor@redhat.com>
1212
1213         * glib-mkenums.in: Generate glib-mkenums from glib-mkenums.in, 
1214         substituting in path to perl.  (#63093, Dan Winship)
1215
1216         * Makefile.am (bin_SCRIPTS): Remove hack to copy glib-mkenums
1217         from srcdir.
1218
1219 2001-10-26  Tor Lillqvist  <tml@iki.fi>
1220
1221         * makefile.mingw.in: When running glib-genmarshal, set PATH to
1222         include ../glib.
1223
1224 2001-10-23  Tor Lillqvist  <tml@iki.fi>
1225
1226         * Makefile.am: (Win32): If we have built the MSVC import library,
1227         install it. Install the gcc import library. Also support
1228         uninstall.
1229
1230 2001-10-13  Matthias Clasen  <matthiasc@poet.de>
1231
1232         * glib-genmarshal.1, glib-mkenums.1: Typo fixes.
1233
1234 Fri Oct 12 18:40:18 2001  Tim Janik  <timj@gtk.org>
1235
1236         * cosmetic fixups.
1237
1238 Wed Oct 10 17:25:22 2001  Joshua N Pritikin  <vishnu@pobox.com>
1239
1240         * glib-genmarshal.c gparamspecs.[ch] gtype.[ch] gvalue.h
1241         gvaluecollector.h gvaluetypes.[ch]: Fill in missing support for
1242         gint64 & guint64 (#59254).
1243         
1244         * Unconditionalize same (compile with or without G_HAVE_INT64).
1245
1246 Wed Oct 10 15:38:58 2001  Joshua N Pritikin  <vishnu@pobox.com>
1247
1248         * gparamspecs.h (G_IS_PARAM_SPEC_FLAGS): Fix order of
1249         *_PARAM_SPEC_ULONG defines.
1250
1251 Thu Oct  4 01:10:52 2001  Owen Taylor  <otaylor@redhat.com>
1252
1253         * gparamspecs.h: Add missing G_HAVE_GINT64 conditionalization.
1254
1255 Wed Oct  3 16:02:24 2001  Owen Taylor  <otaylor@redhat.com>
1256
1257         * glib-genmarshal.c gparamspecs.[ch] gvalue.h 
1258         gobject/gvaluetypes.[ch]: Add support for G_TYPE_INT64
1259         and storing it in GValue (Patch from Mathieu Lacage, #59254.)
1260
1261 2001-10-03  jacob berkman  <jacob@ximian.com>
1262
1263         * gtype.c (type_iface_retrieve_holder_info_Wm): 
1264         (type_iface_vtable_init_Wm): 
1265         (type_iface_vtable_finalize_Wm): 
1266         (g_type_class_ref): 
1267
1268         * gobject.c (g_object_get_property): s/retrive/retrieve/
1269
1270 2001-09-25  Tor Lillqvist  <tml@iki.fi>
1271
1272         * Makefile.am: Use new macros for .def file, and check for
1273         MS_LIB_AVAILABLE, new rule to build MS import library.
1274
1275         * makefile.msc.in: Use same DLL and import library names as
1276         libtool.
1277         
1278 2001-09-21  Hans Breuer  <hans@breuer.org>
1279
1280         * gobject.def : updated externals
1281
1282 2001-09-19  Tor Lillqvist  <tml@iki.fi>
1283
1284         * gobject.rc.in: Correct InternalName and OriginalFilename to
1285         match what we actually produce.
1286
1287 Tue Sep 18 23:09:02 2001  Tim Janik  <timj@gtk.org>
1288
1289         * gparam.[hc]: rename *nick and *blurb fields to catch
1290         direct accesses in third party code.
1291         provide g_param_get_nick(), g_param_get_blurb() and
1292         g_param_get_name() accessors.
1293
1294 Mon Sep 10 20:31:37 2001  Tim Janik  <timj@gtk.org>
1295
1296         * gobject.[hc]: removed extraneous GObject* returns from a
1297         couple functions that are very unlikely to be used in nested.
1298         changed gpointer->GObject* for a couple return values/arguments.
1299         this fixes #50206.
1300
1301 Mon Sep 10 19:27:47 2001  Tim Janik  <timj@gtk.org>
1302
1303         * gtype.[hc]:
1304         g_type_add_interface*(): implement the ability to add an interface to
1305         a type whose parents already conform to this interface.
1306         such "overriding" interfaces, when initialized, are not just initialized
1307         with 0, but with a copy of the interface they override.
1308         g_type_interface_peek_parent(): new function, return the interface
1309         that this interface "overrides", if any.
1310
1311         * testgruntime.c: test new interface stuff.
1312
1313 2001-09-10  Alex Larsson  <alexl@redhat.com>
1314
1315         * gobject/gboxed.[ch]:
1316         * gobject/gsourceclosure.c:
1317         Removed is_refcounted and GBoxedInitFunc from
1318         g_boxed_type_register_static().
1319
1320 Sat Sep  8 14:13:57 2001  Owen Taylor  <otaylor@redhat.com>
1321
1322         * gobject/Makefile.am: Move gbsearcharray.[ch] to glib
1323         as a private ininstalled header.
1324
1325 Tue Sep  4 22:24:48 2001  Matthias Clasen  <matthiasc@poet.de>
1326
1327         * gobject.c (g_object_base_class_finalize): typo fix.
1328
1329 Tue Sep  4 01:49:18 2001  Tim Janik  <timj@gtk.org>
1330
1331         * gsourceclosure.c: make closure_callback_funcs static,
1332         added some g_return_if_fail() statements.
1333
1334 Mon Aug 27 14:55:27 2001  Owen Taylor  <otaylor@redhat.com>
1335
1336         * gsourceclosure.[ch] (g_source_set_closure): Implement.
1337
1338         * gsourceclosure.[ch]: Add GType's for GIOChannel, GIOCondition.
1339
1340 2001-08-17  James Henstridge  <james@daa.com.au>
1341
1342         * gobject.c (WeakRefStack): add an object member to the structure.
1343         (weak_refs_notify): pass wstack->object as extra argument to
1344         notify functions.
1345         (g_object_weak_ref): set wstack->object when initialising
1346         WeakRefStack.
1347
1348         * gobject.h (GWeakNotify): add second argument to prototype which
1349         gives the pointer to where the object that is being disposed of
1350         was.
1351
1352 Wed Jul 18 19:42:31 2001  Tim Janik  <timj@gtk.org>
1353
1354         * gtype.h: if __GNUC__ is defined, inline a test for an exact type
1355         match for instances and classes in G_TYPE_CHECK_INSTANCE_TYPE() and
1356         G_TYPE_CHECK_CLASS_TYPE() before calling g_type_instance_is_a().
1357
1358 Sun Aug 12 02:07:10 2001  Tim Janik  <timj@gtk.org>
1359
1360         * gvaluearray.[hc]: fix preallocation logic, support DISABLE_MEM_POOLS
1361         properly, group value allocations.
1362         (g_value_array_new): fix semantic of n_prealloced argument, so it's
1363         really just about preallocation space.
1364
1365 2001-07-23  Padraig O'Briain <Padraig.Obriain@Sun.COM>
1366         
1367         * gobject/gobjectnotifyqueue.c: fix unconditional check of
1368         first GParamSpec in g_object_notify_queue_thaw(); to prevent
1369         property notification being lost.
1370
1371 2001-08-06  Sven Neumann  <sven@gimp.org>
1372
1373         * gobject.[ch]: 
1374         added new functions g_object_[add|remove]_weak_pointer().
1375
1376 2001-08-01  Sven Neumann  <sven@gimp.org>
1377
1378         * gsignal.h: added convenience macro g_signal_connect_after().
1379
1380 2001-07-29  Hans Breuer  <hans@breuer.org>
1381
1382         * gobject.def : updated externals
1383
1384 2001-07-20  Hans Breuer  <hans@breuer.org>
1385
1386         * gobject.def : updated externals
1387
1388         * makefile.msc.in : reflect glib move
1389
1390 Tue Jul 10 18:50:16 2001  Tim Janik  <timj@gtk.org>
1391
1392         * gsignal.h (struct _GSignalQuery): fix misplaced comment.
1393
1394 Mon Jul  2 07:17:47 2001  Tim Janik  <timj@gtk.org>
1395
1396         * gobject.c (g_object_weak_ref): 
1397         (g_object_watch_closure): congrats tim, introducing of-by-one
1398         errors like on my very first day of C programming.
1399
1400 Sat Jun 30 11:07:00 2001  Tim Janik  <timj@gtk.org>
1401
1402         * gobject.[hc]: provide weak_ref/weak_unref functions,
1403         invoked from ->dispose. renamed ->shutdown() to ->dispose(),
1404         provide "public" API entry here: g_object_run_dispose(), this
1405         fucntion should _only_ be called from object system implementations
1406         (e.g. gtkobject.c) if at all.
1407
1408         * gtypemodule.c (g_type_module_dispose): s/shutdown/dispose/
1409
1410         * gsignal.h: removed compat aliases.
1411
1412         * gobject.c (g_object_connect): support data objects.
1413         
1414 Sat Jun 30 13:17:12 2001  Owen Taylor  <otaylor@redhat.com>
1415
1416         * testgruntime.c (test_object_class_init)
1417           gobject.c (g_object_do_class_init): 
1418           g_signal_newc() => g_signal_new().
1419
1420 Thu Jun 28 22:49:40 2001  Owen Taylor  <otaylor@redhat.com>
1421
1422         * gtype.[ch] gobject-query.c testgruntime.c: Remove
1423         debug flag argument to g_type_init() and add
1424         g_type_init_with_debug_flags().
1425
1426 Thu Jun 28 16:42:49 2001  Tim Janik  <timj@gtk.org>
1427
1428         * gsignal.c (g_signal_lookup): 
1429         (g_signal_list_ids): give elaborate warnings about invalid types,
1430         non-instantiatable types and unloaded types that we can't operate on.
1431
1432         * gparam.[hc]: g_param_spec_pool_belongings() ->
1433         g_param_spec_pool_list_owned().
1434
1435         * gsignal.[hc]: renamed:
1436         g_signal_newc -> g_signal_new
1437         g_signal_disconnect_by_func -> g_signal_handlers_disconnect_by_func
1438         g_signal_block_by_func -> g_signal_handlers_block_by_func
1439         g_signal_unblock_by_func -> g_signal_handlers_unblock_by_func
1440         added GConnectType to simplify (..gboolean swapped, gboolean after)
1441         args.
1442
1443         * gobject.[hc]: changed prototypes accordingly.
1444
1445 2001-06-22  Hans Breuer  <hans@breuer.org>
1446
1447         * gobject.def : updated externals
1448
1449         * gobjectnotifyqueue.c : include <string.h> for memset ()
1450
1451 Thu Jun 21 02:43:10 2001  Tim Janik  <timj@gtk.org>
1452
1453         * gparamspecs.h: s/long/int/ for default_value in enum and flags
1454         pspecs.
1455
1456 Wed Jun 20 03:59:42 2001  Tim Janik  <timj@gtk.org>
1457
1458         * gtype.[hc]: added debugging variants g_type_name_from_class(),
1459         g_type_name_from_instance().
1460
1461 Mon Jun 11 17:07:06 2001  Tim Janik  <timj@gtk.org>
1462
1463         * gboxed.[hc]: remove left-over usages of an anonymous GBoxed typedef.
1464
1465         * gobjectnotifyqueue.c: moved property notify queue implementation
1466         bits into this function.
1467
1468         * gparam.[hc]: added g_param_spec_pool_belongings(), completed
1469         g_param_spec_pool_list(). added GParameter for _setv() functions.
1470
1471         * gobject.[hc]: use gobjectnotifyqueue.h implementation now.
1472         got rid of properties_changed signal.
1473         new functions g_object_newv(), g_object_class_list_properties().
1474         removed "properties_changed" signal.
1475
1476         * gtype.[hc]: added g_type_depth() to figure number of parent
1477         types + 1 for a type.
1478
1479         * gsignal.h: add g_signal_connect() (as per owen's request) and
1480         g_signal_connect_swapped().
1481
1482 2001-06-13  Havoc Pennington  <hp@redhat.com>
1483
1484         * Makefile.am (progs_LDADD): link to ./libgobject-1.3.la
1485         since an installed libgobject was somehow being found; think 
1486         it's a libtool bug, but this workaround should do for now.
1487
1488 2001-06-12  Havoc Pennington  <hp@redhat.com>
1489
1490         * Makefile.am (glib-mkenums): don't put $(srcdir)/glib-mkenums in
1491         bin_SCRIPTS, that breaks make install. Instead put 'glib-mkenums'
1492         in bin_SCRIPTS and cp it into builddir
1493
1494 Thu May 31 17:56:47 2001  Owen Taylor  <otaylor@redhat.com>
1495
1496         * gobject-query.c: Fix mispelling in help output.
1497         (#53952, Skip Montanaro)
1498
1499 2001-05-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1500
1501         * Makefile.am (EXTRA_DIST): Really distribute glib-mkenums, now
1502         that bin_SCRIPTS doesn't seem to care about doing so anymore.
1503
1504 Mon May 28 06:51:24 2001  Tim Janik  <timj@gtk.org>
1505
1506         * gsignal.c (signal_emit_unlocked_R): fixed bad faux-pass, forgot
1507         to release signal lock when restarting emissions.
1508
1509 Sun May 27 04:52:28 2001  Tim Janik  <timj@gtk.org>
1510
1511         * gsignal.[hc] (g_signal_stop_emission_by_name): added variant
1512         to stop signal emissions through a detailed_signal string.
1513
1514         * gsignal.c (signal_emit_R) (g_signal_emit_valist): account for
1515         the fact that g_value_* functions may cause signal emissons by
1516         unlocking the global signal system lock around g_value_* functions.
1517         (signal_emit_unlocked_R): renamed this from signal_emit_R() to reflect
1518         that this functions acquires the lock on its own now.
1519
1520 2001-05-24  Hans Breuer  <hans@breuer.org>
1521
1522         * makefile.msc.in : changed depndencies to build glib-genmarshal
1523         first and statically linked with glib, which makes it independent
1524         from the installed glib version. Added new object files to build.
1525
1526         * gobject.def : updated
1527
1528 Thu May 24 08:52:02 2001  Owen Taylor  <otaylor@redhat.com>
1529
1530         * gobject.[ch] (g_value_set_object): gpointer, not
1531         gpointer *.
1532
1533 2001-05-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1534
1535         * Makefile.am (bin_SCRIPTS): made 'make distcheck' happy.
1536
1537         * gobject.def: Removed g_param_spec_stringc.
1538
1539 Tue May 22 02:46:13 2001  Tim Janik  <timj@gtk.org>
1540
1541         * gobject.c (g_value_set_object): make g_value_set_object()
1542         take a gpointer v_object so people don't need to G_OBJECT()
1543         cast NULL pointers (C code convenience).
1544
1545 Mon May 14 01:49:01 2001  Tim Janik  <timj@gtk.org>
1546
1547         * gsignal.[hc] (g_signal_handler_is_connected): new function
1548         to check whether a handler is still connected to an instance
1549         (by handler id).
1550
1551 Thu May 10 14:00:48 2001  Tim Janik  <timj@gtk.org>
1552
1553         * gparamspecs.[hc]: removed g_param_spec_stringc() in lack of
1554         evidence of public need.
1555
1556         * gsignal.h: added g_signal_disconnect_by_func(),
1557         g_signal_block_by_func() and g_signal_unblock_by_func() convenience
1558         macros as per owen's request.
1559
1560         * gtype.c (SIZEOF_FUNDAMENTAL_INFO): align sizeof (GTypeFundamentalInfo)
1561         to size of longs and pointers.
1562
1563 2001-05-05  James Henstridge  <james@daa.com.au>
1564
1565         * Makefile.am: glib-mkenums is not a compiled program, so shouldn't
1566         be in the bin_PROGRAMS primary.  Put it in bin_SCRIPTS instead, and
1567         removed the glib_mkenums_SOURCES var.
1568
1569 Thu May  3 06:10:23 2001  Owen Taylor  <otaylor@redhat.com>
1570
1571         * gobject.c (g_object_set_[q]data_full): Make types of ternary
1572         operator correspond. (Fixes compilation errors with Sun CC,
1573         #52230)
1574
1575 Mon Apr 30 20:03:56 2001  Tim Janik  <timj@gtk.org>
1576
1577         * glib-mkenums (usage): removed \v escaping, newer perl versions don't
1578         support this, and it'S probably useless anyways.
1579
1580 Sat Apr 28 23:39:42 2001  Tim Janik  <timj@gtk.org>
1581
1582         * gsignal.[hc]: made signal handler and emission hook ids gulongs.
1583         (signal_handlers_foreach_matched_R): only invoke callback for handlers
1584         that are not disconnected (id>0).
1585         (signal_emit_R): prevent invocation of signal handlers during the
1586         emission they were connected within.
1587         
1588         * glib-mkenums: publically installed perl-script to parse C code
1589         enums and generate descriptions thereof.
1590         * glib-mkenums.1: assorted man page.
1591         
1592 2001-04-19  Havoc Pennington  <hp@redhat.com>
1593
1594         * gobject.c (g_object_get_valist): We were returning junk memory
1595         here, because we didn't copy the value (G_VALUE_NOCOPY_CONTENTS
1596         passed to G_VALUE_LCOPY) and then we freed the GValue immediately
1597         after. Removed G_VALUE_NOCOPY_CONTENTS from here; need a
1598         G_VALUE_STEAL_CONTENTS or the like if we want this optimization.
1599
1600 Wed Apr 18 09:46:56 2001  Owen Taylor  <otaylor@redhat.com>
1601
1602         * gobject.c gsignal.c: Change C++ comments for FIXME's to
1603         C comments. (Patch from Andres Salomon)
1604
1605 2001-04-14  Hans Breuer  <hans@breuer.org>
1606
1607         * gobject.def : updated
1608
1609 Mon Apr  9 18:56:15 2001  Tim Janik  <timj@gtk.org>
1610
1611         * gclosure.c (g_closure_invoke): only require marshal/meta_marshal if
1612         we're valid (about to actually do marshalling).
1613
1614 Tue Apr  3 20:23:24 2001  Tim Janik  <timj@gtk.org>
1615
1616         * NEWS: updates.
1617
1618 Tue Apr  3 14:06:00 2001  Tim Janik  <timj@gtk.org>
1619
1620         * gparam.[hc]: added g_param_spec_pool_list() to list pspecs per
1621         owner_type. the pspecs are not referenced, so the caller is
1622         supposed to have some idea about owner_type not randomly
1623         nuking his pspec's. if this is going to provide problems in
1624         the future, we can either auto-ref the pspecs, or add a
1625         _foreach variant, though the latter would have to invoke
1626         the callback while pspec's mutex is acquired, so i just
1627         went for the _list variant for now.
1628
1629         * gclosure.h (G_CALLBACK): made GCallback a void (*) (void) fucntion.
1630
1631 Sat Mar 31 23:55:58 2001  Tim Janik  <timj@gtk.org>
1632
1633         * gtype.h:
1634         * gparamspecs.[hc]: applied patch from owen to implement
1635         GParamSpecUnichar.
1636
1637 Fri Mar 30 07:34:02 2001  Tim Janik  <timj@gtk.org>
1638
1639         * gtype.c (type_iface_retrive_holder_info_Wm): 
1640         * gtypeplugin.c (g_type_plugin_complete_interface_info): 
1641         * gtypemodule.c (g_type_module_complete_interface_info): 
1642         change order of instance_type and interface_type so they match
1643         the g_type_add_interface_*() API.
1644
1645         * gsignal.c (g_signal_emit_valist): always assign C return value
1646         location, people depending on unaltered return values after emissions
1647         that had no handlers to run need to use g_signal_emitv().
1648
1649         * gtype.[hc] (g_type_query): new function to allow querying of
1650         class and object size (semantics like g_signal_query()).
1651         currently the implementation is better held conservative so as to
1652         only support types that are classed and static.
1653
1654 2001-03-29  Tor Lillqvist  <tml@iki.fi>
1655
1656         * gobject.def: Updates.
1657
1658 Wed Mar 28 17:04:06 2001  Tim Janik  <timj@gtk.org>
1659
1660         * gobject.c (object_queue_property): only queue readable properties
1661         for notification changes.
1662
1663 Thu Mar 22 13:36:50 2001  Tim Janik  <timj@gtk.org>
1664
1665         * gsignal.c (g_signal_newv): catch G_SIGNAL_RUN_FIRST with a return value.
1666
1667 2001-03-21  Martin Baulig  <baulig@suse.de>
1668
1669         * gboxed.[ch] (g_value_dup_boxed): This takes a `const GValue *'
1670         argument.
1671
1672 2001-03-18  Tor Lillqvist  <tml@iki.fi>
1673
1674         * gobject.def: Correct some renamed functions.
1675
1676 Sat Mar 17 23:18:36 2001  Tim Janik  <timj@gtk.org>
1677
1678         * gobject.c (g_object_get_property): minor bug-fix.
1679
1680         * gbsearcharray.[hc]: provide a macro for static initialization and
1681         functions g_bsearch_array_new() and g_bsearch_array_destroy() for
1682         dynamic allocations.
1683         
1684         * gboxed.c: introduce G_TYPE_GSTRING, boxed type for GString.
1685         
1686         * gclosure.[hc]: naming corrections.
1687
1688 Fri Mar  9 16:42:08 2001  Tim Janik  <timj@gtk.org>
1689
1690         * gvaluetypes.[hc]: moved g_strdup_value_contents() into this file as
1691         a public function (was static in gobject.c before). it's a bit odd
1692         to have that function here, especially since it requires extra includes,
1693         but then it doesn't very well fit somewhere else either.
1694
1695         * gparamspecs.c: added default/max/min checks to param spec creation
1696         functions.
1697
1698 2001-03-10  Tor Lillqvist  <tml@iki.fi>
1699
1700         * gobject.def: Add a couple of missing entries.
1701
1702         * Makefile.am (libgobject_1_3_la_LIBADD): Use only on Win32.
1703
1704 Fri Mar  9 14:57:17 2001  Tim Janik  <timj@gtk.org>
1705
1706         * testgruntime.c: test program. covers run first/last/cleanup signal
1707         handlers, return value accumulator, signal string returns, and
1708         interface types in signal arguments.
1709
1710         * gtype.c (g_type_value_table_peek): for interface types without
1711         value table, try looking up a value table from an instantiatable
1712         prerequisite type (this is safe as an interface may only have
1713         one instantiatable prerequisiste).
1714         (type_check_is_value_type_U): same here.
1715
1716         * gsignal.c (g_signal_newv): assert that return types never have
1717         G_SIGNAL_TYPE_STATIC_SCOPE set.
1718         (g_signal_newc): only create class closure if the class_offset is not
1719         0.
1720
1721 Fri Mar  9 10:14:00 2001  Tim Janik  <timj@gtk.org>
1722
1723         * gparamspecs.c (g_param_spec_object): use g_type_is_a() to check
1724         for object_type being a G_TYPE_OBJECT, not G_TYPE_IS_OBJECT(), since
1725         that wouldn't allow interface types.
1726
1727         * gtype.c (g_type_interface_add_prerequisite): arg, fixed small cnp bug
1728         with bad implications and an off-by-one error.
1729
1730 Thu Mar  8 16:34:22 2001  Owen Taylor  <otaylor@redhat.com>
1731
1732         * gvaluetransform.c: Include <string.h> for memcpy.
1733
1734         * gvaluetransform.c (DEFINE_SPRINTF): Remove unnecessary
1735         and ANSI-illegal ## token pasting.
1736
1737 Thu Mar  8 18:11:52 2001  Tim Janik  <timj@gtk.org>
1738
1739         * gsignal.c: eek, fixed old hook detail storage code.
1740
1741 Thu Mar  8 16:35:48 2001  Tim Janik  <timj@gtk.org>
1742
1743         * gparamspecs.[hc]: s/g_param_spec_string_c/g_param_spec_stringc/.
1744
1745         * gsignal.[hc]: fixed accumulator invocation, implemented emission
1746         hooks. and no, neither of these callbacks are called via a closure,
1747         language bindings can wrap the accumulator and emission hook
1748         interface, they already get parameters marshalled into a GValue array.
1749         (g_signal_connect): removed this function as its C specific, doesn't
1750         cover the swapped argument, is too close to its broken original
1751         gtk_signal_connect() and creates demand for _swapped, _after and
1752         _swapped_after variants <brrr>.
1753         (g_signal_connectc): convenience macro to connect a C handler
1754         func with data, like the old g_signal_connect() plus swapped
1755         argument.
1756
1757         * gtype.h:
1758         * gboxed.c: added G_TYPE_VALUE boxed type.
1759
1760 Wed Mar  7 19:02:51 2001  Tim Janik  <timj@gtk.org>
1761
1762         * gtype.c (type_node_add_iface_entry_W): catch when adding an interface
1763         to an ancestor of a child that already conforms to this interface.
1764         currently we spew a warning here, should we be silent?
1765         (g_type_interface_add_prerequisite): new function to add a prerequisite
1766         type to an interface, that must succeed an instance is_a prerequisite
1767         type check before the interface can be added to an instance. the
1768         prerequisite types are also suuported in is_a checks of the interface.
1769         (g_type_instance_is_a):
1770         (g_type_check_instance_cast):
1771         (g_type_check_instance): cleanups and optimizations.
1772         (g_type_class_is_a):
1773         (g_type_check_class_cast): same, also prevented these from accepting
1774         interface types, as class structures don't nest interfaces.
1775
1776 2001-03-07  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1777
1778         * Makefile.am: Avoid rebuilding everything everytime.
1779
1780 Wed Mar  7 09:36:33 2001  Tim Janik  <timj@gtk.org>
1781
1782         * gboxed.[hc]: changed prototype of g_boxed_type_register_static()
1783         to contain an optional init function and a hint at whether the
1784         boxed structure uses ref counting internally.
1785         added g_value_set_boxed_take_ownership().
1786         made G_TYPE_BOXED an abstract value type.
1787
1788         * genums.[hc]: made G_TYPE_ENUM and G_TYPE_FLAGS abstract value
1789         types.
1790
1791         * glib-genmarshal.c: argument type changes, preparation for third-party
1792         arg specification.
1793
1794         * gobject.[hc]: cleaned up get/set property code.
1795         added g_strdup_value_contents() to improve warnings.
1796
1797         * gparam.[hc]: added g_param_value_convert(), taking over responsibility
1798         of the old g_value_convert(). added G_PARAM_LAX_VALIDATION flag so
1799         validation alterations may be valid a part of the property setting
1800         process.
1801
1802         * gparamspecs.[hc]: made value comparisons stable (for sort applications).
1803         added GParamSpecValueArray, a param spec for value arrays and
1804         GParamSpecClosure. nuked the value exchange functions and
1805         GParamSpecCCallback.
1806
1807         * gtype.[hc]: catch unintialized usages of the type system with
1808         g_return_val_if_uninitialized(). introduced G_TYPE_FLAG_VALUE_ABSTRACT
1809         to flag types that introduce a value table, but can't be used for
1810         g_value_init(). cleaned up reserved type ids.
1811
1812         * gvalue.[hc]: code cleanups and saner checking.
1813         nuked the value exchange API. implemented value transformations, we
1814         can't really "convert" values, rather transforms are an anylogy to
1815         C casts, real conversions need a param spec for validation, which is
1816         why g_param_value_convert() does real conversions now.
1817
1818         * gvaluearray.[hc]: new files that implement a GValueArray, a struct
1819         that can hold inhomogeneous arrays of value (to that extend that it
1820         also allowes undefined values, i.e. G_VALUE_TYPE(value)==0).
1821         this is exposed to the type system as a boxed type.
1822
1823         * gvaluetransform.c: new file implementing most of the former value
1824         exchange functions as single-sided transformations.
1825
1826         * gvaluetypes.[hc]: nuked G_TYPE_CCALLBACK, added
1827         g_value_set_string_take_ownership().
1828
1829         * *.h: s/G_IS_VALUE_/G_VALUE_HOLDS_/.
1830
1831         * *.[hc]: many fixes and cleanups.
1832
1833         * many warning improvements.
1834
1835 Tue Feb 27 18:35:15 2001  Tim Janik  <timj@gtk.org>
1836
1837         * gobject.c (g_object_get_valist): urg, pass G_VALUE_NOCOPY_CONTENTS
1838         into G_VALUE_LCOPY(), this needs proper documenting.
1839
1840         * gparam.c: fixed G_PARAM_USER_MASK.
1841
1842         * gtype.c (type_data_make_W): 
1843         (type_data_last_unref_Wm): fixed invalid memory freeing.
1844
1845         * gobject.c (g_object_last_unref): destroy signal handlers associated
1846         with object, right before finalization.
1847
1848         * gsignal.c (g_signal_parse_name): catch destroyed nodes or signals
1849         that don't actually support details.
1850
1851         * gobject.[hc]: got rid of property trailers. nuked GObject
1852         properties "data" and the "signal" variants.
1853         (g_object_connect): new convenience function to do multiple
1854         signal connections at once.
1855         (g_object_disconnect): likewise, for disconnections.
1856
1857         * gparam.[hc] (g_param_spec_pool_lookup): took out trailer support.
1858
1859         * gvalue.[hc]: marked g_value_fits_pointer() and g_value_peek_pointer()
1860         as private (the latter got renamed from g_value_get_as_pointer()).
1861
1862 2001-02-21  Tor Lillqvist  <tml@iki.fi>
1863
1864         * *.h: Use G_BEGIN_DECLS and G_END_DECLS.
1865
1866         * Makefile.am: Use libglib-1.3.la from top_builddir. Invoke
1867         libtool with -no-undefined for Win32 and Cygwin.
1868
1869 Wed Feb 21 18:31:46 2001  Jonathan Blandford  <jrb@redhat.com>
1870
1871         * gsignal.h (g_signal_connect): Add g_signal_connect define to
1872         make porting from gtk_signal_connect easy.
1873
1874         * gsignal.c (g_signal_emit_valist): Use G_TYPE_FROM_INSTANCE
1875         (instance) instead of node->itype when initting the value.
1876
1877 2001-02-17  Havoc Pennington  <hp@pobox.com>
1878
1879         Applied patch from Soeren Sandmann:
1880         
1881         * gvaluetypes.c (g_value_get_string): G_CONST_RETURN
1882
1883         * gtype.c (g_type_name): G_CONST_RETURN
1884
1885         * gsignal.c (g_signal_name): G_CONST_RETURN
1886
1887         * gobject-query.c (main): const fix
1888
1889 Sat Feb 17 07:58:46 2001  Tim Janik  <timj@gtk.org>
1890
1891         * genums.h (G_TYPE_IS_FLAGS): patch from sven to fixup
1892         G_ENUM_CLASS_TYPE() macro.
1893
1894 Sat Feb 17 04:55:35 2001  Tim Janik  <timj@gtk.org>
1895
1896         * gtype.[hc]: changed collect_format, collect_value() and lcopy_format,
1897         lcopy_value() in the GTypeValueTable. the collect functions are now
1898         called only once per value, collect_format/lcopy_format are strings
1899         that enlist all necessary GTypeCValues to be varargs-collected.
1900
1901         * gvalue.h: ranamed STATIC_TAG to G_VALUE_NOCOPY_CONTENTS to indicate that
1902         a value shouldn't copy its contents.
1903
1904         * gvaluecollector.h: changed G_VALUE_COLLECT() and G_VALUE_LCOPY()
1905         macros to carry an additional argument (flags) that can be used
1906         to pass G_VALUE_NOCOPY_CONTENTS along to the collection functions.
1907
1908         * *.c: adapted collect_value() and lcopy_value() functions to the new
1909         prototypes, support G_VALUE_NOCOPY_CONTENTS where apropriate.
1910
1911         * gsignal.[hc]: introduced a G_SIGNAL_TYPE_STATIC_SCOPE flag that can
1912         be passed along (ORed) with the parameter types, indicating that the
1913         emission arguments are to be considered static for the scope of the
1914         emission. should be used with care and only if the caller knows that
1915         a parameter cannot be destroyed/freed from signal handlers connected
1916         to an emission.
1917
1918 Fri Feb 16 07:10:44 2001  Tim Janik  <timj@gtk.org>
1919
1920         * gclosure.c:
1921         (g_closure_ref):
1922         (g_closure_sink): make closure sinking explicit.
1923
1924         * gsignal.c:
1925         (g_signal_connect_data): 
1926         (g_signal_connect_closure): 
1927         (g_signal_connect_closure_by_id): 
1928         (g_signal_newv): perform explicit closure sinking.
1929
1930 Thu Feb  8 00:31:45 2001  Tim Janik  <timj@gtk.org>
1931
1932         * gtype.h: added G_TYPE_DEBUG_NONE for/from Eric Lemings ;)
1933
1934 2001-02-04  Tor Lillqvist  <tml@iki.fi>
1935
1936         * gobject.def: Remove glib_debug_objects.
1937
1938 Sun Feb  4 07:30:53 2001  Tim Janik  <timj@gtk.org>
1939
1940         * gtype.[hc]: changed g_type_init() to take debugging flags
1941         initially, a combination of G_TYPE_DEBUG_OBJECTS and
1942         G_TYPE_DEBUG_SIGNALS. using the G_TYPE_ prefix is a bit odd
1943         here, but basically g_type_int() serves as initialization
1944         fucntion for all of GType, GObject, GSignal, so what the heck.
1945
1946         * gobject.c: special case debugging code properly.
1947         changed glib_trap_object_ref to g_trap_object_ref.
1948
1949         * gsignal.c: add signal emission debugging abilities, along with
1950         a new trap object g_trap_instance_signals.
1951
1952 2001-02-04  Tor Lillqvist  <tml@iki.fi>
1953
1954         * Makefile.am (progs_LDADD): Change order of libs to libgobject
1955         first, then libglib. Needed for cygwin, says jbdoll@kepri.re.kr.
1956
1957 Wed Jan 31 06:19:49 2001  Tim Janik  <timj@gtk.org>
1958
1959         * gparam.h: gtk-doc sucks for not dealing with #define inside enums.
1960
1961         * gtype.[hc]: added G_TYPE_FLAG_RESERVED_ID_BIT, a bit in the type
1962         number that's supposed to be left untouched (preserved mainly
1963         for the signal code).
1964
1965         * *.c: added thread safety code, based on an old patch from sebastian.
1966         the remaining thread safety issues are now datalists on pspecs (to be
1967         solved im gdataset.c) and gvalue.c where locking concerns value exchange
1968         functionality only, and that's soon to be revised.
1969
1970 2001-01-27  Tor Lillqvist  <tml@iki.fi>
1971
1972         * makefile.msc.in: Don't try to compile gmarshal.c on its own.
1973
1974 2001-01-24    <alexl@redhat.com>
1975
1976         * gclosure.c (g_closure_unref):
1977         Don't leak closure->notifiers.
1978
1979 2001-01-05  Havoc Pennington  <hp@redhat.com>
1980
1981         * gparamspecs.c (g_param_spec_enum): set the value_type in the
1982         param spec; closes bug 40210
1983         (g_param_spec_flags): ditto for flags
1984
1985 2001-01-03  Alexander Larsson  <alexl@redhat.com>
1986
1987         * gobject.c:
1988         Move glib_debug_objects out of the G_ENABLE_DEBUG #ifdef.
1989
1990 Thu Dec 28 11:36:44 2000  Tim Janik  <timj@gtk.org>
1991
1992         * gbsearcharray.c (upper_power2): disable G_BSEARCH_ALIGN_POWER2
1993         fucntionality if DISABLE_MEM_POOLS is defined.
1994
1995         * gtype.c: honour DISABLE_MEM_POOLS.
1996
1997         * gsignal.c (g_signal_init): flag signal key bsearch array with
1998         G_BSEARCH_ALIGN_POWER2 to avoid excessive growth time. honour
1999         DISABLE_MEM_POOLS.
2000
2001         * gparam.h: added G_PARAM_READWRITE alias for (G_PARAM_READABLE |
2002                                                        G_PARAM_WRITABLE).
2003
2004 2000-12-15  Tor Lillqvist  <tml@iki.fi>
2005
2006         * gobject.def: Update.
2007
2008 2000-12-15  Havoc Pennington  <hp@pobox.com>
2009
2010         * gobject.c (g_object_do_class_init): use g_signal_newc
2011
2012         * gsignal.c (g_signal_newc): convenience function for signals
2013         created from C
2014         (g_signal_new_valist): added
2015         (g_signal_new): removed
2016
2017 Fri Dec 15 04:40:23 2000  Tim Janik  <timj@gtk.org>
2018
2019         * gparam.[hc]: add an instance member value_type so the default
2020         value of the pspec class can be overridden.
2021
2022 2000-12-14  Tor Lillqvist  <tml@iki.fi>
2023
2024         * makefile.mingw.in: Update, include parts from Makefile.am to
2025         build gmarshal.[ch]. Some day, we won't need these separate
2026         makefiles for Win32 compilation. I hope.
2027
2028         * makefile.msc.in: Update. No use trying to build gmarshal.[ch]
2029         here, it would require Unixish tools. MSVC users building from CVS
2030         sources are out of luck.
2031         
2032         * gobject.def: Update.
2033
2034 Wed Dec 13 09:31:26 2000  Tim Janik  <timj@gtk.org>
2035
2036         * gparamspecs.[hc]: add G_TYPE_PARAM_BOXED implementation.
2037
2038         * gobject.[hc]: minor fixes.
2039
2040 Tue Dec 12 23:38:02 2000  Tim Janik  <timj@gtk.org>
2041
2042         * Makefile.am: _never_ touch oldest-source-stamp.
2043         
2044         * gobject.[hc]: construct property handling fixes/improvements.
2045         fixed trailer handling in get/set property.
2046         
2047         * gparam.[hc]: implement param spec pool, got rid of param spec
2048         hashtable. the most prominent change is that e deal with type
2049         prefixes here.
2050         
2051 2000-12-12  Elliot Lee  <sopwith@redhat.com>
2052
2053         * Makefile.am:
2054           . You have to 'touch oldest-source-stamp' if you want to avoid having
2055           the Makefile constantly rebuild itself.
2056           . Fix marshaller generation rules to work with srcdir != builddir
2057             (there were issues with trying to run "./glib-genmarshal", etc.)
2058
2059 Mon Dec 11 04:44:11 2000  Tim Janik  <timj@gtk.org>
2060
2061         * gboxed.c: fixed dealing with collection/lcopy of NULL values.
2062         
2063         * gclosure.h: removed insane ramblings, added G_CALLBACK() a casting
2064         convenience macro.
2065         
2066         * Makefile.am: cleanups, marshaller generation rules.
2067         
2068         * gmarshal.[hc]: new files with GRuntime standard marshallers.
2069         
2070         * glib-genmarshal.c: fix log domain, support gruntime standard 
2071         marshallers, suport G_TYPE_PARAM, come with extern "C" and
2072         #include gmarshal.h.
2073         
2074         * glib-genmarshal.1: reflect glib-genmarshal.c updates.
2075         
2076         * gobject.[hc]: implement object constructor. rework parameter
2077         changed notification queueing, we support queue freezes now and
2078         don't dispatch from an idle handler anymore.
2079         parameter->property rename hassle.
2080         implemented ::properties_changed and ::notify::* signals for
2081         property change notification (the later supports property names
2082         as details). added signal connection and named data properties.
2083         (g_signal_connect_object): new function to setup while_alive
2084         connections.
2085         (g_object_class_install_property): sink properties now, since they
2086         are initially floating.
2087         (g_object_steal_data):
2088         (g_object_set_data_full):
2089         (g_object_set_data):
2090         (g_object_get_data): set/get data by using g_datalist_*() functions
2091         directly.
2092         (g_object_queue_param_changed): nuked.
2093         (g_object_freeze_notify): start queueing of property changes (freeze/
2094         thaw calls stack).
2095         (g_object_notify): announce changes of a certain property directly.
2096         (g_object_thaw_notify): process queue of property changes, therefore
2097         emitting GObject::notify::detail with detail being the changed
2098         properties names.
2099         (G_OBJECT_WARN_INVALID_PROPERTY_ID): saner macro variant of former
2100         G_WARN_INVALID_PARAM_ID().
2101         
2102         * gparam.[hc]: param specs are now initially floating and need to be
2103         sunken with g_param_spec_sink(), support G_TYPE_PARAM values.
2104         added G_PARAM_CONSTRUCT and G_PARAM_CONSTRUCT_ONLY parameter flags,
2105         required by GObjectClass.constructor().
2106         
2107         * gparamspecs.[hc]: added GParamSpecParam, GParamSpecPointer and
2108         GParamSpecCCallback, param specs for G_TYPE_PARAM, G_TYPE_POINTER
2109         and G_TYPE_CCALLBACK respectively.
2110         
2111         * gsignal.[hc]: cleanups.
2112         (signal_id_lookup): after walking the anchestry, try interfaces as well.
2113         (g_signal_new): new function to create signals from varargs type list.
2114         (g_signal_connect_closure): closure connection variant that works from
2115         signal name+detail.
2116         (g_signal_connect_data): c handler connection variant that works from
2117         signal name+detail.
2118         (g_signal_emit_valist): emit signal for an instance with paraneters
2119         collected from a va_list.
2120         (g_signal_emit): emit signal, taking parameters from varargs list.
2121         (g_signal_emit_by_name): same as g_signal_emit, working from
2122         signal name+detail.
2123         (signal_emit_R): return whether return_value needs to be altered.
2124         
2125         * gtype.[hc]: set log-domain to GRuntime, i'm slowly getting to all
2126         the points that need to reflect the upcoming rename.
2127         melt g_type_conforms_to() functionality into g_type_is_a(), as that
2128         is what we really want (liskov substitution principle).
2129         assorted changes to other files due to conforms_to->is_a.
2130
2131         * gvalue.[hc]: implemented g_value_set_instance() that sets a value
2132         from an instantiatable type via the value_table's collect_value()
2133         function (based on an idea from James Henstridge <james@daa.com.au>).
2134         cleanups/fixes.
2135         
2136         * gvaluetypes.[hc]: implement G_TYPE_CCALLBACK and G_TYPE_PARAM.
2137
2138 Wed Nov 29 13:30:05 2000  Tim Janik  <timj@gtk.org>
2139
2140         * gsignal.c (handlers_find): fix elliots "logic fix" that dereferences
2141         NULL nodes if C handlers are searched for specific signals.
2142
2143 2000-11-28  Elliot Lee  <sopwith@redhat.com>
2144
2145         * gsignal.c: Fix warnings about possible use of uninitialized
2146         variables, and fix logic that would leave 'node' unset in cases
2147         that it might be used in.
2148
2149         * glib-genmarshal.c: Fix warning about printf format.
2150
2151 2000-11-28  Tor Lillqvist  <tml@iki.fi>
2152
2153         * gboxed.c: Include <string.h> for memset ().
2154
2155 2000-11-22  Tor Lillqvist  <tml@iki.fi>
2156
2157         * gobject.def: Update.
2158
2159 2000-11-20  Havoc Pennington  <hp@redhat.com>
2160
2161         * gobject.c (g_object_get_data)
2162         (g_object_set_data)
2163         (g_object_set_data_full)
2164         (g_object_steal_data): More convenient data-setting functions
2165
2166 Wed Nov 15 20:58:05 2000  Owen Taylor  <otaylor@redhat.com>
2167
2168         * gtypemodule.c (g_type_module_use): If loading the
2169         module fails, don't increment the use count.
2170
2171 Thu Nov  9 01:49:43 2000  Tim Janik  <timj@gtk.org>
2172
2173         * gobject.h (G_WARN_INVALID_PARAM_ID): doh,
2174         s/BSE_OBJECT_TYPE_NAME/G_OBJECT_TYPE_NAME/; reported by Maas-Maarten
2175         Zeeman <maas@wanadoo.nl>.
2176
2177 Mon Nov 13 00:48:39 2000  Owen Taylor  <otaylor@redhat.com>
2178
2179         * Makefile.am (EXTRA_DIST): Add glib-genmarshal.1
2180
2181 2000-11-11  Tor Lillqvist  <tml@iki.fi>
2182
2183         * gtypemodule.c: Include stdlib.h for exit().
2184
2185         * makefile.{mingw,msc}.in (gobject_OBJECTS): Add gtypemodule.
2186
2187         * gobject.def: Add missing functions.
2188
2189 Sun Nov  5 13:21:28 2000  Owen Taylor  <otaylor@redhat.com>
2190
2191         * Makefile.am gtypemodule.[ch]: New basic implementation of
2192         GTypePlugin interface as a GObject. Dynamically loaded modules can
2193         register any number of types and interface on the module.
2194
2195 Sun Nov  5 10:25:40 2000  Owen Taylor  <otaylor@redhat.com>
2196
2197         * gsignal.c (handlers_find): When appending handlers and
2198         not matching on signal_id, use hlist->signal_id instead of 
2199         signal_id. Having the correct signal_id when unreffing
2200         the handlers makes things work a lot better.
2201
2202 2000-11-05  Tor Lillqvist  <tml@iki.fi>
2203
2204         * makefile.{mingw,msc}.in (gobject_OBJECTS): Add gtypeplugin.
2205
2206         * gobject.def: Update.
2207
2208 Sun Nov  5 05:22:55 2000  Tim Janik  <timj@gtk.org>
2209
2210         * gsignal.c:
2211         fixed a bag full of subtle bugs of immensive screw-up potential in
2212         handlers_find(), luckily no one found out about them yet ;)
2213         fixed signal_handlers_foreach_matched_R() so it operates on an
2214         initial handler list snapshot provided by handlers_find() to work
2215         around general reentrancy problems and to avoid multiple callback()
2216         invocations on the same handlers.
2217         this code is now officially 80% bug free (10% remaining for interface
2218         types, and 10% remaining for destroyed signals ;)
2219         
2220 Sat Nov  4 02:01:33 2000  Tim Janik  <timj@gtk.org>
2221
2222         * gsignal.c (_g_signals_destroy): valid signal nodes start out at 1.
2223
2224         * gtypeplugin.[hc]: new files holding a GTypePlugin interface
2225         implementation that provides the API required by GType to deal with
2226         dynamically loadable types.
2227
2228         * gtype.[hc]: displace any GTypePlugin business to gtypeplugin.h.
2229
2230 Fri Nov  3 07:35:00 2000  Tim Janik  <timj@gtk.org>
2231
2232         * gsignal.[hc]: prefix internal functions with '_'. renamed
2233         g_signal_connect_closure() to g_signal_connect_closure_by_id().
2234         added g_signal_parse_name() to retrive signal_id and detail quark
2235         from a signal name (internal).
2236
2237 Wed Nov  1 03:36:54 2000  Tim Janik  <timj@gtk.org>
2238
2239         * gobject.c (g_object_base_class_finalize): destroy all signals that
2240         the finalized obejct type introduced.
2241
2242         * gsignal.c (g_signals_destroy): don't require itype to have
2243         signals.
2244
2245         * gobject.c (g_object_do_finalize): make sure all signal handlers
2246         are destroyed.
2247
2248         * gsignal.[hc]:
2249         (g_signal_handler_find): only match on non-0 masks.
2250         (g_signal_handlers_block_matched):
2251         (g_signal_handlers_unblock_matched):
2252         (g_signal_handlers_disconnect_matched): new functions to block/unblock
2253         or disconnect handlers in groups.
2254
2255 2000-10-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2256
2257         * gvalue.c (exchange_entries_equal), gparam.c (param_spec_equals):
2258         made both functions return gboolean just for the little extra
2259         standard conformance now that GEqualFunc is introduced.
2260
2261 Mon Oct 30 05:52:45 2000  Tim Janik  <timj@gtk.org>
2262
2263         * gsignal.c (g_signal_list_ids): get rid of inline documentation owen
2264         added, the doc system would ignore it anyways (for some reason not
2265         aparent to me).
2266
2267 Mon Oct 30 03:00:07 2000  Tim Janik  <timj@gtk.org>
2268
2269         * gsignal.[hc] (g_signal_list_ids): renamed owen's g_type_signals(),
2270         added required mutex locks.
2271
2272 Sun Oct 29 02:31:03 2000  Owen Taylor  <otaylor@redhat.com>
2273
2274         * gsignal.c (g_type_signals): Fix problem where signals
2275         with "_" in them appeared twice in the result array.
2276
2277 Sun Oct 29 01:58:44 2000  Owen Taylor  <otaylor@redhat.com>
2278
2279         * gsignal.h: Add g_type_signals() - a function to list
2280         all signals for a given type.
2281
2282 Sat Oct 28 00:28:09 2000  Tim Janik  <timj@gtk.org>
2283
2284         * gclosure.c (g_closure_add_marshal_guards): fixed notifier position
2285         for post_marshal guard which was off at 0.
2286
2287 Fri Oct 27 21:49:31 2000  Tim Janik  <timj@gtk.org>
2288
2289         * gobject.[hc]: doh, fix argument order in for
2290         g_cclosure_new_object_swap and g_cclosure_new_object.
2291
2292 2000-10-28  Tor Lillqvist  <tml@iki.fi>
2293
2294         * makefile.{mingw,msc}.in: Make glib-genmarshal.exe.
2295
2296         * glib-genmarshal.c: Conditionalise include of unistd.h.
2297         Include <io.h> on Win32.
2298
2299         * gobject.def: Add some missing entry points.
2300
2301 Fri Oct 27 16:33:41 2000  Tim Janik  <timj@gtk.org>
2302
2303         * gsignal.[hc]: publically define GSignalInvocationHint structure
2304         that gets passed in to closure invocations. added signal details.
2305         renamed GSignalType to GSignalFlags to comply with conventions.
2306         quite some cleanups and minor fixes. avoid uneccessary handler list
2307         walks upon invokation of after handlers. relookup handler list for
2308         restarted emissions. preliminary abort normal handler invokation if
2309         after handler is encountered.
2310
2311         * glib-genmarshal.c:
2312         * gclosure.[hc]: moved invocation_hint to the end of the
2313         g_closure_invoke() arguments as sugegsted by kenelson.
2314         also made it a gpointer to be more generic. the invocation_hint
2315         is a caller specific thing that can be used to pass additional
2316         data in to closure invocations as documented with the caller
2317         invoking the closure.
2318
2319 Fri Oct 27 05:35:14 2000  Tim Janik  <timj@gtk.org>
2320
2321         * gobject.c (g_object_watch_closure): fixed realloc bug, reported
2322         by havoc.
2323
2324         * gsignal.c (g_signal_newv): fixed deadlock scenarion where
2325         g_signal_lookup() would be called with the signal lock being
2326         held. reported by james henstridge.
2327
2328         * gclosure.c (g_closure_set_meta_marshal): fixed memcpy/overwrite bug
2329         reported by owen.
2330
2331 2000-10-26  Tor Lillqvist  <tml@iki.fi>
2332
2333         * gbsearcharray.c (bsearch_array_insert): Fix gccisms (pointer
2334         arithmetic on void pointer, label without statement following.
2335
2336         * gtype.c (type_node_fundamental_info): Don't apply unary minus to
2337         result of sizeof operator, it can be unsigned. Cast first to
2338         gssize.
2339
2340         * gobject.def: Add new functions.
2341
2342         * makefile.{mingw,msc}.in: Add new objects.
2343
2344 2000-10-26  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2345
2346         * Makefile.am: Remove empty SUBDIRS line _again_, as that _still_
2347         prevents 'make dist' from working.
2348
2349 Wed Oct 25 19:11:03 2000  Owen Taylor  <otaylor@redhat.com>
2350
2351         * gbsearcharray.h (g_bsearch_array_get_nth): Don't use implicit
2352         casts from void * since this will get included from C++ too
2353         at times.
2354         
2355 Thu Oct 26 00:30:27 2000  Tim Janik  <timj@gtk.org>
2356
2357         * gvaluetypes.[hc]: added g_value_set_static_string().
2358
2359         * gboxed.[hc]: const corrections. added g_value_set_static_boxed().
2360
2361 Wed Oct 25 20:27:02 2000  Tim Janik  <timj@gtk.org>
2362
2363         * gtype.c (g_type_free_instance): for the moment, freeing object
2364         structures will fill their memory portion with 0xAA. there's a
2365         FIXME there, remove this line at a later point.
2366
2367 Tue Oct 24 23:10:26 2000  Tim Janik  <timj@gtk.org>
2368
2369         * glib-genmarshal.1:
2370         * glib-genmarshal.c: added publically installed marshaller generator.
2371
2372         * gtype.h: added G_TYPE_INSTANCE_GET_INTERFACE() to retrive a certain
2373         interface VTable from instances.
2374
2375 Mon Oct 23 08:28:15 2000  Tim Janik  <timj@gtk.org>
2376
2377         * gobject.[hc]: new functions for closure maintenance:
2378         (g_object_watch_closure): maintain validity of the object and
2379         the closure for objects that are used as data part of a closure.
2380         (g_cclosure_new_object): convenience function to create C closures
2381         that have an object as data argument.
2382         (g_closure_new_object): convenience function to create closures
2383         that have an object as data argument.
2384
2385         * gclosure.[hc]: implementation of GClosure mechanism.
2386         a closure is basically an encapsulation of a callback function
2387         and its environment. ideally, most places supporting callback
2388         functions will simply take a GClosure* pointer and thus unify
2389         callback environments wrg destroy notification etc.
2390         GClosure provides destroy notifiers for arbitrary data pointers,
2391         reference counting, invalidation notification (it can be invalidated
2392         which is merely a deactivate state) and a marshallinbg abstraction.
2393         GCClosure is also provided in these files, they present a specialized
2394         GClosure implementation for C language callbacks.
2395
2396         * genum.c: macro cleanups.
2397         
2398         * gboxed.[hc]: new files, for boxed type abstraction.
2399         (g_boxed_copy): copy a boxed structure
2400         (g_boxed_free): free a boxed structure
2401         (g_value_set_boxed):
2402         (g_value_get_boxed): standard GValue functions for boxed types
2403         (g_boxed_type_register_static): convenience function for easy
2404         introduction of new G_TYPE_BOXED derivatives.
2405
2406         * gparam.[hc]: introduced g_param_type_register_static(), a short hand
2407         for creation of new GParamSpec derived types.
2408
2409         * gtype.[hc]: many fixes, introduced ability to flag individual
2410         type nodes as ABSTRACT upon registration, added value_peek_pointer()
2411         to the value table to peek at GValue contents as a pointer for types
2412         that support this. fixed up GValue checks.
2413
2414         * gvalue.[hc]: added g_value_fits_pointer() and g_value_get_as_pointer()
2415         to peek at the value contents as pointer.
2416
2417         * *.[hc]: adaptions to type macro fixes and changes in the type
2418         registration API.
2419
2420         * many const corrections over the place.
2421
2422 Sat Oct 21 02:49:56 2000  Tim Janik  <timj@gtk.org>
2423
2424         * gtype.c (g_type_conforms_to): this function basically behaves like
2425         and is_a check, except that it _additionally_ features interfaces
2426         for instantiatable types. enforce this in the second branch as well
2427         (`type' conforms_to `type') even if `type' is not an interface type.
2428
2429 Fri Oct 20 15:31:04 2000  Tim Janik  <timj@gtk.org>
2430
2431         * gvaluetypes.[hc]: added G_TYPE_POINTER implementation from jrb.
2432
2433         * gtype.[hc]:
2434         * gobject.c:
2435         * gvaluetypes.c: added GTypeValueTable.value_peek_pointer and
2436         suitable implementations of this for G_TYPE_STRING, G_TYPE_OBJECT
2437         and G_TYPE_POINTER.
2438
2439 Mon Aug 21 04:13:37 2000  Tim Janik  <timj@gtk.org>
2440
2441         * gbsearcharray.[hc]: long standing needed generic implementation
2442         of a binary searchable, sorted and dynamically sized array.
2443
2444 2000-10-15  Raja R Harinath  <harinath@cs.umn.edu>
2445
2446         * Makefile.am (BUILT_EXTRA_DIST): New variable.
2447         (dist-hook): Handle $(BUILT_EXTRA_DIST).
2448         (*): Remove traces of @STRIP_{BEGIN,END}@.
2449         
2450 2000-09-29  Martin Baulig  <baulig@suse.de>
2451         
2452         Several minor ANSI C fixes.
2453
2454         Added missing casts:
2455         * gtype.c (type_class_init): 
2456         `(gpointer) bnode->data->class.class_init_base'
2457         in call to g_slist_prepend() and
2458         'GBaseInitFunc class_init_base = (GBaseInitFunc) slist->data'.
2459
2460         * gobject.c: Put text following #endif into comments.
2461
2462 2000-09-25  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2463
2464         * Makefile.am: Remove empty SUBDIRS line, as that prevents make
2465         dist from working.
2466
2467 Sat Sep  9 20:04:13 2000  Owen Taylor  <otaylor@redhat.com>
2468
2469         * gobject.c (g_object_last_unref): Move call to
2470         g_type_free_instance() here from g_object_do_finalize,
2471         since g_type_free_instance() can unload the object's
2472         implementation.
2473
2474 2000-07-27  Tor Lillqvist  <tml@iki.fi>
2475
2476         * gobject.c: No, don't mark glib_debug_objects for export here,
2477         it's handled specially in gtktypeutils.c.
2478
2479         * gobject.def: Export g_type_fundamental_last (the function).
2480
2481 2000-07-26  Tor Lillqvist  <tml@iki.fi>
2482
2483         * gobject.def
2484         * gobject.c: Mark glib_debug_objects for export/import as it is
2485         used by GTK+.
2486
2487 Sun Jul 23 17:23:35 2000  Tim Janik  <timj@gtk.org>
2488
2489         * gtype.[hc]: make g_type_fundamental_last() a function, avoiding all
2490         that extern variable clutter and avoiding further problems with thread
2491         safety.
2492
2493 2000-07-19  Tor Lillqvist  <tml@iki.fi>
2494
2495         * gparam.h
2496         * gvalue.h
2497         * gparam.c
2498         * gtype.c: Shut up Sun's picky compiler.
2499
2500 2000-07-14  Tor Lillqvist  <tml@iki.fi>
2501
2502         * gobject.def: Add g_type_get_plugin.
2503
2504 Thu Jul 13 02:07:54 2000  Tim Janik  <timj@gtk.org>
2505
2506         * gparam.c (g_param_value_defaults): default initialize the temporary
2507         default value, instead of nuking the caller's value contents.
2508
2509 2000-07-11  Raja R Harinath  <harinath@cs.umn.edu>
2510
2511         * gtype.c (g_type_get_plugin): Don't return just 0 or 1.
2512
2513 Tue Jul 11 02:48:13 2000  Tim Janik  <timj@gtk.org>
2514
2515         * gtype.[hc]: removed g_type_is_dynamic() and added g_type_get_plugin().
2516
2517 2000-07-10  Tor Lillqvist  <tml@iki.fi>
2518
2519         * gobject-query.c: Include ../config.h for HAVE_UNISTD_H. Use it
2520         to guard inclusion of <unistd.h>.
2521
2522         * gtype.h: Fix copy-paste errors in the ifdefs on how to declare a
2523         variable for export. Call the macro GOBJECT_VAR.
2524
2525         * gtype.c: Declare _g_type_fundamental_last for export here, too.
2526         (type_node_any_new): Use only constant expressions for sizeof
2527         operator (for instance MSVC requires this).
2528
2529         * makefile.mingw.in: Define GOBJECT_COMPILATION.
2530
2531 Sun Jul  9 21:21:46 2000  Owen Taylor  <otaylor@redhat.com>
2532
2533         * genums.c: Move string.h include into the .c file
2534         instead of where it was in the .h file by mistake.
2535
2536 Thu Jul  6 15:30:27 2000  Owen Taylor  <otaylor@redhat.com>
2537
2538         * Makefile.am (EXTRA_DIST): dist fixes.
2539
2540         * gobject.c: Add a global variable glib_debug_objects
2541         (not in header file) to control object tracing.
2542
2543 2000-07-01  Tor Lillqvist  <tml@iki.fi>
2544
2545         * gobject.def: Update added and renamed entry points.
2546
2547         * makefile.mingw.in: Add gvaluetypes.o.
2548
2549 Thu Jun 29 16:02:07 2000  Owen Taylor  <otaylor@redhat.com>
2550
2551         * gobject.c:include string.h for memset
2552         * genums.h: include string.h for strcpy
2553         * gvalue.c: include string.h for memset, memcpy.
2554
2555 Sat Jun 24 23:03:04 2000  Tim Janik  <timj@gtk.org>
2556
2557         * gtype.[hc]: provide G_TYPE_CHAR, G_TYPE_UCHAR, G_TYPE_BOOLEAN,
2558         G_TYPE_INT, G_TYPE_UINT, G_TYPE_LONG, G_TYPE_ULONG, G_TYPE_FLOAT,
2559         G_TYPE_DOUBLE and G_TYPE_STRING fundamental types.
2560         added a GTypeValueTable* pointer to GTypeInfo structure for types
2561         to implement GValue handling functions.
2562         GTypeValueTable contains the following members:
2563           value_init(): initialize a GValue structure.
2564           value_free(): free GValue structure contents (optional).
2565           value_copy(): copy one GValue contents to another GValue structure of
2566           collect_type: varargs collection type for the first variable argument
2567           to be collected by collect_value().
2568           collect_value(): variable arguments collection function (optional).
2569           lcopy_type: varargs collection type for the first variable argument
2570           to be location copyied by lcopy_value().
2571           lcopy_value(): variable arguments location copy function (optional).
2572         g_type_value_table_peek(): new function to retrive the GTypeValueTable*
2573         for a type node. ValueTables get inherited from parent types, unless
2574         overridden through the GTypeInfo structure. internally, GTypeValueTable
2575         support means an added overhead of one pointer per static or used
2576         dynamic type node.
2577         g_type_add_class_cache_func(): provide a cache_func/data pair to be
2578         called  prior to a type nodes last_unref() function, this can be used
2579         to prevent premature class destruction. multiple installed cache_func()
2580         will be chained upon last_unref() untill one of them returns TRUE.
2581         the cache_func()s have to check the class id passed in to figure whether
2582         they actually want to cache the class of this type (since all classes
2583         are routed through the cache_func() chain).
2584         g_type_remove_class_cache_func(): remove a previously installed
2585         cache_func/data pair. the cache maintained by this function has to be
2586         clear when calling g_type_remove_class_cache_func() to avoid leaks.
2587         g_type_class_unref_uncached(): class unref function for cache_func()
2588         implementations, unreferences a class omitting the cache chain (and
2589         therefore unref->cache->unref->... loops).
2590
2591         * gvaluetypes.[hc]: provide the value setters/getters for the primitive
2592         fundamental types boolean, char, uchar, int, uint, long, ulong, float,
2593         double and string.
2594
2595         * gvalue.[hc]: provide G_TYPE_IS_VALUE() in terms of whether a
2596         GTypeValueTable is provided for this type.
2597         removed g_value_init_default(), g_value_validate(), g_value_defaults(),
2598         g_value_set_default() and g_values_cmp() as these are supplied by the
2599         GParamSpec API now.
2600         moved g_values_exchange() into the "implementation details" section,
2601         since it just provides the underlying functionality for
2602         g_value_convert().
2603
2604         * gvaluecollector.h: renamed the varargs value container from
2605         GParamCValue to GTypeCValue as the value collection methods are
2606         supplied by the type system now.
2607         G_PARAM_COLLECT_VALUE() and G_PARAM_LCOPY_VALUE() got renamed to
2608         G_VALUE_COLLECT() and G_VALUE_LCOPY() and operate without a
2609         GParamSpec structure now.
2610
2611         * genums.h: macros cleanups/fixes.
2612
2613         * genum.c: provide G_TYPE_ENUM and G_TYPE_FLAGS type
2614         and assorted g_value_{s|g}et_{enum|flags}() implementations.
2615
2616         * gobject.[hc]:
2617         provide G_IS_VALUE_OBJECT(), G_TYPE_OBJECT ValueTable methods
2618         and g_value_{s|g}et_object().
2619
2620         * gparam.[hc]: reduced class to value_set_default(),
2621         value_validate() and values_cmp(). also parameters now need to fill
2622         in a GType value_type; field to indicate the GValue type they
2623         are handling. provide g_param_value_set_default(),
2624         g_param_value_defaults(), g_param_value_validate() and
2625         g_param_values_cmp().
2626
2627         * gparamspecs.[hc]: got rid of the g_value_* functions and
2628         the G_IS_VALUE_* macros. adapted param spec implementations
2629         according to the GParamSpecClass changes.
2630
2631 Sat Jun 10 08:38:27 2000  Tim Janik  <timj@gtk.org>
2632
2633         * gtype.c (type_class_init): fetch the nth iface entry of the
2634         type node in the nth loop iteration, not alwys the first.
2635         bug discovered by Walt Pohl <cher@suitware.com>.
2636         (type_data_finalize_class_ifaces): same here, cut and paste
2637         rulez.
2638
2639 Wed Jun  7 09:21:05 2000  Owen Taylor  <otaylor@redhat.com>
2640
2641         * Makefile.am (INCLUDES): Add top_builddir so glibconfig.h
2642         is found properly when build srcdir != builddir. (Patch from
2643         Eric Lemings)
2644
2645 2000-05-13  Tor Lillqvist  <tml@iki.fi>
2646
2647         * makefile.mingw.in
2648         * gobject.def
2649         * gobject.rc.in: New files, for Win32 (mingw) build.
2650
2651         * Makefile.am: Add to EXTRA_DIST. Add rules to produce the
2652         corresponding non-*.in files.
2653
2654         * gtype.h: (Win32:) Mark _g_type_fundamental_last for
2655         export/import from DLL.
2656
2657 Fri May  5 01:15:48 2000  Tim Janik  <timj@gtk.org>
2658
2659         * gtype.h: add reserved fundamental ids for gtk types (for transition
2660         time). added G_TYPE_FUNDAMENTAL_MAX for gtk.
2661
2662 Mon Apr 17 20:45:50 2000  Tim Janik  <timj@gtk.org>
2663
2664         * glib-gobject.c (g_object_base_class_finalize): oops, don't unset
2665         n_params prior to destructing them.
2666
2667 Tue Apr 11 04:28:10 2000  Tim Janik  <timj@gtk.org>
2668
2669         * fixed a couple of bugs in the initial parameter/object
2670         implementations, after getting beast running on GObject and GValue.
2671
2672 Fri Apr  7 04:27:49 2000  Tim Janik  <timj@gtk.org>
2673
2674         * glib-gobject.[hc]: completed parameter set/get implementations,
2675         along with asyncronous parameter changed notification queue.
2676
2677 Sun Apr  2 04:54:36 2000  Tim Janik  <timj@gtk.org>
2678
2679         * glib-gobject.[hc]: GObject implementation, that is facilities
2680         for setting/getting quarked data and reference counting.
2681
2682         * glib-gparamspecs.[hc]: first actuall parameter implementations
2683         for GLib, so far we have: char, uchar, bool, int, uint, long,
2684         ulong, enum, flags, float, double, string and object. each of these
2685         GParamSpecs is a new instantiatable type in its own respect,
2686         so the .c file derives 13 new types from G_TYPE_PARAM and
2687         defines over 50 (*2) conversion facilities.
2688
2689         * glib-gvaluecollector.h: generic varargs handling stubs for
2690         GParamSpecs, private header file (does get installed for
2691         inclusion into user code though).
2692
2693         * glib-gvalue.[hc]: GValue functionality implementation.
2694
2695         * glib-gparam.[hc]: basis GParamSpec implementation for
2696         the virtual base type G_TYPE_PARAM.
2697
2698         * glib-genums.[hc]: enum/flags type implementation, based on
2699         bseenum.[hc].
2700
2701         * glib-gtype.[hc]: GLib Type System implementation, heavily
2702         based on BSE's dynamic type system.