diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.co.uk> | 2011-01-21 18:07:45 +0100 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.co.uk> | 2011-02-02 16:15:35 +0100 |
commit | 09bca85dd42deb4d6901ac9926a23f89264b63b6 (patch) | |
tree | cdb3ab88bce0a7df81e725464fe9b83db2af8fad /tests | |
parent | 2cdf794544e4151e4039fe93b13d3e842458ab4f (diff) | |
download | gobject-introspection-09bca85dd42deb4d6901ac9926a23f89264b63b6.tar.gz |
Add (method) overrides
So methods such as gtk_drag_dest_set() can be put inside Gtk.Widget
https://bugzilla.gnome.org/show_bug.cgi?id=639945
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scanner/Regress-1.0-expected.gir | 5 | ||||
-rw-r--r-- | tests/scanner/regress.c | 10 | ||||
-rw-r--r-- | tests/scanner/regress.h | 1 |
3 files changed, 16 insertions, 0 deletions
diff --git a/tests/scanner/Regress-1.0-expected.gir b/tests/scanner/Regress-1.0-expected.gir index 45f62c0a..10429ac7 100644 --- a/tests/scanner/Regress-1.0-expected.gir +++ b/tests/scanner/Regress-1.0-expected.gir @@ -485,6 +485,11 @@ case.</doc> </parameter> </parameters> </method> + <method name="forced_method" c:identifier="regress_forced_method"> + <return-value transfer-ownership="none"> + <type name="none" c:type="void"/> + </return-value> + </method> <method name="instance_method" c:identifier="regress_test_obj_instance_method"> <return-value transfer-ownership="none"> diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c index ad5cd255..8b71bc8c 100644 --- a/tests/scanner/regress.c +++ b/tests/scanner/regress.c @@ -1955,6 +1955,16 @@ regress_test_obj_static_method (int x) } /** + * regress_forced_method: (method) + * @obj: A #RegressTestObj + * + */ +void +regress_forced_method (RegressTestObj *obj) +{ +} + +/** * regress_test_obj_torture_signature_0: * @obj: A #RegressTestObj * @x: diff --git a/tests/scanner/regress.h b/tests/scanner/regress.h index 91b00843..14daf127 100644 --- a/tests/scanner/regress.h +++ b/tests/scanner/regress.h @@ -302,6 +302,7 @@ RegressTestObj* regress_test_obj_new_from_file (const char *x, GError **error) void regress_test_obj_set_bare (RegressTestObj *obj, GObject *bare); int regress_test_obj_instance_method (RegressTestObj *obj); double regress_test_obj_static_method (int x); +void regress_forced_method (RegressTestObj *obj); void regress_test_obj_torture_signature_0 (RegressTestObj *obj, int x, |