-
Notifications
You must be signed in to change notification settings - Fork 231
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
Solving #741- Add possibility to use GVariant in signal handler #743
Conversation
In response to gotk3#741 [WIP] Register GValue marshalers for: GSimpleAction, GAction, GPropertyAction Add marshaller for GVariant (WIP) Add: g_action_print_detailed_name() g_variant_parse()
Now i'm facing to another issue: Any help is welcome |
Add GVariant to 'goMarshal' This is a simple implementation and will need to be populated with all types supported by GVariant (with time)
Ok, it's done (i hope). |
g_variant_new_double() g_variant_get_double() And usage in goMarshal
@@ -256,6 +256,33 @@ func goMarshal(closure *C.GClosure, retValue *C.GValue, | |||
} else { | |||
val = innerVal | |||
} | |||
|
|||
case *Variant: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I this a valid Go syntax? because under go 1.16 it produces this error:
# github.com/gotk3/gotk3/glib
../../go/pkg/mod/github.com/gotk3/gotk3@v0.5.3-0.20210305115817-fdbeed35eb7d/glib/glib.go:236:3: expected '}', found 'case'
../../go/pkg/mod/github.com/gotk3/gotk3@v0.5.3-0.20210305115817-fdbeed35eb7d/glib/glib.go:269:2: expected declaration, found rv
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is indeed not valid syntax. I think I'll make a PR to fix this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like something went wrong while merge conflicts were being solved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created #750.
In response to #741 [WIP]
Register GValue marshalers for:
GSimpleAction
GAction
GPropertyAction
Add marshaller for GVariant (WIP)
Add: