glib/gobject
Ryan Lortie 58c247e51b GVariant: add g_variant_take_ref()
This function implements the following logic:

  if (g_variant_is_floating (value))
    g_variant_ref_sink (value);

which is used for consuming the return value of callbacks that may or
may not return floating references.

This patch also replaces a few instances of the above code with the new
function (GSettings, GDBus) and lifts a long-standing restriction on the
use of floating values as the return value for signal handlers by
improving g_value_take_variant().

https://bugzilla.gnome.org/show_bug.cgi?id=627974
2011-07-12 19:44:21 +02:00
..
tests Don't test negative values in ulong conversions 2011-07-10 21:57:45 -04:00
.gitignore Stop using glib-genmarshal at build time 2011-06-20 17:24:07 -04:00
abicheck.sh Simply symbols files 2011-05-23 00:21:06 -04:00
ChangeLog Update README files to refer to git 2009-03-31 19:39:16 -04:00
gatomicarray.c Remove a redundant assertion 2011-06-14 18:51:57 -04:00
gatomicarray.h Add GAtomicArray for RCU-style lockless updates 2009-11-30 20:48:50 +01:00
gbinding.c Remove all uses of G_CONST_RETURN 2011-06-09 11:15:40 -04:00
gbinding.h Remove all uses of G_CONST_RETURN 2011-06-09 11:15:40 -04:00
gboxed.c Add boxed GType for GMatchInfo 2011-06-24 01:03:50 +02:00
gboxed.h GObject: move GLib type definitions to a separate header 2011-05-19 17:39:33 -04:00
gclosure.c gclosure: Add G_TYPE_ENUM and G_TYPE_PARAM for g_cclosure_marshal_generic() 2011-06-20 14:03:05 -04:00
gclosure.h Add a generic libffi based marshaller to libgobject 2011-04-08 17:34:44 -04:00
genums.c gobject: Use _ prefixing in private headers over G_GNUC_INTERNAL in public headers 2011-06-03 12:40:01 -04:00
genums.h Fix "it's" vs "its" confusion throughout the source. Patch by Will 2009-02-23 04:30:06 +00:00
glib-genmarshal.c gobject: Cast token type to guint to avoid gcc warning 2010-12-02 20:11:28 +01:00
glib-mkenums.in Fix a typo 2011-02-07 23:46:02 -05:00
glib-types.h Typo fix. 2011-06-24 13:20:06 +02:00
gmarshal.c Make gmarshal.c actually compile standalone 2011-06-20 22:49:34 -04:00
gmarshal.h Stop using glib-genmarshal at build time 2011-06-20 17:24:07 -04:00
gmarshal.list Stop using glib-genmarshal at build time 2011-06-20 17:24:07 -04:00
gobject_probes.d Add dtrace and systemtap support for gobject 2010-05-27 14:51:41 -04:00
gobject_trace.h Add dtrace and systemtap support for gobject 2010-05-27 14:51:41 -04:00
gobject-query.c Use the right binary name in help output. Patch by Hiroyuki Ikezoe. 2008-07-06 02:01:56 +00:00
gobject.c gobject: remove -DG_DISABLE_CONST_RETURNS 2011-06-09 11:11:30 -04:00
gobject.h New function: g_clear_object() 2010-11-08 18:21:51 -05:00
gobject.py Initial support for gdb python macros 2009-09-21 15:39:00 +02:00
gobject.rc.in Update the year in the *.rc.in files 2011-06-07 08:55:31 +08:00
gobject.stp.in Add dtrace and systemtap support for gobject 2010-05-27 14:51:41 -04:00
gobject.symbols Add boxed GType for GMatchInfo 2011-06-24 01:03:50 +02:00
gobjectnotifyqueue.c notifyqueue: Dedup pspecs when adding 2010-08-06 23:35:24 +02:00
gparam.c Remove all uses of G_CONST_RETURN 2011-06-09 11:15:40 -04:00
gparam.h Remove all uses of G_CONST_RETURN 2011-06-09 11:15:40 -04:00
gparamspecs.c gobject: Use _ prefixing in private headers over G_GNUC_INTERNAL in public headers 2011-06-03 12:40:01 -04:00
gparamspecs.h More docs fixes 2010-07-12 17:46:17 -04:00
gsignal.c Stop using glib-genmarshal at build time 2011-06-20 17:24:07 -04:00
gsignal.h Remove all uses of G_CONST_RETURN 2011-06-09 11:15:40 -04:00
gsourceclosure.c Add g_source_set_dummy_callback() 2010-11-26 15:07:28 -05:00
gsourceclosure.h GObject: move GLib type definitions to a separate header 2011-05-19 17:39:33 -04:00
gtype-private.h gobject: Use _ prefixing in private headers over G_GNUC_INTERNAL in public headers 2011-06-03 12:40:01 -04:00
gtype.c Remove all uses of G_CONST_RETURN 2011-06-09 11:15:40 -04:00
gtype.h Remove all uses of G_CONST_RETURN 2011-06-09 11:15:40 -04:00
gtypemodule.c Docs: Changed can not to cannot. 2011-03-24 09:33:55 +01:00
gtypemodule.h Prevent unused variable warnings from G_DEFINE_DYNAMIC_TYPE 2011-01-28 12:26:23 -05:00
gtypeplugin.c gobject/: fully remove gobjectalias hacks 2010-07-07 19:40:48 -04:00
gtypeplugin.h Migrating docs. 2008-06-21 18:20:43 +00:00
gvalue.c gobject: Use _ prefixing in private headers over G_GNUC_INTERNAL in public headers 2011-06-03 12:40:01 -04:00
gvalue.h Docs: Changed can not to cannot. 2011-03-24 09:33:55 +01:00
gvaluearray.c g_value_array_remove(): clarify docstring formatting 2011-03-03 14:51:41 +00:00
gvaluearray.h Migrating docs. 2008-06-22 09:45:13 +00:00
gvaluecollector.h More docs fixes 2010-07-12 17:46:17 -04:00
gvaluetransform.c Clean up gobject/gvaluetransform.c a bit 2011-06-07 08:25:07 +08:00
gvaluetypes.c GVariant: add g_variant_take_ref() 2011-07-12 19:44:21 +02:00
gvaluetypes.h Remove all uses of G_CONST_RETURN 2011-06-09 11:15:40 -04:00
libgobject-gdb.py.in Avoid shadowing the dir builtin 2010-12-03 14:08:36 -05:00
Makefile.am Don't needlessly use "echo -e" 2011-07-10 20:47:02 -04:00
makefile.msc.in gobject/: fully remove gobjectalias hacks 2010-07-07 19:40:48 -04:00
marshal-genstrings.pl Hacky script to fix up your .msc.in files on windows. Dunno if this is a 2001-08-04 15:49:55 +00:00
testgobject.c gobject: remove -DG_DISABLE_CONST_RETURNS 2011-06-09 11:11:30 -04:00