Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Use new getproperty/setproperty syntax #344

Open
tknopp opened this issue Dec 18, 2017 · 1 comment
Open

Use new getproperty/setproperty syntax #344

tknopp opened this issue Dec 18, 2017 · 1 comment

Comments

@tknopp
Copy link
Collaborator

tknopp commented Dec 18, 2017

see: JuliaLang/julia#24960

I am not yet sure how we handle getproperty since it currently requires an output type. Can we generate that automatically (somehow)

ping @vtjnash: Do you have a concrete vision how to make use of the new feature in Gtk.jl?

@vtjnash
Copy link
Contributor

vtjnash commented Dec 18, 2017

I was thinking of using obj.prop[Type] / Type(obj.prop) (e.g. convert)/obj.prop = val`

But perhaps it better just to be type-unstable (for now, until we get GI codegen setup), and use simply obj.prop with introspection (g_object_class_find_property).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants