Skip to content

Bug fix: go_objects should be able to implement interfaces #5

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions glib/go_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func RegisterGoType(name string, goObject interface{}, extends Extendable, inter
// Register class data if the object implements a GoObjectSubclass
var cd *classData
if object, ok := goObject.(GoObjectSubclass); ok {
cd := &classData{
cd = &classData{
elem: object,
ext: extends,
}
Expand All @@ -201,7 +201,7 @@ func RegisterGoType(name string, goObject interface{}, extends Extendable, inter
)

// Add interfaces if the go object implements a GoObjectSubclass
if _, ok := goObject.(GoObjectSubclass); ok {
if cd != nil {
for _, iface := range interfaces {
gofuncPtr := gopointer.Save(&interfaceData{
iface: iface,
Expand Down