X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gobject%2FChangeLog;h=3d6f8616b0ce7ddf8373e4ae1c21dbcd3e772675;hb=04b78cfe4a688879b1048d2c16ace9eb8fb2e442;hp=4dc481a0ca2e38e4dbd1f3539dabf372adf7bfa0;hpb=0022ef1b04127706c0340d740e9985f7e6913491;p=platform%2Fupstream%2Fglib.git diff --git a/gobject/ChangeLog b/gobject/ChangeLog index 4dc481a..3d6f861 100644 --- a/gobject/ChangeLog +++ b/gobject/ChangeLog @@ -1,3 +1,627 @@ +2001-07-29 Hans Breuer + + * gobject.def : updated externals + +2001-07-20 Hans Breuer + + * gobject.def : updated externals + + * makefile.msc.in : reflect glib move + +Tue Jul 10 18:50:16 2001 Tim Janik + + * gsignal.h (struct _GSignalQuery): fix misplaced comment. + +Mon Jul 2 07:17:47 2001 Tim Janik + + * gobject.c (g_object_weak_ref): + (g_object_watch_closure): congrats tim, introducing of-by-one + errors like on my very first day of C programming. + +Sat Jun 30 11:07:00 2001 Tim Janik + + * gobject.[hc]: provide weak_ref/weak_unref functions, + invoked from ->dispose. renamed ->shutdown() to ->dispose(), + provide "public" API entry here: g_object_run_dispose(), this + fucntion should _only_ be called from object system implementations + (e.g. gtkobject.c) if at all. + + * gtypemodule.c (g_type_module_dispose): s/shutdown/dispose/ + + * gsignal.h: removed compat aliases. + + * gobject.c (g_object_connect): support data objects. + +Sat Jun 30 13:17:12 2001 Owen Taylor + + * testgruntime.c (test_object_class_init) + gobject.c (g_object_do_class_init): + g_signal_newc() => g_signal_new(). + +Thu Jun 28 22:49:40 2001 Owen Taylor + + * gtype.[ch] gobject-query.c testgruntime.c: Remove + debug flag argument to g_type_init() and add + g_type_init_with_debug_flags(). + +Thu Jun 28 16:42:49 2001 Tim Janik + + * gsignal.c (g_signal_lookup): + (g_signal_list_ids): give elaborate warnings about invalid types, + non-instantiatable types and unloaded types that we can't operate on. + + * gparam.[hc]: g_param_spec_pool_belongings() -> + g_param_spec_pool_list_owned(). + + * gsignal.[hc]: renamed: + g_signal_newc -> g_signal_new + g_signal_disconnect_by_func -> g_signal_handlers_disconnect_by_func + g_signal_block_by_func -> g_signal_handlers_block_by_func + g_signal_unblock_by_func -> g_signal_handlers_unblock_by_func + added GConnectType to simplify (..gboolean swapped, gboolean after) + args. + + * gobject.[hc]: changed prototypes accordingly. + +2001-06-22 Hans Breuer + + * gobject.def : updated externals + + * gobjectnotifyqueue.c : include for memset () + +Thu Jun 21 02:43:10 2001 Tim Janik + + * gparamspecs.h: s/long/int/ for default_value in enum and flags + pspecs. + +Wed Jun 20 03:59:42 2001 Tim Janik + + * gtype.[hc]: added debugging variants g_type_name_from_class(), + g_type_name_from_instance(). + +Mon Jun 11 17:07:06 2001 Tim Janik + + * gboxed.[hc]: remove left-over usages of an anonymous GBoxed typedef. + + * gobjectnotifyqueue.c: moved property notify queue implementation + bits into this function. + + * gparam.[hc]: added g_param_spec_pool_belongings(), completed + g_param_spec_pool_list(). added GParameter for _setv() functions. + + * gobject.[hc]: use gobjectnotifyqueue.h implementation now. + got rid of properties_changed signal. + new functions g_object_newv(), g_object_class_list_properties(). + removed "properties_changed" signal. + + * gtype.[hc]: added g_type_depth() to figure number of parent + types + 1 for a type. + + * gsignal.h: add g_signal_connect() (as per owen's request) and + g_signal_connect_swapped(). + +2001-06-13 Havoc Pennington + + * Makefile.am (progs_LDADD): link to ./libgobject-1.3.la + since an installed libgobject was somehow being found; think + it's a libtool bug, but this workaround should do for now. + +2001-06-12 Havoc Pennington + + * Makefile.am (glib-mkenums): don't put $(srcdir)/glib-mkenums in + bin_SCRIPTS, that breaks make install. Instead put 'glib-mkenums' + in bin_SCRIPTS and cp it into builddir + +Thu May 31 17:56:47 2001 Owen Taylor + + * gobject-query.c: Fix mispelling in help output. + (#53952, Skip Montanaro) + +2001-05-28 Sebastian Wilhelmi + + * Makefile.am (EXTRA_DIST): Really distribute glib-mkenums, now + that bin_SCRIPTS doesn't seem to care about doing so anymore. + +Mon May 28 06:51:24 2001 Tim Janik + + * gsignal.c (signal_emit_unlocked_R): fixed bad faux-pass, forgot + to release signal lock when restarting emissions. + +Sun May 27 04:52:28 2001 Tim Janik + + * gsignal.[hc] (g_signal_stop_emission_by_name): added variant + to stop signal emissions through a detailed_signal string. + + * gsignal.c (signal_emit_R) (g_signal_emit_valist): account for + the fact that g_value_* functions may cause signal emissons by + unlocking the global signal system lock around g_value_* functions. + (signal_emit_unlocked_R): renamed this from signal_emit_R() to reflect + that this functions acquires the lock on its own now. + +2001-05-24 Hans Breuer + + * makefile.msc.in : changed depndencies to build glib-genmarshal + first and statically linked with glib, which makes it independent + from the installed glib version. Added new object files to build. + + * gobject.def : updated + +Thu May 24 08:52:02 2001 Owen Taylor + + * gobject.[ch] (g_value_set_object): gpointer, not + gpointer *. + +2001-05-22 Sebastian Wilhelmi + + * Makefile.am (bin_SCRIPTS): made 'make distcheck' happy. + + * gobject.def: Removed g_param_spec_stringc. + +Tue May 22 02:46:13 2001 Tim Janik + + * gobject.c (g_value_set_object): make g_value_set_object() + take a gpointer v_object so people don't need to G_OBJECT() + cast NULL pointers (C code convenience). + +Mon May 14 01:49:01 2001 Tim Janik + + * gsignal.[hc] (g_signal_handler_is_connected): new function + to check whether a handler is still connected to an instance + (by handler id). + +Thu May 10 14:00:48 2001 Tim Janik + + * gparamspecs.[hc]: removed g_param_spec_stringc() in lack of + evidence of public need. + + * gsignal.h: added g_signal_disconnect_by_func(), + g_signal_block_by_func() and g_signal_unblock_by_func() convenience + macros as per owen's request. + + * gtype.c (SIZEOF_FUNDAMENTAL_INFO): align sizeof (GTypeFundamentalInfo) + to size of longs and pointers. + +2001-05-05 James Henstridge + + * Makefile.am: glib-mkenums is not a compiled program, so shouldn't + be in the bin_PROGRAMS primary. Put it in bin_SCRIPTS instead, and + removed the glib_mkenums_SOURCES var. + +Thu May 3 06:10:23 2001 Owen Taylor + + * gobject.c (g_object_set_[q]data_full): Make types of ternary + operator correspond. (Fixes compilation errors with Sun CC, + #52230) + +Mon Apr 30 20:03:56 2001 Tim Janik + + * glib-mkenums (usage): removed \v escaping, newer perl versions don't + support this, and it'S probably useless anyways. + +Sat Apr 28 23:39:42 2001 Tim Janik + + * gsignal.[hc]: made signal handler and emission hook ids gulongs. + (signal_handlers_foreach_matched_R): only invoke callback for handlers + that are not disconnected (id>0). + (signal_emit_R): prevent invocation of signal handlers during the + emission they were connected within. + + * glib-mkenums: publically installed perl-script to parse C code + enums and generate descriptions thereof. + * glib-mkenums.1: assorted man page. + +2001-04-19 Havoc Pennington + + * gobject.c (g_object_get_valist): We were returning junk memory + here, because we didn't copy the value (G_VALUE_NOCOPY_CONTENTS + passed to G_VALUE_LCOPY) and then we freed the GValue immediately + after. Removed G_VALUE_NOCOPY_CONTENTS from here; need a + G_VALUE_STEAL_CONTENTS or the like if we want this optimization. + +Wed Apr 18 09:46:56 2001 Owen Taylor + + * gobject.c gsignal.c: Change C++ comments for FIXME's to + C comments. (Patch from Andres Salomon) + +2001-04-14 Hans Breuer + + * gobject.def : updated + +Mon Apr 9 18:56:15 2001 Tim Janik + + * gclosure.c (g_closure_invoke): only require marshal/meta_marshal if + we're valid (about to actually do marshalling). + +Tue Apr 3 20:23:24 2001 Tim Janik + + * NEWS: updates. + +Tue Apr 3 14:06:00 2001 Tim Janik + + * gparam.[hc]: added g_param_spec_pool_list() to list pspecs per + owner_type. the pspecs are not referenced, so the caller is + supposed to have some idea about owner_type not randomly + nuking his pspec's. if this is going to provide problems in + the future, we can either auto-ref the pspecs, or add a + _foreach variant, though the latter would have to invoke + the callback while pspec's mutex is acquired, so i just + went for the _list variant for now. + + * gclosure.h (G_CALLBACK): made GCallback a void (*) (void) fucntion. + +Sat Mar 31 23:55:58 2001 Tim Janik + + * gtype.h: + * gparamspecs.[hc]: applied patch from owen to implement + GParamSpecUnichar. + +Fri Mar 30 07:34:02 2001 Tim Janik + + * gtype.c (type_iface_retrive_holder_info_Wm): + * gtypeplugin.c (g_type_plugin_complete_interface_info): + * gtypemodule.c (g_type_module_complete_interface_info): + change order of instance_type and interface_type so they match + the g_type_add_interface_*() API. + + * gsignal.c (g_signal_emit_valist): always assign C return value + location, people depending on unaltered return values after emissions + that had no handlers to run need to use g_signal_emitv(). + + * gtype.[hc] (g_type_query): new function to allow querying of + class and object size (semantics like g_signal_query()). + currently the implementation is better held conservative so as to + only support types that are classed and static. + +2001-03-29 Tor Lillqvist + + * gobject.def: Updates. + +Wed Mar 28 17:04:06 2001 Tim Janik + + * gobject.c (object_queue_property): only queue readable properties + for notification changes. + +Thu Mar 22 13:36:50 2001 Tim Janik + + * gsignal.c (g_signal_newv): catch G_SIGNAL_RUN_FIRST with a return value. + +2001-03-21 Martin Baulig + + * gboxed.[ch] (g_value_dup_boxed): This takes a `const GValue *' + argument. + +2001-03-18 Tor Lillqvist + + * gobject.def: Correct some renamed functions. + +Sat Mar 17 23:18:36 2001 Tim Janik + + * gobject.c (g_object_get_property): minor bug-fix. + + * gbsearcharray.[hc]: provide a macro for static initialization and + functions g_bsearch_array_new() and g_bsearch_array_destroy() for + dynamic allocations. + + * gboxed.c: introduce G_TYPE_GSTRING, boxed type for GString. + + * gclosure.[hc]: naming corrections. + +Fri Mar 9 16:42:08 2001 Tim Janik + + * gvaluetypes.[hc]: moved g_strdup_value_contents() into this file as + a public function (was static in gobject.c before). it's a bit odd + to have that function here, especially since it requires extra includes, + but then it doesn't very well fit somewhere else either. + + * gparamspecs.c: added default/max/min checks to param spec creation + functions. + +2001-03-10 Tor Lillqvist + + * gobject.def: Add a couple of missing entries. + + * Makefile.am (libgobject_1_3_la_LIBADD): Use only on Win32. + +Fri Mar 9 14:57:17 2001 Tim Janik + + * testgruntime.c: test program. covers run first/last/cleanup signal + handlers, return value accumulator, signal string returns, and + interface types in signal arguments. + + * gtype.c (g_type_value_table_peek): for interface types without + value table, try looking up a value table from an instantiatable + prerequisite type (this is safe as an interface may only have + one instantiatable prerequisiste). + (type_check_is_value_type_U): same here. + + * gsignal.c (g_signal_newv): assert that return types never have + G_SIGNAL_TYPE_STATIC_SCOPE set. + (g_signal_newc): only create class closure if the class_offset is not + 0. + +Fri Mar 9 10:14:00 2001 Tim Janik + + * gparamspecs.c (g_param_spec_object): use g_type_is_a() to check + for object_type being a G_TYPE_OBJECT, not G_TYPE_IS_OBJECT(), since + that wouldn't allow interface types. + + * gtype.c (g_type_interface_add_prerequisite): arg, fixed small cnp bug + with bad implications and an off-by-one error. + +Thu Mar 8 16:34:22 2001 Owen Taylor + + * gvaluetransform.c: Include for memcpy. + + * gvaluetransform.c (DEFINE_SPRINTF): Remove unnecessary + and ANSI-illegal ## token pasting. + +Thu Mar 8 18:11:52 2001 Tim Janik + + * gsignal.c: eek, fixed old hook detail storage code. + +Thu Mar 8 16:35:48 2001 Tim Janik + + * gparamspecs.[hc]: s/g_param_spec_string_c/g_param_spec_stringc/. + + * gsignal.[hc]: fixed accumulator invocation, implemented emission + hooks. and no, neither of these callbacks are called via a closure, + language bindings can wrap the accumulator and emission hook + interface, they already get parameters marshalled into a GValue array. + (g_signal_connect): removed this function as its C specific, doesn't + cover the swapped argument, is too close to its broken original + gtk_signal_connect() and creates demand for _swapped, _after and + _swapped_after variants . + (g_signal_connectc): convenience macro to connect a C handler + func with data, like the old g_signal_connect() plus swapped + argument. + + * gtype.h: + * gboxed.c: added G_TYPE_VALUE boxed type. + +Wed Mar 7 19:02:51 2001 Tim Janik + + * gtype.c (type_node_add_iface_entry_W): catch when adding an interface + to an ancestor of a child that already conforms to this interface. + currently we spew a warning here, should we be silent? + (g_type_interface_add_prerequisite): new function to add a prerequisite + type to an interface, that must succeed an instance is_a prerequisite + type check before the interface can be added to an instance. the + prerequisite types are also suuported in is_a checks of the interface. + (g_type_instance_is_a): + (g_type_check_instance_cast): + (g_type_check_instance): cleanups and optimizations. + (g_type_class_is_a): + (g_type_check_class_cast): same, also prevented these from accepting + interface types, as class structures don't nest interfaces. + +2001-03-07 Sebastian Wilhelmi + + * Makefile.am: Avoid rebuilding everything everytime. + +Wed Mar 7 09:36:33 2001 Tim Janik + + * gboxed.[hc]: changed prototype of g_boxed_type_register_static() + to contain an optional init function and a hint at whether the + boxed structure uses ref counting internally. + added g_value_set_boxed_take_ownership(). + made G_TYPE_BOXED an abstract value type. + + * genums.[hc]: made G_TYPE_ENUM and G_TYPE_FLAGS abstract value + types. + + * glib-genmarshal.c: argument type changes, preparation for third-party + arg specification. + + * gobject.[hc]: cleaned up get/set property code. + added g_strdup_value_contents() to improve warnings. + + * gparam.[hc]: added g_param_value_convert(), taking over responsibility + of the old g_value_convert(). added G_PARAM_LAX_VALIDATION flag so + validation alterations may be valid a part of the property setting + process. + + * gparamspecs.[hc]: made value comparisons stable (for sort applications). + added GParamSpecValueArray, a param spec for value arrays and + GParamSpecClosure. nuked the value exchange functions and + GParamSpecCCallback. + + * gtype.[hc]: catch unintialized usages of the type system with + g_return_val_if_uninitialized(). introduced G_TYPE_FLAG_VALUE_ABSTRACT + to flag types that introduce a value table, but can't be used for + g_value_init(). cleaned up reserved type ids. + + * gvalue.[hc]: code cleanups and saner checking. + nuked the value exchange API. implemented value transformations, we + can't really "convert" values, rather transforms are an anylogy to + C casts, real conversions need a param spec for validation, which is + why g_param_value_convert() does real conversions now. + + * gvaluearray.[hc]: new files that implement a GValueArray, a struct + that can hold inhomogeneous arrays of value (to that extend that it + also allowes undefined values, i.e. G_VALUE_TYPE(value)==0). + this is exposed to the type system as a boxed type. + + * gvaluetransform.c: new file implementing most of the former value + exchange functions as single-sided transformations. + + * gvaluetypes.[hc]: nuked G_TYPE_CCALLBACK, added + g_value_set_string_take_ownership(). + + * *.h: s/G_IS_VALUE_/G_VALUE_HOLDS_/. + + * *.[hc]: many fixes and cleanups. + + * many warning improvements. + +Tue Feb 27 18:35:15 2001 Tim Janik + + * gobject.c (g_object_get_valist): urg, pass G_VALUE_NOCOPY_CONTENTS + into G_VALUE_LCOPY(), this needs proper documenting. + + * gparam.c: fixed G_PARAM_USER_MASK. + + * gtype.c (type_data_make_W): + (type_data_last_unref_Wm): fixed invalid memory freeing. + + * gobject.c (g_object_last_unref): destroy signal handlers associated + with object, right before finalization. + + * gsignal.c (g_signal_parse_name): catch destroyed nodes or signals + that don't actually support details. + + * gobject.[hc]: got rid of property trailers. nuked GObject + properties "data" and the "signal" variants. + (g_object_connect): new convenience function to do multiple + signal connections at once. + (g_object_disconnect): likewise, for disconnections. + + * gparam.[hc] (g_param_spec_pool_lookup): took out trailer support. + + * gvalue.[hc]: marked g_value_fits_pointer() and g_value_peek_pointer() + as private (the latter got renamed from g_value_get_as_pointer()). + +2001-02-21 Tor Lillqvist + + * *.h: Use G_BEGIN_DECLS and G_END_DECLS. + + * Makefile.am: Use libglib-1.3.la from top_builddir. Invoke + libtool with -no-undefined for Win32 and Cygwin. + +Wed Feb 21 18:31:46 2001 Jonathan Blandford + + * gsignal.h (g_signal_connect): Add g_signal_connect define to + make porting from gtk_signal_connect easy. + + * gsignal.c (g_signal_emit_valist): Use G_TYPE_FROM_INSTANCE + (instance) instead of node->itype when initting the value. + +2001-02-17 Havoc Pennington + + Applied patch from Soeren Sandmann: + + * gvaluetypes.c (g_value_get_string): G_CONST_RETURN + + * gtype.c (g_type_name): G_CONST_RETURN + + * gsignal.c (g_signal_name): G_CONST_RETURN + + * gobject-query.c (main): const fix + +Sat Feb 17 07:58:46 2001 Tim Janik + + * genums.h (G_TYPE_IS_FLAGS): patch from sven to fixup + G_ENUM_CLASS_TYPE() macro. + +Sat Feb 17 04:55:35 2001 Tim Janik + + * gtype.[hc]: changed collect_format, collect_value() and lcopy_format, + lcopy_value() in the GTypeValueTable. the collect functions are now + called only once per value, collect_format/lcopy_format are strings + that enlist all necessary GTypeCValues to be varargs-collected. + + * gvalue.h: ranamed STATIC_TAG to G_VALUE_NOCOPY_CONTENTS to indicate that + a value shouldn't copy its contents. + + * gvaluecollector.h: changed G_VALUE_COLLECT() and G_VALUE_LCOPY() + macros to carry an additional argument (flags) that can be used + to pass G_VALUE_NOCOPY_CONTENTS along to the collection functions. + + * *.c: adapted collect_value() and lcopy_value() functions to the new + prototypes, support G_VALUE_NOCOPY_CONTENTS where apropriate. + + * gsignal.[hc]: introduced a G_SIGNAL_TYPE_STATIC_SCOPE flag that can + be passed along (ORed) with the parameter types, indicating that the + emission arguments are to be considered static for the scope of the + emission. should be used with care and only if the caller knows that + a parameter cannot be destroyed/freed from signal handlers connected + to an emission. + +Fri Feb 16 07:10:44 2001 Tim Janik + + * gclosure.c: + (g_closure_ref): + (g_closure_sink): make closure sinking explicit. + + * gsignal.c: + (g_signal_connect_data): + (g_signal_connect_closure): + (g_signal_connect_closure_by_id): + (g_signal_newv): perform explicit closure sinking. + +Thu Feb 8 00:31:45 2001 Tim Janik + + * gtype.h: added G_TYPE_DEBUG_NONE for/from Eric Lemings ;) + +2001-02-04 Tor Lillqvist + + * gobject.def: Remove glib_debug_objects. + +Sun Feb 4 07:30:53 2001 Tim Janik + + * gtype.[hc]: changed g_type_init() to take debugging flags + initially, a combination of G_TYPE_DEBUG_OBJECTS and + G_TYPE_DEBUG_SIGNALS. using the G_TYPE_ prefix is a bit odd + here, but basically g_type_int() serves as initialization + fucntion for all of GType, GObject, GSignal, so what the heck. + + * gobject.c: special case debugging code properly. + changed glib_trap_object_ref to g_trap_object_ref. + + * gsignal.c: add signal emission debugging abilities, along with + a new trap object g_trap_instance_signals. + +2001-02-04 Tor Lillqvist + + * Makefile.am (progs_LDADD): Change order of libs to libgobject + first, then libglib. Needed for cygwin, says jbdoll@kepri.re.kr. + +Wed Jan 31 06:19:49 2001 Tim Janik + + * gparam.h: gtk-doc sucks for not dealing with #define inside enums. + + * gtype.[hc]: added G_TYPE_FLAG_RESERVED_ID_BIT, a bit in the type + number that's supposed to be left untouched (preserved mainly + for the signal code). + + * *.c: added thread safety code, based on an old patch from sebastian. + the remaining thread safety issues are now datalists on pspecs (to be + solved im gdataset.c) and gvalue.c where locking concerns value exchange + functionality only, and that's soon to be revised. + +2001-01-27 Tor Lillqvist + + * makefile.msc.in: Don't try to compile gmarshal.c on its own. + +2001-01-24 + + * gclosure.c (g_closure_unref): + Don't leak closure->notifiers. + +2001-01-05 Havoc Pennington + + * gparamspecs.c (g_param_spec_enum): set the value_type in the + param spec; closes bug 40210 + (g_param_spec_flags): ditto for flags + +2001-01-03 Alexander Larsson + + * gobject.c: + Move glib_debug_objects out of the G_ENABLE_DEBUG #ifdef. + +Thu Dec 28 11:36:44 2000 Tim Janik + + * gbsearcharray.c (upper_power2): disable G_BSEARCH_ALIGN_POWER2 + fucntionality if DISABLE_MEM_POOLS is defined. + + * gtype.c: honour DISABLE_MEM_POOLS. + + * gsignal.c (g_signal_init): flag signal key bsearch array with + G_BSEARCH_ALIGN_POWER2 to avoid excessive growth time. honour + DISABLE_MEM_POOLS. + + * gparam.h: added G_PARAM_READWRITE alias for (G_PARAM_READABLE | + G_PARAM_WRITABLE). + 2000-12-15 Tor Lillqvist * gobject.def: Update.