glib/gobject/tests
Martin Blanchard 156d32cb80 gobject: new g_set_weak_pointer() & g_clear_weak_pointer() helpers
Weak-pointers are currently lacking g_set_object() & g_clear_object()
helpers equivalent. New functions (and macros, both are provided) are
convenient in many case, especially for the property's notify-on-set
pattern:

  if (g_set_weak_pointer (...))
    g_object_notify (...)

Inspired by Christian Hergert's original implementation for
gnome-builder.

https://bugzilla.gnome.org/show_bug.cgi?id=749527
2017-12-21 09:59:30 +00:00
..
.gitignore .gitignore updates 2015-10-23 11:28:03 -04:00
binding.c Drop trailing semi-colon from G_DEFINE_ macro 2017-04-10 10:38:31 +01:00
boxed.c boxed: Fix double free in boxed unit tests 2013-11-11 07:20:09 +01:00
closure.c Fix the closure test in continuous 2014-05-30 10:22:35 -04:00
dynamictests.c Drop trailing semi-colon from G_DEFINE_ macro 2017-04-10 10:38:31 +01:00
enums.c gobject: Add to_string() functions for Enum and Flags types 2017-03-30 09:52:28 +01:00
ifaceproperties.c gobject/tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-24 11:58:19 +02:00
Makefile.am Re-enable signal tests when cross-compiling 2017-07-10 16:47:48 +01:00
marshalers.list Add more tests for signal emissions 2012-03-02 17:13:04 +01:00
meson.build meson: Simplify the use of built tools 2017-07-17 11:05:07 +01:00
object.c gobject: re-allow finalization from constructor() 2014-02-15 10:20:53 -05:00
param.c Drop trailing semi-colon from G_DEFINE_ macro 2017-04-10 10:38:31 +01:00
private.c tests: replace most g_print() with g_printerr() 2015-05-11 20:24:56 +01:00
properties.c Drop trailing semi-colon from G_DEFINE_ macro 2017-04-10 10:38:31 +01:00
qdata.c gobject/tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-24 11:58:19 +02:00
reference.c gobject: new g_set_weak_pointer() & g_clear_weak_pointer() helpers 2017-12-21 09:59:30 +00:00
signal-handler.c Add a performance test for signal connection 2015-05-27 14:41:19 -04:00
signals.c Fix the signals test 2016-08-27 22:54:39 -04:00
testcommon.h gobject/tests/: LGPLv2+ -> LGPLv2.1+ 2017-05-24 11:58:19 +02:00
threadtests.c Drop trailing semi-colon from G_DEFINE_ macro 2017-04-10 10:38:31 +01:00
type.c Improve test coverage in gobject/ 2013-05-29 08:37:08 -04:00
value.c Allow passing unset GValues to g_value_unset() 2015-10-02 10:07:53 -04:00