summaryrefslogtreecommitdiff
path: root/gobject/gbinding.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2013-04-14 21:04:41 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2013-05-02 15:50:21 -0700
commita360b314aad5dcbc575948a401d22d47a36e4328 (patch)
tree1613abba16705d2377f794818309e1aad2613fd6 /gobject/gbinding.h
parentf61daa6ed275f1794a6552d3343e313d1d243933 (diff)
downloadglib-a360b314aad5dcbc575948a401d22d47a36e4328.tar.gz
binding: Add an explicit unbind()
Higher order languages with garbage collection can have issues releasing a binding, as they do not control the last reference being dropped on the binding, source, or target instances. https://bugzilla.gnome.org/show_bug.cgi?id=698018
Diffstat (limited to 'gobject/gbinding.h')
-rw-r--r--gobject/gbinding.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gobject/gbinding.h b/gobject/gbinding.h
index ebb329c5e..e49ad6d71 100644
--- a/gobject/gbinding.h
+++ b/gobject/gbinding.h
@@ -115,6 +115,8 @@ GLIB_AVAILABLE_IN_ALL
const gchar * g_binding_get_source_property (GBinding *binding);
GLIB_AVAILABLE_IN_ALL
const gchar * g_binding_get_target_property (GBinding *binding);
+GLIB_AVAILABLE_IN_2_38
+void g_binding_unbind (GBinding *binding);
GLIB_AVAILABLE_IN_ALL
GBinding *g_object_bind_property (gpointer source,