You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./main.go:41:25: cannot use searchEntry (variable of type *gtk.SearchEntry) as gtk.Editabler value in argument to searchBar.ConnectEntry: *gtk.SearchEntry does not implement gtk.Editabler (*gtk.SearchEntry.Editable is a field, not a method)
SearchEntry has an Editable field struct which has an Editable function, but that Editable function should exist on SearchEntry instead.
This looks like a name collision issue, Editable struct vs Editable function attached to Editable struct.
I'd love to have a go at fixing this myself but so far have been unable to figure out where to override this. I believe the fix should be to rename the Editable field on SearchEntry to something else.
Is there an example in the generation code where this kind of thing has been done before?
The text was updated successfully, but these errors were encountered:
Is there an example in the generation code where this kind of thing has been done before?
Yes! gendata.go specifically contains a lot of the code to manually fix quirky errors like these.
Ideally, I would love to have the generator itself figure out rather than manually going through functions over time, but overriding it manually is probably the easiest way to do it.
Yes! gendata.go specifically contains a lot of the code to manually fix quirky errors like these.
Ideally, I would love to have the generator itself figure out rather than manually going through functions over time, but overriding it manually is probably the easiest way to do it.
Thanks for the tip @diamondburned, will give this a shot this evening.
On building I get the following error:
SearchEntry
has anEditable
field struct which has anEditable
function, but thatEditable
function should exist onSearchEntry
instead.This looks like a name collision issue,
Editable
struct vsEditable
function attached toEditable
struct.I'd love to have a go at fixing this myself but so far have been unable to figure out where to override this. I believe the fix should be to rename the
Editable
field onSearchEntry
to something else.Is there an example in the generation code where this kind of thing has been done before?
The text was updated successfully, but these errors were encountered: