summaryrefslogtreecommitdiff
path: root/tests/testhelpermodule.c
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:48:25 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:48:29 +0900
commit54ced30b5b9a8471d9d7af4dc3e8c2d0f7b013e8 (patch)
tree0c4937bc64caaf497c496d43468708772a2f3eec /tests/testhelpermodule.c
parent2af8b46dbcf9e73f2ca40ea26cab5ab7ccac5d2a (diff)
downloadpygobject2-54ced30b5b9a8471d9d7af4dc3e8c2d0f7b013e8.tar.gz
pygobject2-54ced30b5b9a8471d9d7af4dc3e8c2d0f7b013e8.tar.bz2
pygobject2-54ced30b5b9a8471d9d7af4dc3e8c2d0f7b013e8.zip
Imported Upstream version 3.7.4
Change-Id: Ida7f0ffc68fbd0b3af016f7988b2210cdf9afa1a Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'tests/testhelpermodule.c')
-rw-r--r--tests/testhelpermodule.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/testhelpermodule.c b/tests/testhelpermodule.c
index 16bb39e..9ca82bc 100644
--- a/tests/testhelpermodule.c
+++ b/tests/testhelpermodule.c
@@ -402,6 +402,15 @@ test_gvalue_ret_callback (GObject *object, GType type)
return ret;
}
+static GParamSpec *
+test_paramspec_in_callback (GObject *object, GParamSpec *p)
+{
+ g_return_val_if_fail (G_IS_OBJECT (object), NULL);
+ g_return_val_if_fail (G_IS_PARAM_SPEC (p), NULL);
+
+ return p;
+}
+
static void
connectcallbacks (GObject *object)
{
@@ -460,6 +469,10 @@ connectcallbacks (GObject *object)
"test_gvalue_ret",
G_CALLBACK (test_gvalue_ret_callback),
NULL);
+ g_signal_connect (G_OBJECT (object),
+ "test_paramspec_in",
+ G_CALLBACK (test_paramspec_in_callback),
+ NULL);
}
static PyObject *
@@ -530,7 +543,6 @@ _wrap_test_gerror_exception(PyObject *self, PyObject *args)
return NULL;
}
- Py_DECREF(py_method);
Py_DECREF(py_args);
Py_DECREF(py_ret);