-
Notifications
You must be signed in to change notification settings - Fork 20
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
Widgets not usable as Widgetter: FontButton and MenuButton #31
Comments
For some widgets, you might need to explicitly reference the field, such as with
There's not really a way around this other than to autogenerate more fields into type Widget struct {
externglib.InitiallyUnowned
Accessible
Buildable
ConstraintTarget
*externglib.Object // extra field
} Having to do this for all possible interfaces is a lot of work and potentially a
|
For the gtk.MenuButton the name conflict could be resolved by renaming :
It would be easier to have the widget behave like the others and be usable directly as Widgetter. Their documentation:
|
Created issue #36 to trackthe |
Hey, I'm working on a gallery example for the package and (so far only) found 2 widgets that weren't usable as Widgetter, so they can't be inserted into a GUI.
And a big "gg wp" for that lib, it almost feels like an old used one.
gtk.FontButton.FontMap is ambiguous
cannot use btn (type *gtk.FontButton) as type gtk.Widgetter in argument to toBox:
*gtk.FontButton does not implement gtk.Widgetter (missing FontMap method)
cannot use btn (type *gtk.MenuButton) as type gtk.Widgetter in argument to toBox:
*gtk.MenuButton does not implement gtk.Widgetter (wrong type for Direction method)
have Direction() gtk.ArrowType
want Direction() gtk.TextDirection
The text was updated successfully, but these errors were encountered: