Skip to content
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

Interfaces miss some properties #792

Closed
2 tasks done
badcel opened this issue Feb 7, 2023 · 4 comments
Closed
2 tasks done

Interfaces miss some properties #792

badcel opened this issue Feb 7, 2023 · 4 comments
Labels
bug Something isn't working
Milestone

Comments

@badcel
Copy link
Member

badcel commented Feb 7, 2023

  • Gtk.Entry does not have a Text property which it should have from the Gtk.Editable interface which does not specify this property either.
  • Gtk.ColorButton does not have a RGBA property which it should have from Gtk.ColorChooser interface which does not specify this proerty either.
@badcel badcel added the bug Something isn't working label Feb 7, 2023
@badcel badcel added this to the 0.4.0 milestone Feb 7, 2023
@badcel badcel changed the title Gtk.Editable does not provide Text property Interfaces miss some properties Feb 7, 2023
@cameronwhite
Copy link
Contributor

From a quick look through the build logs, there is the following error:
Property text of interface Gtk.Editable is named like its containing class Gtk.Text. This is not allowed. The property should be created with a suffix and be rewritten to it's original name

This seems to be disabling the property for all classes that implement the interface, not just Gtk.Text?

@cameronwhite
Copy link
Contributor

The RGBA property I think is just missing because of limited support for structs:

Did not generate method 'ColorChooser.GetRgba': GirModel.Type: GirLoader.Output.Record: record parameter with direction != in not yet supported
Did not generate property 'ColorChooser.rgba': There is currently no concept for transfering native records (structs) into the managed world

@badcel
Copy link
Member Author

badcel commented Apr 8, 2023

Moved to milestone 0.5.0 as the second part depends on #622

@badcel
Copy link
Member Author

badcel commented Apr 4, 2024

Gtk.ColorButton.RGBA property gets rendered.

@badcel badcel closed this as completed Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants