-
Notifications
You must be signed in to change notification settings - Fork 19
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
Missing bindings: Cannot read selected item of gtk.DropDown as string #88
Comments
I think |
If you want to try and find out, you can do |
Yeah, no issue with return type, because it could be sth. else. I also noticed that https://docs.gtk.org/gtk4/class.StringList.html has no bindings. Though right now I see no need for it, as the only func I've encountered so far that should take it as input param, will take
My system is not set up for nix/docker, yet. I'll try to find some time next week to check it out and set it up |
Ah, I forgot that my system is too old for gtk4. Upgrade is planned for January/early February. So further investigating is not possible for me right now… |
used auto-gen bindings:
func (self *DropDown) SelectedItem() *coreglib.Object
(docs)what the object should be based on online comments:
gtk.StringObject
(docs)gtk.StringObject
note: could not find any filter that should exclude it (source)
the only workaround
func (self *DropDown) Selected() uint
proposals
a) add binding for
gtk.StringObject
b) do the magic internally and change return type of
func (self *DropDown) SelectedItem() *coreglib.Object
to the string value (rather dangerous, if item is in any custom case (depending on ListModel type) not a StringObject)The text was updated successfully, but these errors were encountered: