Commit 2bdf1eb1 authored by Mieszko Mazurek's avatar Mieszko Mazurek

added problem description in foo-bar.c

parent 258fb3d6
......@@ -73,6 +73,18 @@ foo_bar_class_init (FooBarClass *cls)
gcls->set_property = set_property;
gcls->get_property = get_property;
* Here we get an error caused by vapigen
* g-ir-scanner doesn't set object parent property
* then vapigen says FooBar is not an object so it
* cannot have constructed properties
* It seems to work on gobject-introspection 1.56.1
* But doesn't on 1.60 and 1.61 with newest glib
* After removing G_PARAM_CONSTRUCT the problem is gone
props[PROP_NUMBER] =
g_param_spec_int ("number",
......@@ -9,7 +9,7 @@ foo-bar.c foo-bar.h
gcc ${ARGS} -fPIC -shared $< -o $@
g-ir-scanner foo-bar.h foo-bar.c --namespace=Foo --library=foo ${ARGS} -L. --output foo.gir
/usr/local/bin/g-ir-scanner foo-bar.h foo-bar.c --namespace=Foo --library=foo ${ARGS} -L. --output foo.gir
foo.vapi: foo.gir
vapigen --library=foo foo.gir
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment