Skip to content

Copy widget preset (like clone_from) #1932

Answered by bilelmoussaoui
d47081 asked this question in Q&A
Discussion options

You must be logged in to vote

Objects might have internals that cannot be cloned externally. So such methods cannot be automatically provided.

You will have to either write such code for your specific use case in the application side or edit glib to add such Clone interface for GObjects so that Rust can use.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@d47081
Comment options

Answer selected by d47081
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants