[farsight2/master] Also allow force disposing of participants
Olivier Crête
olivier.crete at collabora.co.uk
Fri Jan 9 11:58:29 PST 2009
---
python/pyfarsight-filter.defs | 8 ++++++++
python/pyfarsight.defs | 8 ++++++++
python/pyfarsight.override | 12 ++++++++++++
3 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/python/pyfarsight-filter.defs b/python/pyfarsight-filter.defs
index 9fcac03..f3db875 100644
--- a/python/pyfarsight-filter.defs
+++ b/python/pyfarsight-filter.defs
@@ -36,3 +36,11 @@
(return-type "gboolean")
(return-type "none")
)
+
+(define-method dispose
+ (of-object "FsParticipant")
+ (unblock-threads t)
+ (c-name "fs_participant_dispose")
+ (return-type "gboolean")
+ (return-type "none")
+)
diff --git a/python/pyfarsight.defs b/python/pyfarsight.defs
index 8f665bd..e53da0a 100644
--- a/python/pyfarsight.defs
+++ b/python/pyfarsight.defs
@@ -38,6 +38,14 @@
(return-type "gboolean")
(return-type "none")
)
+
+(define-method dispose
+ (of-object "FsParticipant")
+ (unblock-threads t)
+ (c-name "fs_participant_dispose")
+ (return-type "gboolean")
+ (return-type "none")
+)
;; -*- scheme -*-
; object definitions ...
;; Enumerations and flags ...
diff --git a/python/pyfarsight.override b/python/pyfarsight.override
index f040093..930fd34 100644
--- a/python/pyfarsight.override
+++ b/python/pyfarsight.override
@@ -925,3 +925,15 @@ _wrap_fs_stream_dispose (PyGObject *self)
Py_INCREF(Py_None);
return Py_None;
}
+%%
+override fs_participant_dispose noargs
+static PyObject *
+_wrap_fs_participant_dispose (PyGObject *self)
+{
+ Py_BEGIN_ALLOW_THREADS
+ g_object_run_dispose (self->obj);
+ Py_END_ALLOW_THREADS
+
+ Py_INCREF(Py_None);
+ return Py_None;
+}
--
1.5.6.5
More information about the farsight-commits
mailing list