summaryrefslogtreecommitdiff
path: root/gobject
AgeCommit message (Collapse)AuthorFilesLines
2005-08-122.8.0GLIB_2_8_0Matthias Clasen1-0/+4
2005-08-12Special-case flag value of 0. Instead of returning the first randomTim-Philipp Müller1-4/+13
* gobject/genums.c: (g_flags_get_first_value): Special-case flag value of 0. Instead of returning the first random GFlagsValue we come across, return the GFlagsValue for 0 if it exists or NULL if it does not exist. Never return the GFlagsValue for 0 if the requested flags value is nonzero.
2005-08-10Fix typos: invokation -> invocation.Stepan Kasal2-3/+3
2005-08-09Access enum and flags values as v_long/v_ulong, not v_int/v_uint, to makeMatthias Clasen2-53/+61
2005-08-09 Matthias Clasen <mclasen@redhat.com> * gvaluetransform.c: Access enum and flags values as v_long/v_ulong, not v_int/v_uint, to make value transformation of such types work on bigendian 64bit machines. (#312485, Michael Lorenz)
2005-08-06Improve ABI checksMatthias Clasen2-2/+4
2005-08-052.7.7GLIB_2_7_7Matthias Clasen1-0/+4
2005-08-032.7.6GLIB_2_7_6Matthias Clasen1-0/+4
2005-08-03Mark the vint member as volatile, which seems to be necessary to makeMatthias Clasen2-1/+5
2005-08-02 Matthias Clasen <mclasen@redhat.com> * gclosure.c (union ClosureInt): Mark the vint member as volatile, which seems to be necessary to make atomic operations work on s390.
2005-08-022.7.5GLIB_2_7_5Matthias Clasen1-0/+4
2005-08-01turned all modifications to the first 32 integer bits in a closure intoTim Janik5-58/+127
Mon Aug 1 23:00:42 2005 Tim Janik <timj@imendio.com> * gclosure.c: turned all modifications to the first 32 integer bits in a closure into atomic accesses. wrapped write accesses into special macros to keep the atomic modification logic in a single place. comment cleanups. * gclosure.h: made all atomicly accessed closure fields volatile. * gobject.h: made ref_count field volatile.
2005-07-31use g_datalist_set_flags() and g_datalist_unset_flags() to allow properTim Janik2-2/+7
Sun Jul 31 02:04:23 2005 Tim Janik <timj@gtk.org> * gobject.c: use g_datalist_set_flags() and g_datalist_unset_flags() to allow proper locking around &qdata modifications.
2005-07-30reverted notify_mutex introduction, since this prevents parallelizedTim Janik5-383/+184
Sat Jul 30 21:10:26 2005 Tim Janik <timj@gtk.org> * gobject.c: reverted notify_mutex introduction, since this prevents parallelized setting of object properties on different objects, and serves no apparent purpose (to me at least). g_object_real_dispose(): removed non-atomic reference count modifications. g_object_unref(): make sure the closures array is destroyed when destroying signal handlers. * gparam.c: cosmetic changes. * gsignal.c: comment fixup. allow 16bit blocking count. * gsignal.c: reverted GClosure related changes. * gclosure.c: reverted premature commit of atomic reference counting attempt.
2005-07-222.7.4GLIB_2_7_4Matthias Clasen1-0/+4
2005-07-152.7.3GLIB_2_7_3Matthias Clasen1-0/+4
2005-07-15Make refcounting threadsafe by using atomic operations. (#166020, WimMatthias Clasen5-241/+457
2005-07-15 Matthias Clasen <mclasen@redhat.com> Make refcounting threadsafe by using atomic operations. (#166020, Wim Taymans) * gobject.c: Use a recursive lock to protect the notify queue. (g_object_unref): Get rid of g_object_last_unref and do the last unref handling in g_object_unref. (g_object_ref, g_object_unref): Use atomic operations. * gsignal.c (struct _HandlerMatch): Use a full integer for the ref_count field. (handler_ref, handler_unref_R): Use atomic operations. * gparam.c (g_param_spec_ref, g_param_spec_unref): Use atomic operations instead of a lock to make the refcounting threadsafe. * gclosure.c (g_closure_ref, g_closure_unref): Use atomic operations. This is more complicated here, since the refcount is stored in a bitfield, so we also have to access all other bitfield members atomically. * gsignal.c (handlers_find): Read the meta_marshal flag of the closure atomically. * tests/Makefile.am (SUBDIRS): Add tests/refcount * configure.in: Add tests/refcount * tests/refcount/properties.c: Test property changes from multiple threads. * tests/refcount/signals.c: Test signal emission from multiple threads. * tests/refcount/objects.c: Test refcounting from multiple threads. * tests/refcount/objects2.c: * tests/refcount/properties2.c: Tests to measure the overhead of threadsafe refcounting. * glib/giochannel.c (g_io_channel_ref, g_io_channel_unref): Use atomic operations to make refcounting threadsafe. (#166020, Wim Taymans)
2005-07-11Remove G_GNUC_NULL_TERMINATED from g_object_new again, since that makesMatthias Clasen3-3/+10
2005-07-11 Matthias Clasen <mclasen@redhat.com> * gobject.h: * gobject.symbols: Remove G_GNUC_NULL_TERMINATED from g_object_new again, since that makes gcc warn on calls of the form g_object_new (some_type, NULL)
2005-07-09Typo.Tor Lillqvist1-1/+1
2005-07-08Don't use autoconf variables for the resource object files on Win32 anyTor Lillqvist3-7/+24
2005-07-09 Tor Lillqvist <tml@novell.com> * configure.in: Don't use autoconf variables for the resource object files on Win32 any longer. Instead handle that in the Makefile.am files. Check for windres. * glibconfig.h.win32.in: Minor tuning to match the configure-produced glibconfig.h closely. * */Makefile.am: Don't use the scripts in build/win32 to compile the .rc file into a resource object file. (This means we loose the build number increment magic, but I doubt it was that useful anyway.) Instead use windres directly. To pass the normal .o file produced by windres through libtool, which wants .lo files, pass it directly to the linker using a -Wl option. * */*.rc.in: Thus replace BUILDNUMBER with 0.
2005-07-082.7.2GLIB_2_7_2Matthias Clasen1-0/+4
2005-06-302.7.1GLIB_2_7_1Matthias Clasen1-0/+4
2005-06-26libtool installs/uninstalls the import library, no need to do itTor Lillqvist2-8/+13
2005-06-26 Tor Lillqvist <tml@novell.com> * Makefile.am: libtool installs/uninstalls the import library, no need to do it ourselves. Do still install/uninstall the .def file, though.
2005-06-24glib/Makefile.am gmodule/Makefile.am Current GNU tools do understand theTor Lillqvist2-9/+5
2005-06-24 Tor Lillqvist <tml@novell.com> * glib/Makefile.am * gmodule/Makefile.am * gobject/Makefile.am: Current GNU tools do understand the PRIVATE keyword. * glib/gfileutils.c (g_mkdir_with_parents): Return error with EINVAL also for empty pathnames. (g_build_pathname_va): Fix typo.
2005-06-20Avoid a warning. (#308295, Murray Cumming).Matthias Clasen2-3/+8
2005-06-19 Matthias Clasen <mclasen@redhat.com> * gparam.h (GParamFlags): Avoid a warning. (#308295, Murray Cumming).
2005-06-13Re-add G_PARAM_PRIVATE as a deprecated name for bit 5, since some languageMatthias Clasen2-1/+10
2005-06-13 Matthias Clasen <mclasen@redhat.com> * gparam.h (GParamFlags): Re-add G_PARAM_PRIVATE as a deprecated name for bit 5, since some language bindings have it bound.
2005-06-102.7.0GLIB_2_7_0Matthias Clasen2-1/+6
2005-05-20dup the new value before freeing the old, just in case. (#172142, MortenMatthias Clasen2-2/+13
2005-05-20 Matthias Clasen <mclasen@redhat.com> * gvaluetypes.c (g_value_set_string): dup the new value before freeing the old, just in case. (#172142, Morten Welinder)
2005-05-13Mention 64bit integer types.Matthias Clasen2-0/+10
2005-05-13 Matthias Clasen <mclasen@redhat.com> * gobject/glib-genmarshal.1: * gobject/glib-genmarshal.xml: Mention 64bit integer types.
2005-05-05Add g_object_add/remove_toggle_ref() functions to get notification when aOwen Taylor4-5/+138
2005-05-05 Owen Taylor <otaylor@redhat.com> * gobject.[ch] gobject.symbols: Add g_object_add/remove_toggle_ref() functions to get notification when a reference count is the last remaining reference; this enables better memory management for language bindings. (http://mail.gnome.org/archives/gtk-devel-list/2005-April/msg00095.html) 2005-05-05 Owen Taylor <otaylor@redhat.com> * glib/gdataset.[ch] glib/gdatasetprivate.h: Add g_datalist_set/unset_flags(), g_datalist_get_flags() functions to squeeze some bits into a GDataSet... this is needed for efficient implementation of toggle references in GObject. * tests/gobject/references.c tests/gobject/Makefile.am: Add a test case for weak and toggle references. * glib/gfileutils.[ch]: Rename g_file_replace() back to g_file_set_contents(). * glib/glib.symbols: Update. 2005-05-05 Owen Taylor <otaylor@redhat.com> * glib/Makefile.am glib/glib-sections.txt gobject/gobject-sections.txt: Update * gobject/tmpl/objects.sgml: Document toggle-references.
2005-04-29Add a boxed type for GDate. (#301787, Tim-Philipp Müller)Matthias Clasen4-0/+30
2005-04-29 Matthias Clasen <mclasen@redhat.com> * gobject.symbols: * gboxed.h (G_TYPE_DATE): * gboxed.c: Add a boxed type for GDate. (#301787, Tim-Philipp Müller)
2005-03-26Don't do the second lookup if the name was already canonical. (#171502,Matthias Clasen2-1/+7
2005-03-25 Matthias Clasen <mclasen@redhat.com> * gparam.c (param_spec_ht_lookup): Don't do the second lookup if the name was already canonical. (#171502, Morten Welinder)
2005-03-22cast away any constness on assignment.Manish Singh2-5/+10
Tue Mar 22 14:15:23 2005 Manish Singh <yosh@gimp.org> * gparam.c (g_param_spec_internal): cast away any constness on assignment.
2005-03-22forgotten log entryMatthias Clasen1-0/+5
2005-03-22Avoid forcing extra newlines when using template files. (#171005)Matthias Clasen1-0/+7
2005-03-21 Matthias Clasen <mclasen@redhat.com> * glib-mkenums.in: Avoid forcing extra newlines when using template files. (#171005)
2005-03-21Don't copy strings which are marked as static. Don't allow non-canonicalMatthias Clasen3-8/+59
2005-03-20 Matthias Clasen <mclasen@redhat.com> * gparam.c (g_param_spec_internal): Don't copy strings which are marked as static. Don't allow non-canonical static names. * gparam.h (GParamFlags): Add G_PARAM_STATIC_{NAME,NICK,BLURB} flags. (#160655, Ben Maurer)
2005-03-18handle galiasdef.c (although completely useless for msvc build)Hans Breuer2-1/+9
2005-03-18 Hans Breuer <hans@breuer.org> * glib/makefile.msc.in : handle galiasdef.c (although completely useless for msvc build) * glib/gbacktrace.c glib/gmessage.c : need at least _WIN_VER 0x0401 for IsDebuggerPresent() * gobject/makefile.msc.in : handle gobjectaliasdef.c
2005-03-17Shut up CVSManish Singh1-0/+1
2005-03-14Make work again.Matthias Clasen21-128/+317
2005-03-14 Matthias Clasen <mclasen@redhat.com> * abicheck.sh: Make work again. * gsourceclosure.c: Fix a typo. Make PLT-reduction work with gcc4, and don't include everything in gobjectalias.h: * gobject.symbols: Group symbols by header and source file. * makegobjectalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegalias.pl -def * Makefile.am (gobjectaliasdef.c): Add a rule to build this file. * *.c: Include gobjectalias.h after the other i GLib headers, include gobjectaliasdef.c at the bottom.
2005-03-08Add the new attributes here too.Matthias Clasen2-5/+7
2005-03-08 Matthias Clasen <mclasen@redhat.com> * glib/glib.symbols: Add the new attributes here too.
2005-03-08Define G_GNUC_NULL_TERMINATED. (#164706, Marc Meissner)Matthias Clasen2-5/+8
2005-03-08 Matthias Clasen <mclasen@redhat.com> * glib/gmacros.h: Define G_GNUC_NULL_TERMINATED. (#164706, Marc Meissner) * glib/gstrfuncs.h: * glib/gfileutils.h: Use G_GNUC_NULL_TERMINATED where appropriate.
2005-03-08Small cleanup (use G_BEGIN/END_DECLS). (#168474, Fabricio Barros Cabral)Matthias Clasen2-7/+7
2005-03-07 Matthias Clasen <mclasen@redhat.com> * glib/gdebug.h: Small cleanup (use G_BEGIN/END_DECLS). (#168474, Fabricio Barros Cabral)
2005-02-24Don't distribute glib.def. (#167496, J. Ali Harlow)Tor Lillqvist2-1/+5
2005-02-24 Tor Lillqvist <tml@novell.com> * Makefile.am (BUILT_EXTRA_DIST): Don't distribute glib.def. (#167496, J. Ali Harlow) * gobject/Makefile.am (EXTRA_DIST): Don't distribute gobject.def. (#167496, J. Ali Harlow)
2005-02-07feed the contents of config.h and glibconfig.h into the preprocessor,Manish Singh2-1/+15
Sun Feb 6 22:00:46 2005 Manish Singh <yosh@gimp.org> * abicheck.sh: feed the contents of config.h and glibconfig.h into the preprocessor, since glib.symbols could need #defines from them.
2005-02-05Define a HAVE_GNUC_VISIBILITY automake conditional.Matthias Clasen1-0/+2
2005-02-04 Matthias Clasen <mclasen@redhat.com> * configure.in: Define a HAVE_GNUC_VISIBILITY automake conditional. * glib/Makefile.am (TESTS): Only check the abi if the compiler supports visibility, otherwise we know there will be (harmless) extra symbols. (#166181, Ed Avis)
2005-01-12Cosmetic fixes (#163792, Benoît Carpentier):Matthias Clasen3-4/+9
2005-01-12 Matthias Clasen <mclasen@redhat.com> Cosmetic fixes (#163792, Benoît Carpentier): * gobject-query.c (main): Remove duplicate lines. * gvaluetransform.c: Remove duplicate definitions of value_transform_[u]int64_[u]int64.
2005-01-11Add gmodule-export-2.0.pc to AC_CONFIG_FILES.Owen Taylor1-1/+1
2005-01-11 Owen Taylor <otaylor@redhat.com> * configure.in: Add gmodule-export-2.0.pc to AC_CONFIG_FILES. * glib/Makefile.am gobject/Makefile.am gthread/Makefile.am: Use grep | head -n 1 instead of grep -m 1 which doesn't work with slightly older versions of GNU grep in install-libtool-import-lib rule.
2005-01-072.6.1GLIB_2_6_1Matthias Clasen1-0/+4
2005-01-06configure.in glib/Makefile.am Win32 cross-compilation fixes. (#163144, J.Tor Lillqvist1-1/+2
2005-01-06 Tor Lillqvist <tml@iki.fi> * configure.in * glib/Makefile.am * gobject/Makefile.am: Win32 cross-compilation fixes. (#163144, J. Ali Harlow)
2005-01-06glib/Makefile.am glib.def and gobject.def are generated, not in $(srcdir).Tor Lillqvist1-2/+2
2005-01-06 Tor Lillqvist <tml@iki.fi> * glib/Makefile.am * gobject/Makefile.am: glib.def and gobject.def are generated, not in $(srcdir). (#163143, J. Ali Harlow)
2004-12-27Add an OS_LINUX conditional.Matthias Clasen2-1/+6
2004-12-27 Matthias Clasen <mclasen@redhat.com> * configure.in: Add an OS_LINUX conditional. * glib/Makefile.am (TESTS): Only check the ABI on linux, since the shell script is not portable, and libtool deficiencies may distort the ABI on other platforms. (#161741)
2004-12-162.6.0GLIB_2_6_0Matthias Clasen1-0/+4