-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GError support #798
GError support #798
Conversation
a878a7c
to
bc7a90e
Compare
I think this is working well now - one future TODO item I noticed is that callbacks can also have a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good already. Only 2 minor changes and one bigger one. But I think the bigger one improves the code a bit regarding readability and reuseablility and improves the GirModel
.
86c7041
to
aa7e4a7
Compare
src/Generation/Generator/Renderer/Public/Class/ClassConstructors.cs
Outdated
Show resolved
Hide resolved
src/Generation/Generator/Renderer/Public/Class/ClassConstructors.cs
Outdated
Show resolved
Hide resolved
…meter. - Introduce a 'Callable' interface, which is a common base for constructors, methods and functions. This matches the schema and will make it easier to write more reusable code in the generator.
- Internal functions take an `out ErrorOwnedHandle` parameter, which maps to `GError **` for the native function - Public functions don't expose this parameter, but instead throw an exception if an error was produced. - Skip properties where the getter or setter throw. This only occurs in deprecated WebKit2WebExtension functions. - Remove manual bindings for Element.MakeFromUri() and Pixbuf NewFromFile() which are no longer needed. Fixes: #756
This occurs for Gio.DBusConnection, which has a new_finish constructor but also has a new_finish method from Gio.AsyncInitable
aa7e4a7
to
9588c42
Compare
Thanks! Updated with the latest changes |
throws
flag to the model, replacing the manually added parameterout ErrorOwnedHandle
parameter for internal functionsGio.DBusConnection
and a couple other classes, which have anew_finish
constructor but also have anew_finish
method fromGio.AsyncInitable
Element.MakeFromUri()
andPixbuf NewFromFile()
which are no longer needed.Fixes: #756