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

question: Gtk.Label typo in getter/setter? #1181

Open
thegtkgirl opened this issue Feb 11, 2025 · 2 comments
Open

question: Gtk.Label typo in getter/setter? #1181

thegtkgirl opened this issue Feb 11, 2025 · 2 comments

Comments

@thegtkgirl
Copy link

thegtkgirl commented Feb 11, 2025

The getter/setter of a Gtk.Label for the text is called Label_
Is this _ a typo because all other getters/setters have no _.
It's strange it's only in this one and nowhere else

Image

@cameronwhite
Copy link
Contributor

I think this is intentional, because in C# a property cannot have the same name as the enclosing type. So, the property needs to have some different name

@badcel
Copy link
Member

badcel commented Feb 11, 2025

Yes it is like @cameronwhite said. It is planned for 0.8.0 to check if there are ways around it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants