diff options
author | Martin Pitt <martinpitt@gnome.org> | 2012-09-03 16:06:49 +0200 |
---|---|---|
committer | Martin Pitt <martinpitt@gnome.org> | 2012-09-03 16:06:49 +0200 |
commit | 69fb92c22b3f3d1d5e8c3e14134eee3242fdc5fc (patch) | |
tree | fa9bc698dec43ee5518381db842281d247a71776 /tests/testhelpermodule.c | |
parent | a7c524219987fbf37e455a91e4c78d2b9b4db12d (diff) | |
download | pygobject-69fb92c22b3f3d1d5e8c3e14134eee3242fdc5fc.tar.gz |
Add test for a signal that returns a GParamSpec
https://bugzilla.gnome.org/show_bug.cgi?id=683265
Diffstat (limited to 'tests/testhelpermodule.c')
-rw-r--r-- | tests/testhelpermodule.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/testhelpermodule.c b/tests/testhelpermodule.c index d26ec9fe..cd178a12 100644 --- a/tests/testhelpermodule.c +++ b/tests/testhelpermodule.c @@ -339,6 +339,14 @@ test_object_callback (GObject *object, GObject *o) return o; } +static GParamSpec * +test_paramspec_callback (GObject *object) +{ + g_return_val_if_fail (G_IS_OBJECT (object), NULL); + + return g_param_spec_boolean ("test-param", "test", "test boolean", TRUE, G_PARAM_READABLE); +} + static void connectcallbacks (GObject *object) { @@ -381,6 +389,10 @@ connectcallbacks (GObject *object) "test_object", G_CALLBACK (test_object_callback), NULL); + g_signal_connect (G_OBJECT (object), + "test_paramspec", + G_CALLBACK (test_paramspec_callback), + NULL); } static PyObject * |